Difference between revisions of "Template:Wob ref"

From The Coppermind
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>{{#if:{{{text|}}}{{{2|}}}|<!--
+
<includeonly>{{#ifexist: Cite: Arcanum-{{{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}}}|{{cite: 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><!--
-->|<!--
 
-->[[wob: {{{1}}}|{{cite: Arcanum-{{{1}}}|}}]]<!--
+
--><sup>[[Cite: Arcanum-{{{1}}}|#]]</sup><!-- direct link to Cite namespace page
--><br><small> &mdash; <!--
+
--></small><!--
-->[[coppermind: Arcanum|Arcanum]] - <page-property key="cite-date" page="Cite: Arcanum-{{{1}}}" /><sup>[[Cite: Arcanum-{{{1}}}|#]]</sup></small><!--
+
-->|name=Arcanum-{{{1}}}|group={{{group|}}}<!--
-->|[[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><!--
 
--><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>
 
-->}}</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: sources]]
[[Category: Reference templates]]
+
[[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