This page has been deprecated and will eventually be deleted.
");
}
return new HandlerResult(string.Empty)
{
Instructions = [Constants.HandlerResultInstruction.TruncateTrailingLine]
};
}
//------------------------------------------------------------------------------------------------------------------------------
case "protect":
{
if (state.NestDepth == 0)
{
bool isSilent = function.Parameters.Get("isSilent");
state.ProcessingInstructions.Add(ZelWiki.Library.Constants.WikiInstruction.Protect);
if (isSilent == false)
{
state.Headers.Add("This page has been protected and can not be changed by non-moderators.
");
}
}
return new HandlerResult(string.Empty)
{
Instructions = [Constants.HandlerResultInstruction.TruncateTrailingLine]
};
}
//------------------------------------------------------------------------------------------------------------------------------
case "template":
{
if (state.NestDepth == 0)
{
state.ProcessingInstructions.Add(ZelWiki.Library.Constants.WikiInstruction.Template);
state.Headers.Add("This page is a template and will not appear in indexes or glossaries.
");
}
return new HandlerResult(string.Empty)
{
Instructions = [Constants.HandlerResultInstruction.TruncateTrailingLine]
};
}
//------------------------------------------------------------------------------------------------------------------------------
case "review":
{
if (state.NestDepth == 0)
{
state.ProcessingInstructions.Add(ZelWiki.Library.Constants.WikiInstruction.Review);
state.Headers.Add("This page has been flagged for review, its content may be inaccurate.
");
}
return new HandlerResult(string.Empty)
{
Instructions = [Constants.HandlerResultInstruction.TruncateTrailingLine]
};
}
//------------------------------------------------------------------------------------------------------------------------------
case "include":
{
if (state.NestDepth == 0)
{
state.ProcessingInstructions.Add(ZelWiki.Library.Constants.WikiInstruction.Include);
state.Headers.Add("This page is an include and will not appear in indexes or glossaries.
");
}
return new HandlerResult(string.Empty)
{
Instructions = [Constants.HandlerResultInstruction.TruncateTrailingLine]
};
}
//------------------------------------------------------------------------------------------------------------------------------
case "draft":
{
if (state.NestDepth == 0)
{
state.ProcessingInstructions.Add(ZelWiki.Library.Constants.WikiInstruction.Draft);
state.Headers.Add("This page is a draft and may contain incorrect information and/or experimental styling.
");
}
return new HandlerResult(string.Empty)
{
Instructions = [Constants.HandlerResultInstruction.TruncateTrailingLine]
};
}
}
return new HandlerResult() { Instructions = [Constants.HandlerResultInstruction.Skip] };
}
}
}