Difference between revisions of "Template:Article ref"

From The Coppermind
Jump to navigation Jump to search
m (oops)
(handle the case that parameter 'text' or '2' was not provided)
Line 4: Line 4:
 
-->|{{{pre|{{{4|}}}|}}}<!--
 
-->|{{{pre|{{{4|}}}|}}}<!--
   
-->[[{{{page|{{{1}}}|}}}|{{{text|{{{2|}}}|}}}]]<!--
+
-->[[{{{page|{{{1}}}|}}}{{#if:{{{text|}}}{{{2|}}}{{!}}}}{{{text|{{{2|}}}|}}}]]<!--
   
 
-->{{{post|{{{3|}}}|}}}<!--
 
-->{{{post|{{{3|}}}|}}}<!--

Revision as of 05:26, 28 April 2016

This template is used to refer to other articles on the coppermind.

To use, include {{article ref|page|description|post|pre}}

  • {{{page}}} replaces the link
  • {{{text}}} replaces the description
  • {{{pre}}} is included before the link
  • {{{post}}} is included after the link
  • {{{name}}} replaces {{{page}}} or {{{1}}} as the reference name
  • {{{group}}} sets the reference group