Difference between revisions of "Template:Bandai card"
m (pipe) |
Dinoguy1000 (talk | contribs) (readd Property:Sets for now) |
||
(28 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <!-- | |
− | |||
## Variables ## | ## Variables ## | ||
-->{{ #vardefine: $name | {{ #if: {{{name|}}} | {{{name}}} | {{ #titleparts: {{ #explode: {{PAGENAME}} | ( }} }} }} }}<!-- | -->{{ #vardefine: $name | {{ #if: {{{name|}}} | {{{name}}} | {{ #titleparts: {{ #explode: {{PAGENAME}} | ( }} }} }} }}<!-- | ||
-->{{ #vardefine: $url-name | {{ #replace: {{ #var: $name }} | # }} }}<!-- | -->{{ #vardefine: $url-name | {{ #replace: {{ #var: $name }} | # }} }}<!-- | ||
− | -->{{ #vardefine: $number | {{ #explode: {{{number}}} | , }} }}<!-- | + | -->{{ #vardefine: $number | {{ #explode: {{{number|}}} | , }} }}<!-- |
-->{{ #vardefine: $number2 | {{ #explode: {{{number}}} | , | -1 }} }}<!-- | -->{{ #vardefine: $number2 | {{ #explode: {{{number}}} | , | -1 }} }}<!-- | ||
− | -->{{ #vardefine: $image | {{ #if: {{{image|}}} | {{{image}}} | | + | -->{{ #vardefine: $image | {{ #if: {{{image|}}} | {{{image}}} | Back-BAN-ANAS-1999.png }} }}<!-- |
-->{{ #if: {{ #pos: {{PAGENAME}} | Bandai }}{{{main<includeonly>|</includeonly>}}} | -->{{ #if: {{ #pos: {{PAGENAME}} | Bandai }}{{{main<includeonly>|</includeonly>}}} | ||
Line 36: | Line 35: | ||
## Properties ## | ## Properties ## | ||
-->[[English name::{{ #var: $name }}| ]]<!-- | -->[[English name::{{ #var: $name }}| ]]<!-- | ||
+ | -->{{ #set: English name (linked) = [[{{PAGENAME}}|{{ #var: $name }}]] }}<!-- | ||
-->[[Card type::{{ #var: $card-type | Monster }} Card| ]]<!-- | -->[[Card type::{{ #var: $card-type | Monster }} Card| ]]<!-- | ||
-->[[Level::{{{level|}}}| ]]<!-- | -->[[Level::{{{level|}}}| ]]<!-- | ||
-->[[Ability::{{{ability|}}}| ]]<!-- | -->[[Ability::{{{ability|}}}| ]]<!-- | ||
− | --> | + | -->{{ #set: Ability description = {{{ability_desc|}}} }}<!-- |
-->[[Japanese ability::{{{ja_ability|}}}| ]]<!-- | -->[[Japanese ability::{{{ja_ability|}}}| ]]<!-- | ||
-->[[Japanese ability description::{{{ja_ability_desc|}}}| ]]<!-- | -->[[Japanese ability description::{{{ja_ability_desc|}}}| ]]<!-- | ||
-->{{ #if: {{{atk|}}}{{{def|}}} | {{ATK DEF properties|{{{atk|}}}|{{{def|}}}}} }}<!-- | -->{{ #if: {{{atk|}}}{{{def|}}} | {{ATK DEF properties|{{{atk|}}}|{{{def|}}}}} }}<!-- | ||
− | + | -->{{ #iferror: {{ #expr: {{{rule}}} }} || [[Bandai rule::{{{rule}}}| ]] }}<!-- | |
− | |||
− | -->{{ # | ||
-->{{ #if: {{ #var: $main }} | -->{{ #if: {{ #var: $main }} | ||
− | | {{Main|type=card page|"[[Main card page::{{ #var: $main }}]] | + | | {{Main|type=card page|""{{ #var: $main }}""|t=1}}[[Main card page::{{ #var: $main }}| ]] |
}}<!-- | }}<!-- | ||
− | -->{{ | + | -->{{Card table |
− | + | | main = {{ #var: $main }} | |
− | + | | bodyclass = bandai-card | |
− | + | | title = {{ #var: $name }} | |
− | + | | image = {{ #var: $image }} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | | above = {{ #var: $above }} | |
− | + | | label1 = [[Card type]] | |
− | + | | data1 = {{ #if: {{ #var: $card-type }} | |
− | + | | [[{{ #var: $card-type }} Card|{{ #var: $card-type }}]] | |
− | + | }} | |
− | + | | label2 = [[Type]] | |
− | + | | data2 = {{ #arraymap: {{{type<includeonly>|</includeonly>}}} | |
− | + | | / | |
− | + | | $t | |
− | + | | [[Type::$t|$t]] | |
− | + | |  /  | |
− | + | }} | |
− | + | | label3 = [[Level]] | |
− | + | | data3 = {{ #if: {{{level<includeonly>|</includeonly>}}} | |
− | + | | {{{level}}} {{repeat|[[File:BandaiLevelStar.svg|18px|alt=|class=noviewer]]|{{{level}}}}} | |
− | + | }} | |
− | + | | label4 = [[ATK]]/[[DEF]] | |
− | + | | data4 = {{ #if: {{{atk<includeonly>|</includeonly>}}}{{{def|}}} | |
− | + | | {{{atk<includeonly>|</includeonly>}}} / {{{def<includeonly>|</includeonly>}}} | |
− | + | }} | |
− | + | | label5 = Lore | |
− | + | | data5 = {{ #if: {{{lore<includeonly>|</includeonly>}}} | |
− | + | | <div class="lore">{{{lore}}}</div> | |
− | + | }}{{ #if: {{{ja_lore<includeonly>|</includeonly>}}} | |
+ | | <div class="lore" lang="ja">{{{ja_lore}}}</div> | ||
+ | }} | ||
− | + | | label6 = Ability | |
− | + | | data6 = {{ #if: {{{ability<includeonly>|</includeonly>}}} | |
− | + | | | |
− | <div class="lore" lang=" | + | <div class="lore"> |
− | ;{{{ | + | ;{{{ability}}} |
− | :{{{ | + | :{{{ability_desc<includeonly>|</includeonly>}}} |
+ | </div> | ||
+ | }}{{ #if: {{{ja_ability<includeonly>|</includeonly>}}} | ||
+ | | | ||
+ | <div class="lore" lang="ja"> | ||
+ | ;{{{ja_ability}}} | ||
+ | :{{{ja_ability_desc<includeonly>|</includeonly>}}} | ||
</div> | </div> | ||
− | + | }} | |
− | + | | label7 = [[Yu-Gi-Oh! Bandai's Official Card Game#Rules|Rule]] | |
− | + | | data7 = {{ #if: {{{rule<includeonly>|</includeonly>}}} | |
− | + | | <div class="lore">{{BandaiRule|{{{rule}}}}}</div> | |
− | + | }}{{ #if: {{{ja_rule<includeonly>|</includeonly>}}} | |
+ | | <div class="lore">{{BandaiRule|{{{ja_rule}}}|lang=ja|ln=ja}}</div> | ||
+ | }} | ||
− | + | | below = {{ #iferror: {{ #expr: {{ #var: $number }} }} | |
− | + | | #{{ padleft: {{ #var: $number }} | 3 | 0 }}: "{{ #var: $name }}" | |
+ | | {{Enumeration|Bandai number|{{ #var: $number }}|{{ #var: $number2 }}|name={{ #var: $name }}|last=118|curr=[[List of Bandai cards|Bandai cards]]}} | ||
}} | }} | ||
}} | }} | ||
<!-- | <!-- | ||
− | |||
− | + | -->{{Card info links|{{ #var: $main | {{PAGENAME}} }}|medium=bandai}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | <h2>Sets</h2> | |
{{ #if: {{{number<includeonly>|</includeonly>}}} | {{ #if: {{{number<includeonly>|</includeonly>}}} | ||
| | | | ||
Line 136: | Line 129: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | {{ # | + | {{ #iferror: {{ #expr: {{ #var: $number }} }}<!-- variable instead of parameter so we don't have to do something dumber to handle the four-card 3-Body Connection --> |
− | + | | {{ #if: {{ #pos: {{{number}}} | J }} | |
− | + | | | |
− | + | <td title="1998">1998[[Debut date::1998| ]]</td> | |
− | |||
− | |||
− | |||
− | |||
− | <td title=" | ||
<td>[[{{{number}}}]]</td> | <td>[[{{{number}}}]]</td> | ||
− | <td> | + | <td>[[Yu-Gi-Oh! Bandai OCG: Promotional Cards#First Set|Promotional cards: Series 1]][[Sets::Yu-Gi-Oh! Bandai OCG: Promotional Cards| ]]</td> |
− | + | | <!-- TA promos --> | |
− | + | <td title="March 6, 1999">1999-03-06[[Debut date::1999-03-06| ]]</td> | |
− | <td title=" | ||
<td>[[{{{number}}}]]</td> | <td>[[{{{number}}}]]</td> | ||
− | <td> | + | <td>[[Yu-Gi-Oh! Bandai OCG: Promotional Cards#Second Set|Promotional cards: Series 2]][[Sets::Yu-Gi-Oh! Bandai OCG: Promotional Cards| ]]</td> |
− | + | }} | |
− | + | | {{ #ifexpr: {{ #var: $number }} < 41 | |
− | + | | | |
− | + | <td title="August 1998">1998-08[[Debut date::1998-08| ]]</td> | |
− | <td title=" | ||
<td>{{{number}}}</td> | <td>{{{number}}}</td> | ||
− | <td>''[[Sets::Yu-Gi-Oh! Bandai OCG: 1st Generation]] | + | <td>''[[Yu-Gi-Oh! Bandai OCG: 1st Generation|1st Generation]]''[[Sets::Yu-Gi-Oh! Bandai OCG: 1st Generation| ]]</td> |
− | + | | {{ #ifexpr: {{ #var: $number }} < 89 | |
− | + | | | |
− | <td title=" | + | <td title="November 1998">1998-11[[Debut date::1998-11| ]]</td> |
<td>{{{number}}}</td> | <td>{{{number}}}</td> | ||
− | <td>''[[Sets::Yu-Gi-Oh! Bandai OCG: 2nd Generation]] | + | <td>''[[Yu-Gi-Oh! Bandai OCG: 2nd Generation|2nd Generation]]''[[Sets::Yu-Gi-Oh! Bandai OCG: 2nd Generation| ]]</td> |
− | + | | {{ #ifexpr: {{ #var: $number }} < 119 | |
− | + | | | |
− | <td title=" | + | <td title="March 6, 1999">1999-03-06[[Debut date::1999-03-06| ]]</td> |
− | <td>{{{number}}}</td> | + | <td class="nowrap">{{{number}}}</td> |
− | <td>''[[Sets::Yu-Gi-Oh! Bandai OCG: 3rd Generation]] | + | <td>''[[Yu-Gi-Oh! Bandai OCG: 3rd Generation|3rd Generation]]''[[Sets::Yu-Gi-Oh! Bandai OCG: 3rd Generation| ]]</td> |
− | + | | [[Category:Bandai cards with unknown card number]] | |
}} | }} | ||
}} | }} | ||
}} | }} | ||
− | }} | + | }}{{ #arraymap: {{{number}}} | , | $number | {{ #iferror: {{ #expr: $number }} || [[Bandai number::$number| ]] }}[[Bandai number (string)::$number| ]] | }} |
<td>{{ #if: {{{rarity<includeonly>|</includeonly>}}} | [[Rarity::{{{rarity}}}]] | [[Rarity::Common]] }}</td> | <td>{{ #if: {{{rarity<includeonly>|</includeonly>}}} | [[Rarity::{{{rarity}}}]] | [[Rarity::Common]] }}</td> | ||
</tr> | </tr> | ||
Line 179: | Line 165: | ||
}}<!-- | }}<!-- | ||
− | -->{{ | + | -->{{In other media}}<!-- |
− | + | ||
− | + | -->{{Card navigation|{{ #var: $main | {{Normalized pagename|{{PAGENAME}}}} }}}}<!-- | |
− | |||
− | |||
− | |||
− | |||
− | }}<!-- | ||
-->{{ #if: {{NAMESPACE}} | -->{{ #if: {{NAMESPACE}} | ||
Line 200: | Line 181: | ||
| [[Category:Bandai cards missing Japanese text]] | | [[Category:Bandai cards missing Japanese text]] | ||
}} | }} | ||
− | }}{{ #iferror: {{ #expr: {{{rule | + | }}{{ #iferror: {{ #expr: {{{rule}}} }} |
| {{ #if: {{{ja_rule|}}} | | {{ #if: {{{ja_rule|}}} | ||
| | | | ||
Line 206: | Line 187: | ||
}} | }} | ||
| | | | ||
+ | }}{{ #if: {{ #var: $main }} | ||
+ | | {{ #if: {{ #ask: <q>[[Category:OCG cards]] OR [[Category:TCG cards]]</q>[[{{ #var: $main }}]] }} | | [[Category:Bandai cards with no OCG/TCG counterpart]] }} | ||
+ | | [[Category:Bandai cards with no OCG/TCG counterpart]] | ||
}} | }} | ||
}}<noinclude> | }}<noinclude> | ||
{{documentation}}</noinclude> | {{documentation}}</noinclude> |
Latest revision as of 22:51, 18 March 2024
Bandai card
- Japanese
- {{{ja_name}}}
- Rōmaji
- {{{romaji_name}}}
- Translated
- {{{trans_name}}}
Card type | [[{{{card_type}}} Card|{{{card_type}}}]] |
---|---|
Type | {{{type}}} |
Level | {{{level}}}String Module Error: function rep expects a number as second parameter, received "{{{level}}}" |
ATK/DEF | {{{atk}}} / {{{def}}} |
Lore |
{{{lore}}} {{{ja_lore}}} |
Ability |
|
Rule |
|
- [[Card Gallery:{{{main}}}|Gallery]]
- [[Card Artworks:{{{main}}}|Artworks]]
- [[Card Trivia:{{{main}}}|Trivia]]
- [[Card Appearances:{{{main}}}|Appearances]]
- [[Card Names:{{{main}}}|Names]]
- [[Card Lores:{{{main}}}|Lores]]
Sets
Expression error: Unexpected < operator.Release | Number | Set | Rarity |
---|---|---|---|
{{{rarity}}} |
In other media
Usage[edit]
{{Bandai card | main = | name = | ja_name = | romaji_name = | trans_name = | image = | card_type = | type = | level = | atk = | def = | lore = | ja_lore = | ability = | ja_ability = | ability_desc = | ja_ability_desc = | rule = | number = | rarity = }}
- main: The main card page. If this is unused, it will default to the pagename, excluding bracketed text, except for character cards, which will always treat this as being blank.
- name: The name of the card, if different than the page name, excluding bracketed text.
- ja_name: The Japanese name of the card. If this is unused, it will default to the Japanese name used on the main card page.
- romaji_name: The Japanese name of the card, in romaji. If this is unused, it will default to the romaji name used on the main card page.
- trans_name: The Japanese name of the card, translated into English. If this is unused, it will default to the translated Japanese name used on the main card page.
- image: The name of the image of the card, excluding the "File:" prefix. If unused, this will default to the backing image.
- card_type: Set equal to "Spell" or "Equip", if the card is a Spell Card or an Equip Card. Do not set equal to "Monster" or "Character" for Monster Cards or Character Cards.
- type: The Type, if the card is a monster.
- level: The Level, if the card is a monster.
- atk: The ATK, if the card is a monster.
- def: The DEF, if the card is a monster.
- lore: The card's lore, printed above the card's illustration.
- ja_lore: The card's Japanese lore.
- ability: The name of the ability, if the card is a Character Card.
- ja_ability: The Japanese name of the ability.
- ability_desc: The description of the ability.
- ja_ability_desc: The Japanese description of the ability.
- rule: The number of the rule. If it is a Special rule, enter the rule description.
- ja_rule: If the rule is a Special rule, enter the Japanese description of the rule.
- number: The card's set number.
- rarity: The card's rarity.