Difference between revisions of "Template:Ref"

From GTAMods Wiki
Jump to navigation Jump to search
(template for references)
 
(added documentation)
 
Line 1: Line 1:
<small><sup id="ref_{{{1}}}" class="plainlinks">[[#endnote_{{{1}}}|{{{2|[{{{1}}}]}}}]]</sup></small>
+
<small><sup id="ref_{{{1}}}" class="plainlinks">[[#endnote_{{{1}}}|{{{2|[{{{1}}}]}}}]]</sup></small><noinclude>
 +
 
 +
<nowiki>{{ref}}</nowiki> and [[Template:Note|<nowiki>{{note}}</nowiki>]] are used for customizable inline references to footnotes.
 +
 
 +
'''''Syntax:'''''<br>
 +
Text<nowiki>{{ref|identifier}}</nowiki>.
 +
 
 +
<nowiki>{{note|identifier}}</nowiki> Reference text.
 +
''Results in:''<br>
 +
 
 +
Text{{ref|identifier}}.
 +
 
 +
{{note|identifier}} Reference text.
 +
----
 +
'''''Extended Syntax:'''''<br>
 +
Text<nowiki>{{ref|identifier|visible ref text!}}</nowiki>.
 +
 
 +
<nowiki>{{note|identifier|visible note text!}}</nowiki> Reference text.
 +
''Results in:''<br>
 +
 
 +
Text{{ref|identifier|visible ref text!}}.
 +
 
 +
{{note|identifier|visible note text!}} Footnote text.

Latest revision as of 06:57, 11 January 2009

[[#endnote_{{{1}}}|[{{{1}}}]]]

{{ref}} and {{note}} are used for customizable inline references to footnotes.

Syntax:

Text{{ref|identifier}}.
{{note|identifier}} Reference text.

Results in:

Text[identifier].
^ Reference text.

Extended Syntax:

Text{{ref|identifier|visible ref text!}}.
{{note|identifier|visible note text!}} Reference text.

Results in:

Textvisible ref text!.
^visible note text! Footnote text.