Jump to content

Template:Note item: Difference between revisions

From The Battle for Wesnoth Wiki
Sub2pewds (talk | contribs)
m Fixing mistake
Sub2pewds (talk | contribs)
Allowing up to 6 notes
Line 1: Line 1:
<includeonly><li id=note{{{no|}}}> {{#if: {{{instances|}}} | <sup>^</sup> '''<sup>[[#tonote{{{no|}}}a|a]]</sup>''' '''<sup>[[#tonote{{{no|}}}b|b]]</sup>''' {{#switch: {{#expr: {{{instances|}}} >= 3 }} | 1='''<sup>[[#tonote{{{no|}}}c|c]]</sup>''' }} | <sup>[[#tonote{{{no|}}}|^]]</sup> }} {{{text|}}}</li></includeonly><noinclude>{{Note start/doc}}{{Template}}</noinclude>
<includeonly><li id=note{{{no|}}}> {{#if: {{{instances|}}} | <sup>^</sup> '''<sup>[[#tonote{{{no|}}}a|a]]</sup>''' '''<sup>[[#tonote{{{no|}}}b|b]]</sup>''' {{#switch: {{#expr: {{{instances|}}} >= 3 }} | 1='''<sup>[[#tonote{{{no|}}}c|c]]</sup>''' }} {{#switch: {{#expr: {{{instances|}}} >= 4 }} | 1='''<sup>[[#tonote{{{no|}}}d|d]]</sup>''' }} {{#switch: {{#expr: {{{instances|}}} >= 5 }} | 1='''<sup>[[#tonote{{{no|}}}e|e]]</sup>''' }} {{#switch: {{#expr: {{{instances|}}} >= 6 }} | 1='''<sup>[[#tonote{{{no|}}}f|f]]</sup>''' }} | <sup>[[#tonote{{{no|}}}|^]]</sup> }} {{{text|}}}</li></includeonly><noinclude>{{Note start/doc}}{{Template}}</noinclude>

Revision as of 00:17, 28 July 2019

Note start, Note end and Note end can be used to create lists of notes. Only the Note item takes parameters.

Parameters

no denotes which number note it is.

text denotes the text associated with the note.

instances denotes the number of instances where the note is called.

Usage

{{Note start}}
{{Note item
|no=1
|text=This is a note.
}}
{{Note item
|no=2
|text=This is a note.
|instances=This note is mentioned twice in the article.
}}
{{Note end}}

  1. ^ This is a note.
  2. ^ a b This is a note.