模板:Notelist/doc

来自SCP: Sharp Wiki
This is the documentation page. It should be transcluded into the main template page. See Template:Documentation for more information

The template is used in place of the <references group="note"/> tag.

Usage[编辑 | 编辑源代码]

Simply put the template where you would normally put the <references group="note"/> tag. If you want a group other than "note", simply set the first parameter to the name of the group.

The parameter {{{columns}}} can be set to display the notes in columns, simply by setting it to the number of columns desired.

The parameter {{{notes}}} can be set to contain references to define references not previously defined, refer to the extension documentation for more information.

The parameter {{{style}}} can be set to pass along styles to the note list in addition to the columns.

Example[编辑 | 编辑源代码]

<ref group="note">Example note 1</ref>
<ref group="note" name="note2">Example note 2</ref>
<ref group="note" name="note2"/>
<ref group="note">Example note 3</ref>
<ref group="note">Example note 4</ref>

=== Notes ===
{{notelist|columns=2}}
produces

[note 1] [note 2] [note 2] [note 3] [note 4]

Notes[编辑 | 编辑源代码]

  1. Example note 1
  2. 2.0 2.1 Example note 2
  3. Example note 3
  4. Example note 4
<ref>Example ref 1</ref>
<ref>Example ref 2</ref>
<ref group="fn">Example note 3</ref>
<ref group="fn">Example note 4</ref>

=== Notes ===
{{notelist|fn}}

== References ==
{{reflist}}
produces

[1] [2] [fn 1] [fn 2]

Notes[编辑 | 编辑源代码]

  1. Example note 3
  2. Example note 4

References[编辑 | 编辑源代码]

  1. Example ref 1
  2. Example ref 2

See also[编辑 | 编辑源代码]


Cookie帮助我们提供我们的服务。通过使用我们的服务,您同意我们使用cookie。