Template:File Reference: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: 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 59: Line 62:
If you do this, you can use that citation again without creating a new one. In this case, you'd do so via <code><nowiki><ref name="CitationName"/></nowiki></code>
If you do this, you can use that citation again without creating a new one. In this case, you'd do so via <code><nowiki><ref name="CitationName"/></nowiki></code>
<ref name="CitationName"/>
<ref name="CitationName"/>
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.
}}


[[Category:Templates]]
[[Category:Templates]]


</noinclude>
</noinclude>

Revision as of 19:36, 31 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"/>
note Used to add a note to the end of the citation if further clarification is necessary/desired.

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
}}

[1]

If you need to specify a file extension that isn't XML, say for example, TXT:

{{File Reference
| file=FileName
| type=.txt
}}

[2]

If you need to specify a file that has no extension, simply do so by specifying type and leaving it blank.

{{File Reference
| file=FileName
| type=
}}

[3]

If you need to give the citation a name so you can use it again later:

{{File Reference
| file=FileName
| name=CitationName
}}

[4]

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"/> [4]

If you want to add a note to the end of the citation:

{{File Reference
| file=FileName
| note=this is a note. Epic.
}}

[5]


  1. FileName.xml
  2. FileName.txt
  3. FileName
  4. 4.0 4.1 FileName.xml
  5. FileName.xml, this is a note. Epic.