Difference between revisions of "Template:File ref"

From The Coppermind
Jump to navigation Jump to search
(Created page with "<includeonly>{{#tag:ref<!-- TEXT -->|{{{pre|}}}[[:file:{{{1}}}|{{{text|{{{2|{{{1}}}|}}}|}}}]]{{{post|}}}<!-- NAME -->|name={{{name|{{{1}}}|}}}<!-- GROUP -->|group={{{group|...")
 
(try)
Line 2: Line 2:
   
 
TEXT
 
TEXT
  +
-->|<!--
-->|{{{pre|}}}[[:file:{{{1}}}|{{{text|{{{2|{{{1}}}|}}}|}}}]]{{{post|}}}<!--
 
  +
  +
-->{{{pre|}}}<!--
  +
  +
-->{{#if:{{{1|}}}<!--
 
-->|[[:file:{{{1}}}|{{{text|{{{2|{{{1}}}|}}}|}}}]]<!--
  +
-->|{{ref/broken|file/missing}}
  +
-->}}<!--
  +
  +
-->{{{post|}}}<!--
   
 
NAME
 
NAME
Line 12: Line 21:
 
-->}}</includeonly><noinclude>This template is used to refer to files on the wiki.
 
-->}}</includeonly><noinclude>This template is used to refer to files on the wiki.
   
To use, include {{t|file ref|file|text}}
+
To use, include {{t|file ref|file|description}}
* {{{text}}} replaces the second argument
+
* {{{text}}} replaces the description
 
* {{{pre}}} is included before the link
 
* {{{pre}}} is included before the link
 
* {{{post}}} is included after the link
 
* {{{post}}} is included after the link
* {{{name}}} replaces {{{1}}} as the reference name
+
* {{{name}}} replaces the file name as the reference name
 
* {{{group}}} sets the reference group
 
* {{{group}}} sets the reference group
   

Revision as of 12:27, 16 December 2014

This template is used to refer to files on the wiki.

To use, include {{file ref|file|description}}

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