Template:Taglink: Difference between revisions

From Spring
Jump to navigationJump to search
Flozi (talk | contribs)
m use courier first for size
Flozi (talk | contribs)
m tmplts
Line 6: Line 6:
       color: #ff6600;
       color: #ff6600;
   }
   }
}}<includeonly>[[#Tag:{{{1}}}|<code>{{{1}}}</code>]]{{#if: {{{2|}}}|<span class="mono"> = <span class="value">{{{2}}}</span></span>|}}</includeonly><noinclude>
}}<includeonly>[[#Tag:{{{1}}}|<code>{{{1}}}</code>]]{{#if: {{{2|}}}|{{var| = }}{{value|{{{2}}}}}</includeonly><noinclude>
A template to simplify cross-referencing definition [[Template:Tag|tags]] (currently only within a page).
A template to simplify cross-referencing definition [[Template:Tag|tags]] (currently only within a page).



Revision as of 20:48, 16 June 2016

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

Usage:

{{taglink|foo}}

Result:

foo{{#if: |{{{1}}}{{{2}}}

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

{{taglink|foo|bar}}

Result: foo{{#if: bar|{{{1}}}bar

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 Gamedev:WeaponDefs#Tag:burstRate for an example of the proper usage in this case.