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
Rabbid4240 (talk | contribs) (added mm11 colors) |
Unknowni123 (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 176: | Line 176: | ||
| #default = {{#vardefine:bg|EEEEEE}} {{#vardefine:text|333333}} | | #default = {{#vardefine:bg|EEEEEE}} {{#vardefine:text|333333}} | ||
}} | }} | ||
|{{#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}}"|{{{3|}}} [[{{{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 15:02, 8 April 2024
| 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 |