Template:Taglink: Difference between revisions

From Spring
Jump to navigationJump to search
Flozi (talk | contribs)
m try it with value colouring
Flozi (talk | contribs)
m buh?
Line 5: Line 5:
   span.hide:only-of-type {
   span.hide:only-of-type {
       display: inline;
       display: inline;
      font-family: monospace;
   }
   }
   span.value {
   span.value {
       color: #ff6600
       color: #ff6600
      font-family: monospace;
   }
   }
}}<includeonly>[[#Tag:{{{1}}}|<code>{{{1}}}</code>]]<span class="hide"> = </span><span class="value">{{{2|<span></span>}}}</span></includeonly><noinclude>
}}<includeonly>[[#Tag:{{{1}}}|<code>{{{1}}}</code>]]<span class="hide"> = </span><span class="value">{{{2|<span></span>}}}</span></includeonly><noinclude>

Revision as of 01:44, 12 June 2016

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):

{{taglink|foo|bar}}

Result: foo = 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.