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/doc"

From Mega Man Wiki
(Created page with "==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. Has...")
 
 
Line 1: Line 1:
==Documentation==
==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.
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 one parameter, which is the name of the weapon.
Has two parameters: the name of the weapon, followed by an optional rowspan value.


<pre>{| class="wikitable"
<pre>{| class="wikitable"
Line 14: Line 14:
|}
|}


'''With rowspan:'''
<pre>{| class="wikitable"
{{Weapon cell|Leaf Shield|2}}
|Row 1
|-
|Row 2
|}</pre>
Results in
{| class="wikitable"
{{Weapon cell|Leaf Shield|2}}
|Row 1
|-
|Row 2
|}
<noinclude>
<noinclude>
[[Category:Documentation]]
[[Category:Documentation]]
</noinclude>
</noinclude>

Latest revision as of 00:52, 25 May 2021

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