19,585
edits
(added note about need to escape '=' and '|') |
(fixed group and name parameters) |
||
Line 1: | Line 1: | ||
<includeonly>{{#tag:ref|{{#if:{{{group|}}}|{{#ifeq:{{{group}}}|lower-alpha||<cite class="{{{group}}}">}}}}{{{1}}}{{#if:{{{group|}}}|{{#ifeq:{{{group}}}|lower-alpha||</cite>}}}}|name={{{name|}}}|group={{#ifeq:{{{alpha}}}|yes|lower-alpha|{{{group | <includeonly>{{#tag:ref|{{#if:{{{group|}}}|{{#ifeq:{{{group}}}|lower-alpha||<cite class="{{{group}}}">}}}}{{{1}}}{{#if:{{{group|}}}|{{#ifeq:{{{group}}}|lower-alpha||</cite>}}}}|{{#if:{{{name|}}}|name={{{name}}}}}|{{#ifeq:{{{group|}}}|group={{#ifeq:{{{alpha}}}|yes|lower-alpha|{{{group}}}}}}}}}</includeonly><noinclude> | ||
A shortcut for creating a reference in an article. Call this with the syntax <tt><nowiki>{{ref|Text of your reference.}}</nowiki></tt> to place a ref in an article, and then list the references at the end of the article using [[Template:Reflist]]. If the text that you pass in contains a '=' or '|' (pipe), you need to escape them because they have special meanings in template calls. The equals sign is escaped with the use of <tt><nowiki>{{=}}</nowiki></tt> and the pipe with <tt><nowiki>{{!}}</nowiki></tt>. | A shortcut for creating a reference in an article. Call this with the syntax <tt><nowiki>{{ref|Text of your reference.}}</nowiki></tt> to place a ref in an article, and then list the references at the end of the article using [[Template:Reflist]]. If the text that you pass in contains a '=' or '|' (pipe), you need to escape them because they have special meanings in template calls. The equals sign is escaped with the use of <tt><nowiki>{{=}}</nowiki></tt> and the pipe with <tt><nowiki>{{!}}</nowiki></tt>. | ||