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 (Text replacement - "Category: Sources [[" to "[[")
 
(4 intermediate revisions by one other 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: Reference templates]]
 
[[Category: Reference templates]]
  +
  +
== Articles using Template ==
  +
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here}}
  +
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0}}

Latest revision as of 05:42, 22 May 2022

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[edit]