Template:Xtaglink: Difference between revisions
From Spring
Jump to navigationJump to search
use #if here too |
m little fix |
||
| Line 6: | Line 6: | ||
color: #ff6600; | color: #ff6600; | ||
} | } | ||
}}<includeonly>[[{{{1}}}#Tag:{{{2}}}|<code>{{{2}}}</code>]]{{#if: {{{3|}}}|<span class="mono"> = <span class="value">{{{ | }}<includeonly>[[{{{1}}}#Tag:{{{2}}}|<code>{{{2}}}</code>]]{{#if: {{{3|}}}|<span class="mono"> = <span class="value">{{{3}}}</span></span>|}}</includeonly><noinclude> | ||
A template to simplify cross-referencing definition [[Template:Tag|tags]] between different pages. Use [[Template:Taglink]] for links to tags within the same page. | A template to simplify cross-referencing definition [[Template:Tag|tags]] between different pages. Use [[Template:Taglink]] for links to tags within the same page. | ||
Revision as of 12:32, 12 June 2016
A template to simplify cross-referencing definition tags between different pages. Use Template:Taglink for links to tags within the same page.
Usage:
{{xtaglink|Gamedev:UnitDefs|builder}}
Result:
Usage (Optional 3rd param to link to a tag with a given value):
{{xtaglink|Gamedev: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 Gamedev:WeaponDefs#Tag:burstRate for an example of the proper usage in this case.