Difference between revisions of "Template:Wob ref"

From The Coppermind
Jump to navigation Jump to search
m (Reverted edits by BeskarKomrk (talk) to last revision by Fbstj)
m (remove the event handling and merge in functions from {{wob ref2}})
Line 1: Line 1:
<includeonly>{{#tag:ref<!--
<includeonly>{{#tag:ref<!--

TODO: depreciate using {{{2}}} and {{{text}}} once they're all done


TEXT
TEXT
-->|<!--
-->|<!--

-->{{#if:{{{broken|}}}|{{ref/broken}}|<!-- -->}}<!--

-->{{#if:{{{text|{{{2|}}}|}}}<!--
-->|{{#if:{{{date|}}}|<!-- -->|{{ref/broken|ref/date}}|<!-- -->}}<!--
-->|<!--
-->}}<!--


-->{{{pre|}}}<!--
-->{{{pre|}}}<!--


-->[[wob:{{{1}}}|{{{2|{{cite: Arcanum-{{{1}}}|text}}|}}}]]<!--
asker, answerer, etc?

-->[[wob:{{{1}}}|{{{text|{{{2}}}|}}}]]<!--


-->{{{post|}}}<!--
-->{{{post|}}}<!--
Line 21: Line 14:
--><br><small> &mdash; <!--
--><br><small> &mdash; <!--


-->{{#if:{{{event|}}}|{{{event}}} -&#32;|}}<!--
-->[[coppermind: Arcanum|Arcanum]] - {{{date|{{cite: Arcanum-{{{1}}}|date}}|}}}</small><!--

-->[[coppermind: Arcanum|Arcanum]] - {{{date}}}</small><!--


NAME
NAME
-->|name={{{name|wob-{{{1}}}|}}}<!--
-->|name={{{name|Arcanum-{{{1}}}|}}}<!--


GROUP
GROUP
Line 38: Line 29:
To use, include {{t|wob ref|entry|description}}
To use, include {{t|wob ref|entry|description}}
* {{{text}}} replaces the description
* {{{text}}} replaces the description
* {{{date}}} is the facts publication date (YYYY-MM-DD)
* {{{event}}} is the name of the event (optional)
* {{{pre}}} is included before the link
* {{{pre}}} is included before the link
* {{{post}}} is included after the link
* {{{post}}} is included after the link

Revision as of 15:41, 9 December 2017

This template is used to refer to answers in Arcanum.

To use, include {{wob ref|entry|description}}

  • {{{text}}} replaces the description
  • {{{pre}}} is included before the link
  • {{{post}}} is included after the link
  • {{{name}}} replaces the generated reference name
  • {{{group}}} sets the reference group