Site notice |
---|
Welcome! Please check To-Do List to see what pages need help, who is working on what, etc.
|
Difference between revisions of "Template:Weapon cell"
From Mega Man Wiki
Vellidragon (talk | contribs) (More weapons and an optional rowspan parameter.) |
Vellidragon (talk | contribs) (This should probably have a default value so it doesn't just retain the previous instance's colours.) |
||
Line 110: | Line 110: | ||
| Tornado Fang = {{#vardefine:bg|008473}} {{#vardefine:text|FFCE52}} | | Tornado Fang = {{#vardefine:bg|008473}} {{#vardefine:text|FFCE52}} | ||
| Ray Splasher = {{#vardefine:bg|C66B21}} {{#vardefine:text|FFFF00}} | | Ray Splasher = {{#vardefine:bg|C66B21}} {{#vardefine:text|FFFF00}} | ||
| N/A | |||
| #default = {{#vardefine:bg|EEEEEE}} {{#vardefine:text|000000}} | |||
}} | }} | ||
|{{#if:{{{2|}}}|rowspan="{{{2|}}}"}} style="background-color:#{{#var:bg}}"|[[{{{1|{{FULLPAGENAME}}}}}|<span style="color:#{{#var:text}}">'''{{{1|N/A}}}'''</span>]]<noinclude>{{doc}}[[Category:Classic era templates]][[Category:X era templates]][[Category:Cell templates]]</noinclude> | |{{#if:{{{2|}}}|rowspan="{{{2|}}}"}} style="background-color:#{{#var:bg}}"|[[{{{1|{{FULLPAGENAME}}}}}|<span style="color:#{{#var:text}}">'''{{{1|N/A}}}'''</span>]]<noinclude>{{doc}}[[Category:Classic era templates]][[Category:X era templates]][[Category:Cell templates]]</noinclude> |
Revision as of 02:01, 11 June 2021
| style="background-color:#EEEEEE"|N/A
Documentation
Creates a pre-formatted table cell that contains a bold link to a weapon article and uses that weapon's colours for the cell background and text colour. Note that the first | is included.
Has two parameters: the name of the weapon, followed by an optional rowspan value.
{| class="wikitable" {{Weapon cell|Leaf Shield}} |}
Results in
Leaf Shield |
With rowspan:
{| class="wikitable" {{Weapon cell|Leaf Shield|2}} |Row 1 |- |Row 2 |}
Results in
Leaf Shield | Row 1 |
Row 2 |