(this should be interesting...) |
(drastically modify the rarity code to allow 1 or 2 set numbers without named parameters, and to add a 3rd rarity (there's gotta be a way to make that more efficient and compact...)) |
||
Line 6: | Line 6: | ||
| extra2 = {{{extra2|}}} |
| extra2 = {{{extra2|}}} |
||
| setnum = {{ |
| setnum = {{ |
||
− | #if: {{ |
+ | #if: {{r|{{{2}}}}} |
− | | {{{2}}} |
+ | | | {{{2|}}} |
⚫ | |||
}} |
}} |
||
| setnum2 = {{ |
| setnum2 = {{ |
||
− | + | #if: {{r|{{{3}}}}} |
|
− | | | {{ |
+ | | | {{ |
+ | #ifeq: {{{2}}} | {{{3}}} |
||
⚫ | |||
+ | }} |
||
}} |
}} |
||
| rarity = {{ |
| rarity = {{ |
||
− | #if: {{r|{{{ |
+ | #if: {{r|{{{2}}}}} |
− | | [[{{r|{{{ |
+ | | [[{{r|{{{2}}}}}]] |
| {{ |
| {{ |
||
− | #if: {{r|{{{ |
+ | #if: {{r|{{{3}}}}} |
− | | [[{{r|{{{ |
+ | | [[{{r|{{{3}}}}}]] |
| {{ |
| {{ |
||
− | #if: {{r|{{{ |
+ | #if: {{r|{{{4}}}}} |
− | | [[{{r|{{{ |
+ | | [[{{r|{{{4}}}}}]] |
}} |
}} |
||
}} |
}} |
||
}} |
}} |
||
| rarity2 = {{ |
| rarity2 = {{ |
||
+ | #if: {{r|{{{2}}}}} |
||
− | #ifeq: {{ #if: {{r|{{{3}}}}} | {{r|{{{3}}}}} | {{ #if: {{r|{{{r}}}}} | {{r|{{{r}}}}} | {{r|{{{2}}}}} }} }} | {{ #if: {{r|{{{4}}}}} | {{r|{{{4}}}}} | {{r|{{{r2}}}}} }} |
||
− | + | | {{ |
|
− | #if: {{r|{{{ |
+ | #if: {{r|{{{3}}}}} |
− | | |
+ | | {{ |
+ | #ifeq: {{r|{{{2}}}}} | {{r|{{{3}}}}} |
||
+ | | | [[{{r|{{{3}}}}}]] |
||
+ | }} |
||
+ | }} |
||
+ | | {{ |
||
+ | #if: {{r|{{{3}}}}} |
||
+ | | {{ |
||
+ | #if: {{r|{{{4}}}}} |
||
+ | | {{ |
||
+ | #ifeq: {{r|{{{3}}}}} | {{r|{{{4}}}}} |
||
+ | | | [[{{r|{{{4}}}}}]] |
||
+ | }} |
||
+ | }} |
||
+ | | {{ |
||
+ | #if: {{r|{{{4}}}}} |
||
+ | | {{ |
||
+ | #if: {{r|{{{5}}}}} |
||
+ | | {{ |
||
+ | #ifeq: {{r|{{{4}}}}} | {{r|{{{5}}}}} |
||
+ | | | [[{{r|{{{5}}}}}]] |
||
+ | }} |
||
+ | }} |
||
+ | }} |
||
+ | }} |
||
+ | }} |
||
+ | | rarity3 = {{ |
||
+ | #if: {{r|{{{2}}}}} |
||
+ | | {{ |
||
+ | #if: {{r|{{{3}}}}} |
||
+ | | {{ |
||
+ | #if: {{r|{{{4}}}}} |
||
+ | | {{ |
||
+ | #switch: {{r|{{{4}}}}} |
||
+ | | {{r|{{{2}}}}} | {{r|{{{3}}}}} = | #default = [[{{r|{{{4}}}}}]] |
||
+ | }} |
||
+ | }} |
||
+ | }} |
||
+ | | {{ |
||
+ | #if: {{r|{{{3}}}}} |
||
+ | | {{ |
||
+ | #if: {{r|{{{4}}}}} |
||
+ | | {{ |
||
+ | #if: {{r|{{{5}}}}} |
||
+ | | {{ |
||
+ | #switch: {{r|{{{5}}}}} |
||
+ | | {{r|{{{3}}}}} | {{r|{{{4}}}}} = | #default = [[{{r|{{{5}}}}}]] |
||
+ | }} |
||
+ | }} |
||
+ | }} |
||
| {{ |
| {{ |
||
− | #if: {{r|{{{ |
+ | #if: {{r|{{{4}}}}} |
− | | |
+ | | {{ |
+ | #if: {{r|{{{5}}}}} |
||
+ | | {{ |
||
+ | #if: {{r|{{{6}}}}} |
||
+ | | {{ |
||
+ | #switch: {{r|{{{6}}}}} |
||
+ | | {{r|{{{4}}}}} | {{r|{{{5}}}}} = | #default = [[{{r|{{{6}}}}}]] |
||
+ | }} |
||
+ | }} |
||
+ | }} |
||
}} |
}} |
||
}} |
}} |
Revision as of 03:49, 7 August 2010
Template loop detected: Template:Card table set/core
[edit] [ ]
Template documentation
Contents
Basic
{{Card table set/header|}} {{Card table set|||}} {{Card table set/footer}}
Usage
{{Card table set}} is used to add card set, set number, and rarity information to card pages. Basic usage is {{Card table set|Set number|Set name|Rarity}}
Set number may be omitted if the print in question doesn't have a set number: {{Card table set||Set name|Rarity}}
.
The language is detected based on the language passed to {{Card table set/header}}.
Examples
{{Card table set/header|jp}} {{Card table set||Gold Series 2014}} {{Card table set|SHSP-JP0??|Shadow Specters|Common}} {{Card table set|GENF-JP001|Galactic Overlord|Super Rare}} {{Card table set|303-054|Champion of Black Magic|Ultimate Rare}} {{Card table set|LB-01|Legend of Blue Eyes White Dragon (Japanese)|Ultra Rare}} {{Card table set||Premium Pack 2 (Japanese)|Super Rare}} {{Card table set|N/A|Vol.3|Rare}} {{Card table set||Vol.1}} {{Card table set/footer}}Template loop detected: Template:Card table set/coreTemplate loop detected: Template:Card table set/coreTemplate loop detected: Template:Card table set/coreTemplate loop detected: Template:Card table set/coreTemplate loop detected: Template:Card table set/coreTemplate loop detected: Template:Card table set/coreTemplate loop detected: Template:Card table set/coreTemplate loop detected: Template:Card table set/core
Release | Number | Set | Japanese name | Rarity |
---|
See also
- {{Card/Classic}}
The above documentation is transcluded from Template:Card table set/doc. (edit | history) Editors can experiment in this template's sandbox (edit) and testcases (edit) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |
*Disclosure: Some of the links above are affiliate links, meaning, at no additional cost to you, Fandom will earn a commission if you click through and make a purchase. Community content is available under CC-BY-SA unless otherwise noted.