Difference between revisions of "Template:Note item"
From The Battle for Wesnoth Wiki
(Allowing two instances of a note -- experimental) |
(Testing for allowing third note) |
||
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>''' | <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>''' {{#if: {{#expr: {{{instances|}}} >= 3 }} | '''<sup>[[#tonote{{{no|}}}c|c]]</sup>''' }} | <sup>[[#tonote{{{no|}}}|^]]</sup> }} {{{text|}}}</li></includeonly><noinclude>{{Note start/doc}}{{Template}}</noinclude> |
Revision as of 00:14, 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}}