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"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (move brackets inside link)
m (fix, use html entities)
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|[<nowiki/>[{{#var:citation_url-{{{1}}}}} {{#var:citation_id-{{{1}}}}}]<nowiki/>]|[<nowiki/>[[{{#var:citation_url-{{{1}}}}}|{{#var:citation_id-{{{1}}}}}]]<nowiki/>]}}<nowiki/></sup>
+
-->{{#if:{{#var:citation_url-{{{1}}}}}|<sup>{{#ifeq:{{#substr:{{#var:citation_url-{{{1}}}}}|0|4}}|http|[{{#var:citation_url-{{{1}}}}} &#91;{{#var:citation_id-{{{1}}}}}&#93;]|[[{{#var:citation_url-{{{1}}}}}|&#91;{{#var:citation_id-{{{1}}}}}&#93;]]}}<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>}}

Revision as of 20:10, 30 May 2014

Invalid usage - see Template:Cite