Template:Hammer: Difference between revisions

From DDraceNetwork
Add optional parameters to overwrite displayed text/language link
No edit summary
Line 5: Line 5:
* <code><nowiki>{{hammer}}</nowiki></code> -> {{hammer}}
* <code><nowiki>{{hammer}}</nowiki></code> -> {{hammer}}
* <code><nowiki>{{hammer|hammer}}</nowiki></code> -> {{hammer|hammer}}
* <code><nowiki>{{hammer|hammer}}</nowiki></code> -> {{hammer|hammer}}
* For translation: <code><nowiki>{{hammer|Translation|de}}</nowiki></code> -> {{hammer|Translation|de}}
* For translation with link to translated article: <code><nowiki>{{hammer|Translation|de}}</nowiki></code> -> {{hammer|Translation|de}}


</noinclude><includeonly>{{TileLink|{{Tile|game|202}}|{{#if:{{{2|}}}|Hammer/{{{2}}}|Hammer}}|{{#if:{{{1|}}}|{{{1}}}|Hammer}}}}<includeonly>
</noinclude><includeonly>{{TileLink|{{Tile|game|202}}|{{#if:{{{2|}}}|Hammer/{{{2}}}|Hammer}}|{{#if:{{{1|}}}|{{{1}}}|Hammer}}}}<includeonly>

Revision as of 21:47, 5 March 2022

Shortcut to link to the hammer article with the Template:TileLink:

  • {{hammer}}/{{Hammer}} -> Hammer
  • {{hammer}} -> Hammer
  • {{hammer|hammer}} -> hammer
  • For translation with link to translated article: {{hammer|Translation|de}} -> Translation