Template:References: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>== References == {{#if:{{{1|}}}|{{As of patch inline|{{{1}}}}}}}<references /></includeonly><noinclude> Adds a references section, and optionally, an <code>As of...")
 
No edit summary
Line 2: Line 2:
{{#if:{{{1|}}}|{{As of patch inline|{{{1}}}}}}}<references /></includeonly><noinclude>
{{#if:{{{1|}}}|{{As of patch inline|{{{1}}}}}}}<references /></includeonly><noinclude>


Adds a references section, and optionally, an <code>As of patch inline</code> ambox if the first parameter is specified.
Adds a references section, and optionally, an <code>As of patch inline</code> ambox if the first parameter is specified.<ref>According to '''''egocarib'''''.</ref>
 
== Usage ==
===Option 1 (no patch info)===
 
<code><nowiki>{{references}}</nowiki></code>
 
Results in this code:
<pre>
== References ==
<references />
</pre>
 
 
 
===Option 2 (patch info)===
 
<code><nowiki>{{references|2.0.201.49}}</nowiki></code>
 
Results in this code:
<pre>
== References ==
{{as of patch inline|2.0.201.49}}
<references />
</pre>
 
 
 
===Example rendered output of option 2:===
{{references|2.0.201.49}}


</noinclude>
</noinclude>

Revision as of 20:09, 13 November 2020


Adds a references section, and optionally, an As of patch inline ambox if the first parameter is specified.[1]

Usage

Option 1 (no patch info)

{{references}}

Results in this code:

== References ==
<references />


Option 2 (patch info)

{{references|2.0.201.49}}

Results in this code:

== References ==
{{as of patch inline|2.0.201.49}}
<references />


Example rendered output of option 2:

References

This information is reliable as of patch 2.0.201.49.
  1. According to egocarib.