差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 后一修订版 | 前一修订版 | ||
| wiki:syntax [2026/08/11 20:30] – 创建 - 外部编辑 127.0.0.1 | wiki:syntax [2026/08/17 13:24] (当前版本) – 外部编辑 127.0.0.1 | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ====== | + | ====== |
| - | [[doku> | + | [[doku> |
| - | ===== Basic Text Formatting | + | ===== 基础文本格式 |
| - | DokuWiki | + | DokuWiki |
| - | DokuWiki | + | DokuWiki |
| - | | + | |
| - | Note that the formatting markers have to directly enclose the text, so '' | + | 注意:格式标记必须紧贴文本,因此'' |
| - | You can use <sub>subscript</ | + | 你也可以使用<sub>下标</ |
| - | | + | |
| - | You can mark something as <del>deleted</ | + | 你还可以把内容标记为<del>已删除</ |
| - | | + | |
| - | **Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line. | + | **段落**由空行分隔。如果你想在段落内**强制换行**,可以在行尾使用两个反斜杠(后面跟一个空格,或直接位于行末)。 |
| - | This is some text with some linebreaks\\ Note that the | + | 这是包含换行的文字\\ 请注意, |
| - | two backslashes are only recognized at the end of a line\\ | + | 两个反斜杠只在行尾\\或后面跟空格时生效, |
| - | or followed by\\ a whitespace | + | 或后面跟\\ 空格 |
| - | | + | |
| - | | + | |
| - | | + | |
| - | You should use forced newlines only if really needed. | + | 只有在确实需要时才应使用强制换行。 |
| - | ===== Links ===== | + | ===== 链接 |
| - | DokuWiki | + | DokuWiki |
| - | ==== External | + | ==== 外部链接 |
| - | External links are recognized automagically: | + | 外部链接会被自动识别:http:// |
| - | DokuWiki | + | DokuWiki |
| - | | + | http:// |
| - | | + | |
| - | | + | |
| - | ==== Internal | + | ==== 内部链接 |
| - | Internal links are created by using square brackets. You can either just give a [[pagename]] | + | 内部链接使用方括号创建。你可以只写[[pagename]],也可以附加[[pagename|链接文字]]。 |
| - | | + | |
| - | a [[pagename]] | + | 也可以附加[[pagename|链接文字]]。 |
| - | [[doku> | + | [[doku> |
| - | You can use [[some: | + | 在页面名中使用冒号即可引用[[some: |
| - | | + | |
| - | For details about namespaces see [[doku> | + | 关于命名空间的详细信息参见[[doku> |
| - | Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML. This links to [[syntax#internal|this Section]]. | + | 也可以链接到指定章节。只需像 |
| - | | + | |
| - | Notes: | + | 注意: |
| - | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] | + | * 指向[[syntax|已存在页面]]的链接与指向[[nonexisting|不存在页面]]的链接显示样式不同。 |
| - | * DokuWiki | + | * 默认情况下 |
| - | * When a section' | + | * 章节标题改变时,其锚点也会改变,因此不要太依赖章节链接。 |
| - | ==== Interwiki | + | ==== 跨 Wiki 链接 |
| - | DokuWiki | + | DokuWiki |
| - | DokuWiki | + | DokuWiki |
| - | | + | |
| - | ==== Windows | + | ==== Windows |
| - | Windows | + | Windows |
| - | Windows | + | Windows |
| - | Notes: | + | 注意: |
| - | * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer | + | * 出于安全原因,默认情况下只有 |
| - | * For Mozilla | + | * 对于 |
| <?php | <?php | ||
| /** | /** | ||
| 行 95: | 行 95: | ||
| </ | </ | ||
| - | ==== Image Links ==== | + | ==== 图片链接 |
| - | You can also use an image to link to another internal or external page by combining the syntax for links and [[#images_and_other_files|images]] (see below) like this: | + | 你还可以将链接语法与[[#媒体文件|图片]]语法(见下文)结合,用图片链接到其他内部或外部页面,例如: |
| [[http:// | [[http:// | ||
| 行 103: | 行 103: | ||
| [[http:// | [[http:// | ||
| - | Please note: The image formatting is the only formatting syntax accepted in link names. | + | 请注意:图片格式是链接名称中唯一被接受的格式化语法。 |
| - | The whole [[#images_and_other_files|image]] and [[#links|link]] syntax is supported (including image resizing, internal and external images and URLs and interwiki links). | + | 完整的[[#媒体文件|图片]]和[[#链接|链接]]语法均受支持(包括图片缩放、内部和外部图片、URL 以及跨 Wiki 链接)。 |
| - | ===== Footnotes | + | ===== 脚注 |
| - | You can add footnotes | + | 使用双括号即可添加脚注((这是一个脚注))。 |
| - | | + | |
| - | ===== Sectioning | + | ===== 章节划分 |
| - | You can use up to five different levels of headlines to structure your content. If you have more than three headlines, a table of contents is generated automatically -- this can be disabled by including the string | + | 你可以使用最多五级标题来组织内容。如果页面中超过三个标题,会自动生成目录——在文档中加入''< |
| - | ==== Headline Level 3 ==== | + | ==== 三级标题 |
| - | === Headline Level 4 === | + | === 四级标题 |
| - | == Headline Level 5 == | + | == 五级标题 |
| - | ==== Headline Level 3 ==== | + | ==== 三级标题 |
| - | === Headline Level 4 === | + | === 四级标题 |
| - | == Headline Level 5 == | + | == 五级标题 |
| - | By using four or more dashes, you can make a horizontal line: | + | 使用四个或更多短横线可以创建水平分隔线: |
| ---- | ---- | ||
| - | ===== Media Files ===== | + | ===== 媒体文件 |
| - | You can include external and internal | + | 使用花括号可以嵌入外部和内部[[doku> |
| - | Real size: | + | 原始大小: |
| - | Resize to given width: | + | 指定宽度: |
| - | Resize to given width and height((when the aspect ratio of the given width and height doesn' | + | 指定宽高((当指定的宽高比与图片原始比例不一致时,会先按新比例裁剪再缩放)): {{wiki: |
| - | Resized external image: {{https:// | + | 缩放的远程图片: |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | By using left or right whitespaces you can choose the alignment. | + | 在语法两侧添加空格可以控制对齐方式。 |
| {{ wiki: | {{ wiki: | ||
| 行 159: | 行 159: | ||
| {{ wiki: | {{ wiki: | ||
| - | You can also set the alignment explicitly with a ''? | + | 你也可以用''? |
| {{wiki: | {{wiki: | ||
| 行 165: | 行 165: | ||
| {{wiki: | {{wiki: | ||
| - | Of course, you can add a title (displayed as a tooltip by most browsers), too. | + | 当然,你也可以添加标题(大多数浏览器会以提示气泡显示)。 |
| - | {{ wiki: | + | {{ wiki: |
| - | {{ wiki: | + | {{ wiki: |
| - | For linking an image to another page see [[#Image Links]] above. | + | 将图片链接到其他页面的方法参见上文[[#图片链接]]。 |
| - | ==== Supported Media Formats | + | ==== 支持的媒体格式 |
| - | DokuWiki | + | DokuWiki |
| - | | Image | '' | + | | 图片 |
| - | | Video | '' | + | | 视频 |
| - | | Audio | '' | + | | 音频 |
| - | | Flash | '' | + | | Flash | '' |
| - | If you specify a filename that is not a supported media format, then it will be displayed as a link instead. | + | 如果你指定的文件名不是受支持的媒体格式,则会以链接形式显示。 |
| - | By adding | + | 添加''? |
| {{wiki: | {{wiki: | ||
| - | {{wiki: | + | {{wiki: |
| - | ==== Fallback Formats | + | ==== 备用格式 |
| - | Unfortunately not all browsers understand all video and audio formats. To mitigate the problem, you can upload your file in different formats for maximum browser compatibility. | + | 遗憾的是并非所有浏览器都支持全部视频和音频格式。为缓解这一问题,你可以上传多种格式的文件以获得最大程度的浏览器兼容性。 |
| - | For example consider this embedded | + | 例如,考虑这段嵌入的 |
| - | {{video.mp4|A funny video}} | + | {{video.mp4|一段有趣的视频}} |
| - | When you upload a '' | + | 当你在被引用的'' |
| - | Additionally | + | 此外,DokuWiki |
| - | ===== Lists ===== | + | ===== 列表 |
| - | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' | + | DokuWiki 支持有序和无序列表。创建列表项时,先将文本缩进两个空格,然后用'' |
| - | * This is a list | + | * 这是一个列表 |
| - | * The second item | + | * 第二个项目 |
| - | * You may have different levels | + | * 你可以使用不同层级 |
| - | * Another item | + | * 另一个项目 |
| - | - The same list but ordered | + | - 同样的列表,但有序 |
| - | - Another item | + | - 另一个项目 |
| - | - Just use indention for deeper levels | + | - 缩进越多层级越深 |
| - | - That's it | + | - 就这样 |
| < | < | ||
| - | * This is a list | + | * 这是一个列表 |
| - | * The second item | + | * 第二个项目 |
| - | * You may have different levels | + | * 你可以使用不同层级 |
| - | * Another item | + | * 另一个项目 |
| - | - The same list but ordered | + | - 同样的列表,但有序 |
| - | - Another item | + | - 另一个项目 |
| - | - Just use indention for deeper levels | + | - 缩进越多层级越深 |
| - | - That's it | + | - 就这样 |
| </ | </ | ||
| - | Also take a look at the [[doku> | + | 也可以看看[[doku> |
| - | ===== Text Conversions | + | ===== 文本转换 |
| - | DokuWiki | + | DokuWiki |
| - | The text to image conversion is mainly done for smileys. And the text to HTML conversion is used for typography replacements, | + | 文本转图片主要用于表情符号。文本转 |
| - | ==== Text to Image Conversions | + | ==== 文本转图片 |
| - | DokuWiki | + | DokuWiki |
| * 8-) %% 8-) %% | * 8-) %% 8-) %% | ||
| 行 262: | 行 262: | ||
| * DELETEME %% DELETEME %% | * DELETEME %% DELETEME %% | ||
| - | ==== Text to HTML Conversions | + | ==== 文本转 |
| - | Typography: | + | 排版:[[DokuWiki]] |
| -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
| 行 274: | 行 274: | ||
| </ | </ | ||
| - | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku> | + | 同样的机制也可以用来生成任意 |
| - | There are three exceptions which do not come from that pattern file: multiplication entity (640x480), 'single' | + | 有三个例外不来自该模式文件:乘号实体(640x480)、'单引号'和"双引号"。可以通过[[doku> |
| - | ===== Quoting | + | ===== 引用 |
| - | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: | + | 有时你想标记某段文字以表示这是回复或评论,可以使用以下语法: |
| < | < | ||
| - | I think we should do it | + | 我觉得我们应该这么做 |
| - | > No we shouldn' | + | > 不,我们不应该 |
| - | >> | + | >> |
| - | > Really? | + | > 真的吗? |
| - | >> | + | >> |
| - | >>> | + | >>> |
| </ | </ | ||
| - | I think we should do it | + | 我觉得我们应该这么做 |
| - | > No we shouldn' | + | > 不,我们不应该 |
| - | >> | + | >> |
| - | > Really? | + | > 真的吗? |
| - | >> | + | >> |
| - | >>> | + | >>> |
| - | ===== Tables | + | ===== 表格 |
| - | DokuWiki | + | DokuWiki |
| - | ^ Heading | + | ^ 表头 |
| - | | Row 1 Col 1 | Row 1 Col 2 | + | | 第1行第1列 |
| - | | Row 2 Col 1 | some colspan (note the double pipe) || | + | | 第2行第1列 |
| - | | Row 3 Col 1 | Row 3 Col 2 | + | | 第3行第1列 |
| - | Table rows have to start and end with a '' | + | 表格行必须以'' |
| - | ^ Heading | + | ^ 表头 |
| - | | Row 1 Col 1 | Row 1 Col 2 | + | | 第1行第1列 |
| - | | Row 2 Col 1 | some colspan (note the double pipe) || | + | | 第2行第1列 |
| - | | Row 3 Col 1 | Row 3 Col 2 | + | | 第3行第1列 |
| - | To connect cells horizontally, | + | 要横向合并单元格,只需像上面那样让下一个单元格完全留空。注意每行的分隔符数量必须一致! |
| - | Vertical tableheaders are possible, too. | + | 也可以使用纵向的表头。 |
| - | | ^ Heading | + | | ^ 表头 |
| - | ^ Heading | + | ^ 表头 |
| - | ^ Heading | + | ^ 表头 |
| - | ^ Heading | + | ^ 表头 |
| - | As you can see, it's the cell separator before a cell which decides about the formatting: | + | 如你所见,单元格前的分隔符决定了该单元格的格式: |
| - | | ^ Heading | + | | ^ 表头 |
| - | ^ Heading | + | ^ 表头 |
| - | ^ Heading | + | ^ 表头 |
| - | ^ Heading | + | ^ 表头 |
| - | You can have rowspans (vertically connected cells) by adding | + | 通过在下方单元格中加入'' |
| - | ^ Heading | + | ^ 表头 |
| - | | Row 1 Col 1 | this cell spans vertically | + | | 第1行第1列 |
| - | | Row 2 Col 1 | ::: | Row 2 Col 3 | | + | | 第2行第1列 | ::: | 第2行第3列 | |
| - | | Row 3 Col 1 | ::: | Row 2 Col 3 | | + | | 第3行第1列 | ::: | 第3行第3列 | |
| - | Apart from the rowspan syntax those cells should not contain anything else. | + | 除跨行语法外,这些单元格不应包含其他内容。 |
| - | ^ Heading | + | ^ 表头 |
| - | | Row 1 Col 1 | this cell spans vertically | + | | 第1行第1列 |
| - | | Row 2 Col 1 | ::: | Row 2 Col 3 | | + | | 第2行第1列 | ::: | 第2行第3列 | |
| - | | Row 3 Col 1 | ::: | Row 2 Col 3 | | + | | 第3行第1列 | ::: | 第3行第3列 | |
| - | You can align the table contents, too. Just add at least two whitespaces at the opposite end of your text: Add two spaces on the left to align right, two spaces on the right to align left and two spaces at least at both ends for centered text. | + | 你还可以对齐表格内容。只需在文字的另一端添加至少两个空格:左侧加两个空格右对齐,右侧加两个空格左对齐,两端都加至少两个空格则居中。 |
| - | ^ Table with alignment | + | ^ 带对齐的表格 |
| - | | right| | + | | 右对齐| |
| - | |left | + | |左对齐 |
| | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
| - | This is how it looks in the source: | + | 以下是它在源代码中的样子: |
| - | ^ Table with alignment | + | ^ 带对齐的表格 |
| - | | right| | + | | 右对齐| |
| - | |left | + | |左对齐 |
| | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
| - | Note: Vertical alignment is not supported. | + | 注意:不支持垂直对齐。 |
| - | ===== No Formatting | + | ===== 不进行格式化 |
| - | If you need to display text exactly like it is typed (without any formatting), | + | 如果需要原样显示文本(不进行任何格式化),可以将内容包在'' |
| < | < | ||
| - | This is some text which contains addresses like this: http:// | + | 这是一段包含地址(如 |
| </ | </ | ||
| - | The same is true for %%//__this__ text// with a smiley | + | 对于%%//__这段文本__//加笑脸 |
| < | < | ||
| - | | + | |
| </ | </ | ||
| - | | + | |
| - | ===== Code Blocks | + | ===== 代码块 |
| - | You can include code blocks into your documents by either indenting them by at least two spaces (like used for the previous examples) or by using the tags '' | + | 你可以在文档中加入代码块:将内容至少缩进两个空格(如前面示例所示),或使用'' |
| - | | + | |
| < | < | ||
| - | This is preformatted code all spaces are preserved: like <-this | + | 这是预格式化的代码,所有空格都会被保留:像这样 |
| </ | </ | ||
| < | < | ||
| - | This is pretty much the same, but you could use it to show that you quoted a file. | + | 这与上面基本相同,但你可以用它来表明引用了一个文件。 |
| </ | </ | ||
| - | Those blocks were created by this source: | + | 以上代码块由以下源代码创建: |
| - | | + | |
| < | < | ||
| - | | + | |
| </ | </ | ||
| < | < | ||
| - | | + | |
| </ | </ | ||
| - | ==== Syntax Highlighting | + | ==== 语法高亮 |
| - | [[wiki: | + | [[wiki: |
| <code java> | <code java> | ||
| 行 426: | 行 426: | ||
| </ | </ | ||
| - | The following language strings are currently recognized: | + | 目前可识别的语言字符串如下://4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 actionscript ada aimms algol68 apache applescript apt_sources arm asm asp asymptote autoconf autohotkey autoit avisynth awk bascomavr bash basic4gl batch bf biblatex bibtex blitzbasic bnf boo caddcl cadlisp ceylon cfdg cfm chaiscript chapel cil c_loadrunner clojure c_mac cmake cobol coffeescript c cpp cpp-qt cpp-winapi csharp css cuesheet c_winapi dart dcl dcpu16 dcs delphi diff div dos dot d ecmascript eiffel email epc e erlang euphoria ezt f1 falcon fo fortran freebasic freeswitch fsharp gambas gdb genero genie gettext glsl gml gnuplot go groovy gwbasic haskell haxe hicest hq9plus html html4strict html5 icon idl ini inno intercal io ispfpanel java5 java javascript jcl j jquery julia kixtart klonec klonecpp kotlin latex lb ldif lisp llvm locobasic logtalk lolcode lotusformulas lotusscript lscript lsl2 lua m68k magiksf make mapbasic mathematica matlab mercury metapost mirc mk-61 mmix modula2 modula3 mpasm mxml mysql nagios netrexx newlisp nginx nimrod nsis oberon2 objc objeck ocaml-brief ocaml octave oobas oorexx oracle11 oracle8 oxygene oz parasail parigp pascal pcre perl6 perl per pf phix php-brief php pic16 pike pixelbender pli plsql postgresql postscript povray powerbuilder powershell proftpd progress prolog properties providex purebasic pycon pys60 python qbasic qml q racket rails rbs rebol reg rexx robots roff rpmspec rsplus ruby rust sas sass scala scheme scilab scl sdlbasic smalltalk smarty spark sparql sql sshconfig standardml stonescript swift systemverilog tclegg tcl teraterm texgraph text thinbasic tsql twig typoscript unicon upc urbi uscript vala vbnet vb vbscript vedit verilog vhdl vim visualfoxpro visualprolog whitespace whois winbatch wolfram xbasic xml xojo xorg_conf xpp yaml z80 zxbasic// |
| - | There are additional | + | 语法高亮还有一些[[doku> |
| - | ==== Downloadable Code Blocks | + | ==== 可下载的代码块 |
| - | When you use the '' | + | 使用上面的'' |
| < | < | ||
| 行 444: | 行 444: | ||
| </ | </ | ||
| - | If you don't want any highlighting but want a downloadable file, specify a dash ('' | + | 如果不需要高亮但需要可下载的文件,用短横线('' |
| - | ===== RSS/ | + | ===== RSS/ |
| - | [[DokuWiki]] | + | [[DokuWiki]] |
| - | ^ Parameter | + | ^ 参数 |
| - | | any number | + | | 任意数字 |
| - | | reverse | + | | reverse |
| - | | author | + | | author |
| - | | date | + | | date |
| - | | description| | + | | description| |
| - | | nosort | + | | nosort |
| - | | //n//[dhm] | refresh period, where d=days, h=hours, | + | | //n//[dhm] | 刷新周期,d=天、h=小时、m=分钟(例如 |
| - | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. | + | 刷新周期默认为 |
| - | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' | + | 默认情况下,订阅源按日期排序,最新的在前。使用'' |
| - | **Example:** | + | **示例:** |
| {{rss> | {{rss> | ||
| 行 469: | 行 469: | ||
| - | ===== Control Macros | + | ===== 控制宏 |
| - | Some syntax influences how DokuWiki | + | 有些语法会影响 |
| - | ^ Macro ^ Description | + | ^ 宏 ^ 说明 |
| - | | %%~~NOTOC~~%% | + | | %%~~NOTOC~~%% |
| - | | %%~~NOCACHE~~%% | DokuWiki | + | | %%~~NOCACHE~~%% | DokuWiki |
| - | ===== Syntax Plugins | + | ===== 语法插件 |
| - | DokuWiki's syntax can be extended by [[doku> | + | DokuWiki |
| - | ~~INFO: | + | ==== 容器:Ad-Hoc Wrap(adhocwrap)==== |
| + | |||
| + | **用途**:把一段内容包进带样式的容器框(提示框、警告框等),兼容原 WRAP 插件的写法。 | ||
| + | |||
| + | **语法**: | ||
| + | < | ||
| + | <WRAP 类名> | ||
| + | <block 类名> | ||
| + | <inline 类名> | ||
| + | </ | ||
| + | |||
| + | 常用类名:'' | ||
| + | |||
| + | **示例**: | ||
| + | |||
| + | <WRAP box> | ||
| + | |||
| + | <WRAP tip> | ||
| + | |||
| + | <WRAP important> | ||
| + | |||
| + | <WRAP alert> | ||
| + | |||
| + | ==== HTML 标签:Ad-Hoc HTML(adhoctags)==== | ||
| + | |||
| + | **用途**:安全地插入白名单内的 HTML 标签,比「禁用 HTML」更灵活、比「允许 HTML」更安全。 | ||
| + | |||
| + | **当前白名单**(可在配置管理器的 adhoctags 设置中修改):'' | ||
| + | |||
| + | **语法**: | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | <abbr title=" | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | **示例**:< | ||
| + | |||
| + | ==== 数学公式:Ad-Hoc MathML(adhocmathml)==== | ||
| + | |||
| + | **用途**:插入 MathML 数学公式(依赖 adhoctags,公式在支持 MathML 的浏览器中渲染)。 | ||
| + | |||
| + | **语法**: | ||
| + | < | ||
| + | <math display=" | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | **示例**:< | ||
| + | |||
| + | ==== 相册:Gallery(gallery)==== | ||
| + | |||
| + | **用途**:把某个媒体命名空间(或 RSS/ATOM 源)下的图片以缩略图网格展示,支持灯箱浏览。 | ||
| + | |||
| + | **语法**: | ||
| + | < | ||
| + | {{gallery> | ||
| + | {{gallery> | ||
| + | </ | ||
| + | |||
| + | **常用选项**(用 ''?'' | ||
| + | |||
| + | ^ 选项 ^ 说明 ^ | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | 数字(如 '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | |||
| + | ==== 信息框:Infobox(infobox)==== | ||
| + | |||
| + | {{infobox> | ||
| + | name = 示例信息框 | ||
| + | image1 = wiki: | ||
| + | 类型 = 音乐游戏 | ||
| + | 发行时间 = 2024年1月1日 | ||
| + | ::: 子分组 ::: | ||
| + | 子字段 = 值 | ||
| + | }} | ||
| + | |||
| + | **用途**:生成作品 / 角色资料卡,支持多图切换、分组、折叠、剧透模糊等,适合放在页面开头。 | ||
| + | |||
| + | **语法**: | ||
| + | < | ||
| + | {{infobox> | ||
| + | name = 作品名 | ||
| + | image1 = ns: | ||
| + | 字段名 = 值 | ||
| + | ::: 子分组名 ::: | ||
| + | 子字段 = 值 | ||
| + | divider = 分隔文字 | ||
| + | = 全宽内容 = | ||
| + | }} | ||
| + | </ | ||
| + | |||
| + | **说明**: | ||
| + | * '' | ||
| + | * '' | ||
| + | * 普通行:'' | ||
| + | * ''::: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * 字段名或值以 '' | ||
| + | |||
| + | ==== 折叠区块:Folded(folded)==== | ||
| + | |||
| + | **用途**:把大段内容折叠起来,点击标题展开/ | ||
| + | |||
| + | **语法**: | ||
| + | < | ||
| + | ++++ 点击展开的标题 | | ||
| + | 被折叠的内容…… | ||
| + | ++++ | ||
| + | </ | ||
| + | |||
| + | **示例**: | ||
| + | |||
| + | ++++ 点击展开示例 | | ||
| + | 这是折叠起来的内容,点击上方标题即可展开。 | ||
| + | ++++ | ||
| + | |||
| + | ==== 系统信息宏:Info(info)==== | ||
| + | |||
| + | **用途**:在页面中输出系统内部信息,多用于调试或自动生成列表。 | ||
| + | |||
| + | **常用宏**: | ||
| + | < | ||
| + | ~~INFO: | ||
| + | ~~INFO: | ||
| + | ~~INFO: | ||
| + | ~~INFO: | ||
| + | ~~INFO: | ||
| + | ~~INFO: | ||
| + | </ | ||
| + | |||
| + | ==== 曲目一览:Song Info(songinfo)==== | ||
| + | |||
| + | **用途**:每首歌渲染为一行卡片——**曲绘在最左边**,右侧依次是歌曲标题、曲师与难度标签。多个块连续排列即形成曲目一览表,适合做音游曲目列表。 | ||
| + | |||
| + | **语法**(字段顺序可随意,'' | ||
| + | < | ||
| + | {{songinfo> | ||
| + | name = 光 | ||
| + | image = illustration: | ||
| + | artist = 姜米條 | ||
| + | type = phigros | ||
| + | collection = 过去的章节 | ||
| + | difficulties = EZ 2 | HD 7 | IN 12 | ||
| + | date = 2019/ | ||
| + | }} | ||
| + | </ | ||
| + | |||
| + | **示例**(真实歌曲渲染效果): | ||
| + | |||
| + | {{songinfo> | ||
| + | name = 光 | ||
| + | image = illustration: | ||
| + | artist = 姜米條 | ||
| + | type = phigros | ||
| + | collection = 过去的章节 | ||
| + | difficulties = EZ 2 | HD 7 | IN 12 | ||
| + | date = 2019/ | ||
| + | }} | ||
| + | |||
| + | **字段说明**: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ==== 章节选择:Chapter Select(chaptersel)==== | ||
| + | **用途**:每个章节渲染为一行卡片——**封面图在最左边**,右侧是章节名与副标题;**整张卡片可点击**跳转到章节页面。适合做章节索引页。 | ||
| + | |||
| + | **语法**: | ||
| + | < | ||
| + | {{chaptersel> | ||
| + | name = 过去的章节 | ||
| + | image = illustration: | ||
| + | subtitle = Chapter Legacy | ||
| + | count = 20 首 | ||
| + | link = phigros: | ||
| + | type = phigros | ||
| + | }} | ||
| + | </ | ||
| + | |||
| + | **示例**(真实章节卡片渲染效果): | ||
| + | |||
| + | {{chaptersel> | ||
| + | name = 过去的章节 | ||
| + | image = illustration: | ||
| + | subtitle = Chapter Legacy | ||
| + | count = 20 首 | ||
| + | link = phigros: | ||
| + | type = phigros | ||
| + | }} | ||
| + | |||
| + | **字段说明**: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||