Template:Card infobox: Difference between revisions
Jump to navigation
Jump to search
add card infobox so that cards can have their image shown |
mention Customizable by default |
||
| (4 intermediate revisions by the same user not shown) | |||
| 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> | ||
<code>extra</code> is an optional field that allows more settings to be displayed. Use <code><nowiki>{{Card infobox/row|Setting}}</nowiki></code> to add rows that look exactly like the rest. This automatically says that the setting is <code>Customizable</code>. It is possible to change that by using <code><nowiki>{{Card infobox/row|Setting|Value}}</nowiki></code> instead. | |||
</noinclude> | </noinclude> | ||
Latest revision as of 23:19, 21 January 2025
Template:Card infobox
| Pieces | Customizable |
| Weight | Customizable |
| Minimum pieces awarded per turn | Customizable |
| Pieces given to each player at the start | Customizable |
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=
}}
extra is an optional field that allows more settings to be displayed. Use {{Card infobox/row|Setting}} to add rows that look exactly like the rest. This automatically says that the setting is Customizable. It is possible to change that by using {{Card infobox/row|Setting|Value}} instead.