Difference between revisions of "Template:Ref"

From WiiBrew
Jump to navigation Jump to search
m (Hallowizer moved page Template:TemplateRef to Template:Ref without leaving a redirect: Moved to wrong location)
m (doc)
 
Line 1: Line 1:
{{#vardefine: refcounter | {{#expr: {{#var: refcounter | 0}} + 1}}}}{{#vardefine: citelist | {{#var: citelist}}{{#if: {{#var: citelist}}|<br>}}<span {{#if:{{{noid|}}}||id="note_{{#var: refcounter}}"}}>[[#ref_{{#var: refcounter}}|↑]] {{#var: refcounter}}. {{{1}}}</span>}}<sup class="reference plainlinks nourlexpansion" {{#if:{{{noid|}}}||id="ref_{{#var: refcounter}}"}}>[[#note_{{#var: refcounter}}|<nowiki>[</nowiki>{{#var: refcounter}}<nowiki>]</nowiki>]]</sup>
+
{{#vardefine: refcounter | {{#expr: {{#var: refcounter | 0}} + 1}}}}{{#vardefine: citelist | {{#var: citelist}}{{#if: {{#var: citelist}}|<br>}}<span {{#if:{{{noid|}}}||id="note_{{#var: refcounter}}"}}>[[#ref_{{#var: refcounter}}|↑]] {{#var: refcounter}}. {{{1}}}</span>}}<sup class="reference plainlinks nourlexpansion" {{#if:{{{noid|}}}||id="ref_{{#var: refcounter}}"}}>[[#note_{{#var: refcounter}}|<nowiki>[</nowiki>{{#var: refcounter}}<nowiki>]</nowiki>]]</sup><noinclude>{{doc}}</noinclude>

Latest revision as of 01:39, 22 July 2021

[1]

[edit] Template documentation

{{ref}} and {{references}} are used in a manner similar to the <ref> and <references> tags in the Cite extension, which is not installed on WiiBrew. The former template creates the "[1]" symbol, while the latter is used at the location of the reference list itself.

Usage

{{ref|citation}}

{{references}}

Citation will be displayed in the reference list generated by {{references}}.

See also