Template:File Reference: Difference between revisions

No edit summary
Cadex (talk | contribs)
Added Template:References to "see also" section
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{file |}}}
<includeonly>{{#if: {{{file |}}}  
| {{#if: {{{name |}}}
| {{#if: {{{name |}}}  
  | {{#tag: ref | <code>{{{file}}}.{{{type |xml}}}</code> | name={{{name}}}}}
| {{#tag: ref | <code>{{{file}}}{{{type |.xml}}}</code>{{#if: {{{note |}}} |, {{{note}}} |}} | name={{{name}}}}}  
  | {{#tag: ref | <code>{{{file}}}.{{{type |xml}}}</code>}}
| {{#tag: ref | <code>{{{file}}}{{{type |.xml}}}</code>{{#if: {{{note |}}} |, {{{note}}} |}}}}}}  
}}
| {{Template Error}}}}</includeonly><noinclude>This template can be used to reference games files other than those present in the assembly, such as XML files.  
| {{Template Error}}
}}</includeonly>
<noinclude>This template can be used to reference games files other than those present in the assembly, such as XML files.  


{|class="wikitable"
{|class="wikitable"
Line 20: Line 17:
|<code>name</code>
|<code>name</code>
|Used to specify a name for the citation itself, so one can use that citation again later via <code><nowiki><ref name="name-goes-here"/></nowiki></code>
|Used to specify a name for the citation itself, so one can use that citation again later via <code><nowiki><ref name="name-goes-here"/></nowiki></code>
|-
|<code>note</code>
|Used to add a note to the end of the citation if further clarification is necessary/desired.
|}
|}


Line 35: Line 35:
<pre><nowiki>{{File Reference
<pre><nowiki>{{File Reference
| file=FileName
| file=FileName
| type=txt
| type=.txt
}}</nowiki></pre>{{File Reference
| file=FileName
| type=.txt
}}
 
If you need to specify a file that has no extension, simply do so by specifying <code>type</code> and leaving it blank.
 
<pre><nowiki>{{File Reference
| file=FileName
| type=
}}</nowiki></pre>{{File Reference
}}</nowiki></pre>{{File Reference
| file=FileName
| file=FileName
| type=txt
| type=
}}
}}


Line 53: Line 63:
<ref name="CitationName"/>
<ref name="CitationName"/>


[[Category:Templates]]
If you want to add a note to the end of the citation:
 
<pre><nowiki>{{File Reference
| file=FileName
| note=this is a note. Epic.
}}</nowiki></pre>{{File Reference
| file=FileName
| note=this is a note. Epic.
}}
 
== See Also ==
* [[Template:References]]
* [[Template:XML Reference]]
* [[Template:Code Reference]]
 
== References ==
<references />
 
[[Category:Reference Templates]]


</noinclude>
</noinclude>