此页面已被弃用,最终将被删除.
");
}
+ return new HandlerResult(string.Empty)
+ {
+ Instructions = [Constants.HandlerResultInstruction.TruncateTrailingLine]
+ };
}
- return new HandlerResult(string.Empty)
+ //------------------------------------------------------------------------------------------------------------------------------
+ case "protect":
{
- Instructions = [Constants.HandlerResultInstruction.TruncateTrailingLine]
- };
- }
+ if (state.NestDepth == 0)
+ {
+ bool isSilent = function.Parameters.Get("isSilent");
+ state.ProcessingInstructions.Add(ZelWiki.Library.Constants.WikiInstruction.Protect);
+ if (isSilent == false)
+ {
+ state.Headers.Add("此页面已受到保护,非版主无法更改.
");
+ }
+ }
+ 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(
- "此页面是一个模板,不会出现在索引或术语表中.
");
+ if (state.NestDepth == 0)
+ {
+ state.ProcessingInstructions.Add(ZelWiki.Library.Constants.WikiInstruction.Template);
+ state.Headers.Add("此页面是一个模板,不会出现在索引或术语表中.
");
+ }
+ return new HandlerResult(string.Empty)
+ {
+ Instructions = [Constants.HandlerResultInstruction.TruncateTrailingLine]
+ };
}
- 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(
- "此页面已被标记为待审核,其内容可能不准确.
");
+ if (state.NestDepth == 0)
+ {
+ state.ProcessingInstructions.Add(ZelWiki.Library.Constants.WikiInstruction.Review);
+ state.Headers.Add("此页面已被标记为待审核,其内容可能不准确.
");
+ }
+ return new HandlerResult(string.Empty)
+ {
+ Instructions = [Constants.HandlerResultInstruction.TruncateTrailingLine]
+ };
}
- 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(
- "此页为包含页,不会出现在索引或术语表中.
");
+ if (state.NestDepth == 0)
+ {
+ state.ProcessingInstructions.Add(ZelWiki.Library.Constants.WikiInstruction.Include);
+ state.Headers.Add("此页为包含页,不会出现在索引或术语表中.
");
+ }
+ return new HandlerResult(string.Empty)
+ {
+ Instructions = [Constants.HandlerResultInstruction.TruncateTrailingLine]
+ };
}
- 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(
- "本页为草稿,可能包含不正确的信息包括但不仅限于实验性样式.
");
+ if (state.NestDepth == 0)
+ {
+ state.ProcessingInstructions.Add(ZelWiki.Library.Constants.WikiInstruction.Draft);
+ state.Headers.Add("本页为草稿,可能包含不正确的信息包括但不仅限于实验性样式.
");
+ }
+ return new HandlerResult(string.Empty)
+ {
+ Instructions = [Constants.HandlerResultInstruction.TruncateTrailingLine]
+ };
}
-
- return new HandlerResult(string.Empty)
- {
- Instructions = [Constants.HandlerResultInstruction.TruncateTrailingLine]
- };
- }
}
return new HandlerResult() { Instructions = [Constants.HandlerResultInstruction.Skip] };
}
}
-}
\ No newline at end of file
+}
diff --git a/ZelWiki/Properties/PublishProfiles/FolderProfile.pubxml b/ZelWiki/Properties/PublishProfiles/FolderProfile.pubxml
index 5a80a38..e67ad32 100644
--- a/ZelWiki/Properties/PublishProfiles/FolderProfile.pubxml
+++ b/ZelWiki/Properties/PublishProfiles/FolderProfile.pubxml
@@ -10,7 +10,6 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
Release
Any CPU
FileSystem
- C:\DropZone\TightWiki.Production\TightWiki
FileSystem
<_TargetId>Folder