Difference between revisions of "Template:Note item"

From The Battle for Wesnoth Wiki
(Allowing up to 6 notes)
(Allowing eight 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>''' }} {{#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>
+
<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>''' }} {{#switch: {{#expr: {{{instances|}}} >= 7 }} | 1='''<sup>[[#tonote{{{no|}}}g|g]]</sup>''' }} {{#switch: {{#expr: {{{instances|}}} >= 8 }} | 1='''<sup>[[#tonote{{{no|}}}h|h]]</sup>''' }} | <sup>[[#tonote{{{no|}}}|^]]</sup> }} {{{text|}}}</li></includeonly><noinclude>{{Note start/doc}}{{Template}}</noinclude>

Latest revision as of 21:33, 29 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.
This page was last edited on 29 July 2019, at 21:33.