v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Difference between revisions of "Template:Cite"
Jump to navigation
Jump to search
m (fix, use html entities) |
m (noinclude) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#if:{{{1|}}} | {{#if:{{{1|}}} | ||
|{{#if:{{{2|}}}|{{#vardefine:citation_url-{{{1}}}|{{{2}}}}}{{var_incr|citation_id|default=1}}{{#vardefine:citation_id-{{{1}}}|{{#var:citation_id}}}}}}<!-- | |{{#if:{{{2|}}}|{{#vardefine:citation_url-{{{1}}}|{{{2}}}}}{{var_incr|citation_id|default=1}}{{#vardefine:citation_id-{{{1}}}|{{#var:citation_id}}}}}}<!-- | ||
− | -->{{#if:{{#var:citation_url-{{{1}}}}}|<sup>{{#ifeq:{{#substr:{{#var:citation_url-{{{1}}}}}|0|4}}|http|[{{#var:citation_url-{{{1}}}}} [{{#var:citation_id-{{{1}}}}}]]|[[{{#var:citation_url-{{{1}}}}}|[{{#var:citation_id-{{{1}}}}}]]]}}<nowiki/></sup> | + | -->{{#if:{{#var:citation_url-{{{1}}}}}|<sup class="plainlinks" style="line-height: 0; position: relative; vertical-align: baseline; top: -0.5em;">{{#ifeq:{{#substr:{{#var:citation_url-{{{1}}}}}|0|4}}|http|[{{#var:citation_url-{{{1}}}}} [{{#var:citation_id-{{{1}}}}}]]|[[{{#var:citation_url-{{{1}}}}}|[{{#var:citation_id-{{{1}}}}}]]]}}<nowiki/></sup> |
|<span class="error">Citation <code>{{{1}}}</code> not defined!</span>}} | |<span class="error">Citation <code>{{{1}}}</code> not defined!</span>}} | ||
|<span class="error">Invalid usage - see [[Template:Cite]]</span>}} | |<span class="error">Invalid usage - see [[Template:Cite]]</span>}} | ||
+ | <noinclude>{{documentation}}</noinclude> |
Latest revision as of 16:44, 16 June 2014
Invalid usage - see Template:Cite
(view - edit - history - purge) Documentation
Usage
Defining a citation:
{{cite|name|source}}
("source" can be either a page name or an external URL)
Reusing a citation:
{{cite|name}}
Citations can be redefined, but doing so will increase their ID (shown in superscript). Definitions only apply to citations that follow them.