Template:Card infobox: Difference between revisions

From Warzone Wiki
Jump to navigation Jump to search
DanWL60 (talk | contribs)
add card infobox so that cards can have their image shown
 
DanWL60 (talk | contribs)
add optional extra field
Line 1: Line 1:
<div class="infobox"><div style="text-align:center;"><div><strong>{{{name|{{FULLPAGENAME}}}}}</strong></div><div>{{{img|}}}</div></div>{{Card infobox/row|Pieces|{{{NumPieces|Customizable}}}}}{{Card infobox/row|[[Card weights|Weight]]|{{{Weight|Customizable}}}}}{{Card infobox/row|[[Cards#Receiving Cards|Minimum pieces awarded per turn]]|{{{MinimumPiecesPerTurn|Customizable}}}}}{{Card infobox/row|Pieces given to each player at the start|{{{InitialPieces|Customizable}}}}}</div><noinclude>
<div class="infobox"><div style="text-align:center;"><div><strong>{{{name|{{FULLPAGENAME}}}}}</strong></div><div>{{{img|}}}</div></div>{{Card infobox/row|Pieces|{{{NumPieces|Customizable}}}}}{{Card infobox/row|[[Card weights|Weight]]|{{{Weight|Customizable}}}}}{{Card infobox/row|[[Cards#Receiving Cards|Minimum pieces awarded per turn]]|{{{MinimumPiecesPerTurn|Customizable}}}}}{{Card infobox/row|Pieces given to each player at the start|{{{InitialPieces|Customizable}}}}}{{{extra|}}}</div><noinclude>
== Usage ==
== Usage ==
<pre>
<pre>
Line 10: Line 10:
|MinimumPiecesPerTurn=(defaults to Customizable)
|MinimumPiecesPerTurn=(defaults to Customizable)
|InitialPieces=(defaults to Customizable)
|InitialPieces=(defaults to Customizable)
|extra=
}}
}}
</nowiki>
</nowiki>
</pre>
</pre>
</noinclude>
</noinclude>

Revision as of 22:31, 21 January 2025

Template:Card infobox
PiecesCustomizable
WeightCustomizable
Minimum pieces awarded per turnCustomizable
Pieces given to each player at the startCustomizable

Usage


{{Card infobox
|name=(defaults to page name)
|img=(url of the image, must be a plain image link)
|NumPieces=(defaults to Customizable)
|Weight=(defaults to Customizable)
|MinimumPiecesPerTurn=(defaults to Customizable)
|InitialPieces=(defaults to Customizable)
|extra=
}}