Template:Taglink: Difference between revisions

From Spring
Jump to navigationJump to search
Flozi (talk | contribs)
m usage addendum
Flozi (talk | contribs)
m cleanup
Line 16: Line 16:
Usage:
Usage:


<pre>{{taglink|foo}} bob</pre>
<pre>{{taglink|foo}}</pre>


Result:
Result:


{{taglink|foo}} bob
{{taglink|foo}}


Usage (Optional 2nd param to link to a tag with a given value):
Usage (Optional 2nd param to link to a tag with a given value):


<pre>{{taglink|foo|bar}} bob</pre>
<pre>{{taglink|foo|bar}}/pre>


Result:
Result:

Revision as of 18:42, 21 October 2012

A template to simplify cross-referencing definition tags (currently only within a page).

Usage:

{{taglink|foo}}

Result:

foo =

Usage (Optional 2nd param to link to a tag with a given value):

foo = bar/pre>

Result:
foo = bar

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