Difference between revisions of "Template:Infobox Formats Row"
Line 8: | Line 8: | ||
* Whether the set is included in the second format (0 or 1) | * Whether the set is included in the second format (0 or 1) | ||
* Whether the set is included in the third format (0 or 1) | * Whether the set is included in the third format (0 or 1) | ||
+ | |||
+ | For parameters 2 to 4, the values are: | ||
+ | * 0: Not included in the format | ||
+ | * 1: Included in the format | ||
+ | * 2: Included in the format, but not a main-line card set | ||
==Example== | ==Example== | ||
Line 18: | Line 23: | ||
| label2 = BFZ | | label2 = BFZ | ||
| data2 = {{Infobox Formats Row|BFZ|1|0|0}} | | data2 = {{Infobox Formats Row|BFZ|1|0|0}} | ||
+ | | label3 = DvK | ||
+ | | data3 = {{Infobox Formats Row|DvK|1|0|2}} | ||
}} | }} | ||
</pre> | </pre> | ||
Line 27: | Line 34: | ||
| label2 = BFZ | | label2 = BFZ | ||
| data2 = {{Infobox Formats Row|BFZ|1|0|0}} | | data2 = {{Infobox Formats Row|BFZ|1|0|0}} | ||
+ | | label3 = DvK | ||
+ | | data3 = {{Infobox Formats Row|DvK|1|0|2}} | ||
}} | }} | ||
Line 32: | Line 41: | ||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
− | --><div style="float:left;width:7% "> </div><div style="float:left;width:10%">{{#ifeq:{{{2|}}}| | + | --><div style="float:left;width:7% "> </div><div style="float:left;width:10%">{{#ifeq:{{{2|}}}|0|  -|{{{{{1}}}}}}}</div><!-- |
− | --><div style="float:left;width:28%"> </div><div style="float:left;width:10%">{{#ifeq:{{{3|}}}| | + | --><div style="float:left;width:28%"> </div><div style="float:left;width:10%">{{#ifeq:{{{3|}}}|0|  -|{{{{{1}}}}}}}</div><!-- |
− | --><div style="float:left;width:28%"> </div><div style="float:left;width:10%">{{#ifeq:{{{4|}}}| | + | --><div style="float:left;width:28%"> </div><div style="float:left;width:10%">{{#ifeq:{{{4|}}}|0|  -|{{Nowrap|{{{{{1}}}}}{{#ifeq:{{{4|}}}|2|<sup>'''*'''</sup>}}}}}}</div><!-- |
--></includeonly> | --></includeonly> |
Revision as of 01:40, 19 April 2020
Template usage
Generates a row of card format info for use in Template:Infobox Formats.
There are four parameters:
- The abbreviation of the card set (e.g. "ORI")
- Whether the set is included in the first format (0 or 1)
- Whether the set is included in the second format (0 or 1)
- Whether the set is included in the third format (0 or 1)
For parameters 2 to 4, the values are:
- 0: Not included in the format
- 1: Included in the format
- 2: Included in the format, but not a main-line card set
Example
The following shorthand:
{{Infobox | label1 = ORI | data1 = {{Infobox Formats Row|ORI|1|1|1}} | label2 = BFZ | data2 = {{Infobox Formats Row|BFZ|1|0|0}} | label3 = DvK | data3 = {{Infobox Formats Row|DvK|1|0|2}} }}
Produces:
ORI |
|
---|---|
BFZ |
- - |
DvK |
- |