Template:Xtaglink: Difference between revisions

From Spring
Jump to navigationJump to search
Flozi (talk | contribs)
derp
Flozi (talk | contribs)
m modify examples so as to avoid wanted link
Line 16: Line 16:
Usage:
Usage:


<pre>{{xtaglink|page|foo}}</pre>
<pre>{{xtaglink|Units-UnitDefs|builder}}</pre>


Result:
Result:


{{xtaglink|page|foo}}
{{xtaglink|Units-UnitDefs|builder}}


Usage (Optional 3rd param to link to a tag with a given value):
Usage (Optional 3rd param to link to a tag with a given value):


<pre>{{xtaglink|page|foo|bar}}</pre>
<pre>{{xtaglink|Units-UnitDefs|builder|true}}</pre>


Result:
Result:
{{xtaglink|page|foo|bar}}
{{xtaglink|Units-UnitDefs|builder|true}}


N.B. Please do not use this tag ''within'' a <nowiki><code></nowiki> block when documenting a formula tags are used in - it will break the markup and is confusing. See [[Units-WeaponDefs#Tag:burstRate]] for an example of the proper usage in this case.
N.B. Please do not use this tag ''within'' a <nowiki><code></nowiki> block when documenting a formula tags are used in - it will break the markup and is confusing. See [[Units-WeaponDefs#Tag:burstRate]] for an example of the proper usage in this case.
</noinclude>
</noinclude>

Revision as of 14:02, 29 October 2012

A template to simplify cross-referencing definition tags between different pages. Use Template:Taglink for links to tags within the same page.

Usage:

{{xtaglink|Units-UnitDefs|builder}}

Result:

builder =

Usage (Optional 3rd param to link to a tag with a given value):

{{xtaglink|Units-UnitDefs|builder|true}}

Result: builder = true

N.B. Please do not use this tag within a <code> block when documenting a formula tags are used in - it will break the markup and is confusing. See Units-WeaponDefs#Tag:burstRate for an example of the proper usage in this case.