Difference between revisions of "Template:Wob ref"

From The Coppermind
Jump to navigation Jump to search
m (make Cite:Arcanum pages the default display)
m (spacing tweaks)
Line 23: Line 23:
 
TODO: remove this else/if
 
TODO: remove this else/if
 
IF {{wob ref|0|text}} OR {{wob ref|0|text=words}}
 
IF {{wob ref|0|text}} OR {{wob ref|0|text=words}}
-->{{#if:{{{text|}}}{{{2|}}}<!--
+
-->{{#if:{{{text|}}}{{{2|}}}{{{date|}}}<!--
-->|{{wob ref/manual|{{{1}}}|{{{text|}}}{{{2|}}}|date={{{date}}}|}}<!--
+
-->|{{wob ref/manual|{{{1}}}|{{{text|}}}{{{2|}}}|date={{{date}}}|}}<!--
   
 
ELSE
 
ELSE
-->|{{#tag:ref-once<!--
+
-->|{{#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><!--
+
--><small>Error: [[Cite: Arcanum-{{{1}}}|missing reference description, click to import]].</small><!--
-->|name=Arcanum-{{{1}}}|group={{{group|}}}<!--
+
-->|name=Arcanum-{{{1}}}|group={{{group|}}}<!--
-->}}<!--
+
-->}}<!--
   
 
-->}}<!-- TODO: remove (as part of {{wob ref|0|text}} handler)
 
-->}}<!-- TODO: remove (as part of {{wob ref|0|text}} handler)

Revision as of 20:34, 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