Template:File Reference: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{file |}}} | <includeonly>{{#if: {{{file |}}} | ||
| {{#if: {{{name |}}} | | {{#if: {{{name |}}} | ||
| {{#tag: ref | <code>{{{file}}} | | {{#tag: ref | <code>{{{file}}}{{{type |.xml}}}</code> | name={{{name}}}}} | ||
| {{#tag: ref | <code>{{{file}}} | | {{#tag: ref | <code>{{{file}}}{{{type |.xml}}}</code>}} | ||
}} | }} | ||
| {{Template Error}} | | {{Template Error}} | ||
Line 35: | Line 35: | ||
<pre><nowiki>{{File Reference | <pre><nowiki>{{File Reference | ||
| file=FileName | | file=FileName | ||
| type=txt | | type=.txt | ||
}}</nowiki></pre>{{File Reference | }}</nowiki></pre>{{File Reference | ||
| file=FileName | | file=FileName | ||
| type=txt | | type=.txt | ||
}} | }} | ||
Revision as of 08:23, 2 March 2021
This template can be used to reference games files other than those present in the assembly, such as XML files.
Parameter | Notes |
---|---|
file
|
Used to specify the file's name. Must be specified or you'll get a template error. |
type
|
Used to specify the file extension. xml by default.
|
name
|
Used to specify a name for the citation itself, so one can use that citation again later via <ref name="name-goes-here"/>
|
Usage
See the bottom of the page for the results of these examples.
If you simply want to create a citation for an XML file that you don't plan on using again:
{{File Reference | file=FileName }}
If you need to specify a file extension that isn't XML, say for example, TXT:
{{File Reference | file=FileName | type=.txt }}
If you need to give the citation a name so you can use it again later:
{{File Reference | file=FileName | name=CitationName }}
If you do this, you can use that citation again without creating a new one. In this case, you'd do so via <ref name="CitationName"/>
[3]