Difference between revisions of "Template:Wob ref"
Jump to navigation
Jump to search
m (maybe improve bad ref import link (by making it link to the WoB generically as the main line) |
m (make Cite:Arcanum pages the default display) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{# |
+ | <includeonly>{{#ifexist: Cite: Arcanum-{{{1}}}<!-- |
+ | CITE: PAGE EXISTS |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | interwiki link to {{{1}}} and show text from [[Cite: Arcanum-{{{1}}}]] |
||
− | -->|<!-- |
||
⚫ | |||
+ | show "-- Arcanum - Month YYYY" small |
||
⚫ | |||
+ | --><br><small> — <!-- |
||
− | |||
+ | -->[[coppermind: Arcanum|Arcanum]]<!-- |
||
− | TEXT |
||
⚫ | |||
⚫ | |||
+ | --><span class="cite-date"><page-property key="cite-date" page="Cite: Arcanum-{{{1}}}" /></span><!-- |
||
⚫ | |||
− | -->[[ |
+ | --><sup>[[Cite: Arcanum-{{{1}}}|#]]</sup><!-- direct link to Cite namespace page |
− | + | --></small><!-- |
|
− | + | -->|name=Arcanum-{{{1}}}|group={{{group|}}}<!-- |
|
⚫ | |||
-->}}<!-- |
-->}}<!-- |
||
+ | ELSE |
||
− | NAME |
||
− | -->| |
+ | -->|<!-- |
+ | |||
+ | TODO: remove this else/if |
||
+ | IF {{wob ref|0|text}} OR {{wob ref|0|text=words}} |
||
+ | -->{{#if:{{{text|}}}{{{2|}}}<!-- |
||
⚫ | |||
+ | ELSE |
||
− | GROUP |
||
− | -->| |
+ | -->|{{#tag:ref-once<!-- |
+ | -->|[[wob: {{{1}}}|Arcanum entry {{{1}}}]]<br><!-- |
||
⚫ | |||
+ | -->|name=Arcanum-{{{1}}}|group={{{group|}}}<!-- |
||
⚫ | |||
+ | -->}}<!-- TODO: remove (as part of {{wob ref|0|text}} handler) |
||
⚫ | |||
+ | END |
||
-->}}</includeonly><noinclude> |
-->}}</includeonly><noinclude> |
||
This template is used to refer to answers in [[coppermind: Arcanum|Arcanum]]. |
This template is used to refer to answers in [[coppermind: Arcanum|Arcanum]]. |
||
Line 31: | Line 43: | ||
It utilises the Cite namespace by default, but if used in old mode will call {{t|wob ref/manual}} and uses either <code>{{{2}}}</code> or <code>{{{text}}}</code> and the <code>{{{date}}}</code> parameter |
It utilises the Cite namespace by default, but if used in old mode will call {{t|wob ref/manual}} and uses either <code>{{{2}}}</code> or <code>{{{text}}}</code> and the <code>{{{date}}}</code> parameter |
||
− | [[ |
+ | [[category: sources]] |
− | [[ |
+ | [[category: reference templates]] |
Revision as of 20:21, 22 August 2018
This template is used to refer to answers in Arcanum.
To use, include {{wob ref|entry}}
It utilises the Cite namespace by default, but if used in old mode will call {{wob ref/manual}}
and uses either {{{2}}}
or {{{text}}}
and the {{{date}}}
parameter