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|...")
 
m (+track +usage)
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
   
 
TEXT
 
TEXT
  +
-->|<!--
-->|{{{pre|}}}[[:file:{{{1}}}|{{{text|{{{2|{{{1}}}|}}}|}}}]]{{{post|}}}<!--
 
  +
  +
-->{{{pre|}}}<!-- -->{{#if:{{{pre|}}}|{{ref/uses-pre}}|}}<!--
  +
  +
-->{{#if:{{{1|}}}<!--
 
-->|[[:file:{{{1}}}|{{{text|{{{2|{{{1}}}|}}}|}}}]]<!--
  +
-->|{{ref/broken|file/missing}} {{{text|{{{2|{{{1}}}|}}}|}}}<!--
  +
-->}}<!--
  +
  +
-->{{{post|}}}<!-- -->{{#if:{{{post|}}}|{{ref/uses-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
   
 
[[Category: Sources]]
 
[[Category: Sources]]
 
[[Category: Reference templates]]
 
[[Category: Reference templates]]
  +
  +
== Articles using Template ==
  +
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here}}
  +
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0}}

Revision as of 10:47, 19 April 2020

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

Articles using Template