Difference between revisions of "Template:Wob ref"

m
make Cite:Arcanum pages the default display
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)
<includeonly>{{#ififexist: Cite: Arcanum-{{{text|}}}{{{2|1}}}|<!--
 
CITE: PAGE EXISTS
-->{{wob ref/manual|{{{1}}}|{{{text|}}}{{{2|}}}|date={{{date}}}|}}<!--
-->|{{#tag:ref-once<!--
-->|<!--
 
interwiki link to {{{1}}} and show text from [[Cite: Arcanum-{{{1}}}]]
-->|<!--
-->[[wob: {{{1}}}|{{#ifexist: Citecite: Arcanum-{{{1}}}|}}]]<!--
 
show "-- Arcanum - Month YYYY" small
-->{{#tag:ref-once<!--
--><br><small> &mdash; <!--
 
-->[[coppermind: Arcanum|Arcanum]]<!--
TEXT
-->| - <!--
-->|{{#ifexist: Cite: Arcanum-{{{1}}}<!--
--><span class="cite-date"><page-property key="cite-date" page="Cite: Arcanum-{{{1}}}" /></span><!--
-->|<!--
--><sup>[[wob: {{{1}}}|{{citeCite: Arcanum-{{{1}}}|}}#]]</sup><!-- direct link to Cite namespace page
--><br></small> &mdash; <!--
-->[[coppermind: Arcanum|Arcanum]] - <page-property key="cite-date" pagename="Cite: Arcanum-{{{1}}}" /><sup>[[Cite: Arcanum-|group={{{1group|}}}|#]]</sup></small><!--
-->|[[wob: {{{1}}}|Arcanum entry {{{1}}}]]<br><small>Error: [[Cite: Arcanum-{{{1}}}|missing reference description, click to import]].</small><!--
-->}}<!--
 
ELSE
NAME
-->|name=Arcanum-{{{1}}}<!--
 
TODO: remove this else/if
IF {{wob ref|0|text}} OR {{wob ref|0|text=words}}
-->{{#if:{{{text|}}}{{{2|}}}<!--
-->|{{wob ref/manual|{{{1}}}|{{{text|}}}{{{2|}}}|date={{{date}}}|}}<!--
 
ELSE
GROUP
-->|group={{{group|}}}#tag:ref-once<!--
-->|[[wob: {{{1}}}|Arcanum entry {{{1}}}]]<br><!--
-->|[[wob: {{{1}}}|Arcanum entry {{{1}}}]]<br --><small>Error: [[Cite: Arcanum-{{{1}}}|missing reference description, click to import]].</small><!--
-->|name=Arcanum-{{{1}}}|group={{{group|}}}<!--
-->}}<!--
 
-->}}<!-- TODO: remove (as part of {{wob ref|0|text}} handler)
-->}}<!--
 
END
-->}}</includeonly><noinclude>
This template is used to refer to answers in [[coppermind: Arcanum|Arcanum]].
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
 
[[Categorycategory: Sourcessources]]
[[Categorycategory: Referencereference templates]]
40,275

edits