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 (experiment with vertical-align) |
||
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 style="vertical-align:top;">{{#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>}} |
Revision as of 20:35, 30 May 2014
Invalid usage - see Template:Cite