Difference between revisions of "Template:Infobox video game"
Dinoguy1000 (talk | contribs) (prevent this from appearing in the maintenance category) |
(Here we go) |
||
Line 1: | Line 1: | ||
− | {{Italic title|t=1}}{{Infobox}} | + | {{Italic title|t=1}}<!-- |
+ | |||
+ | -->{{ #vardefine: $name | ||
+ | | {{ #if: {{{en_name<includeonly>|</includeonly>}}} | ||
+ | | {{{en_name}}} | ||
+ | | {{ #if: {{{ja_trans_name|}}} | ||
+ | | {{{ja_trans_name}}} | ||
+ | | {{ #explode: {{PAGENAME}} | ( }} | ||
+ | }} | ||
+ | }} | ||
+ | }}<!-- | ||
+ | |||
+ | -->{{ #ifexist: <includeonly>{{ #explode: {{PAGENAME}} | ( }} promotional cards</includeonly><noinclude>{{FULLPAGENAME}}</noinclude> | ||
+ | | {{ #vardefine: $promotional_cards | {{ #explode: {{PAGENAME}} | ( }} promotional cards }} | ||
+ | }}<!-- | ||
+ | |||
+ | // Translated Japanese name, only when different than the English name | ||
+ | -->{{ #ifeq: {{{ja_trans_name}}} | {{ #var: $name }} | ||
+ | | | ||
+ | | <!-- | ||
+ | -->{{ #vardefine: $ja_trans_name | {{{ja_trans_name|}}} }}<!-- | ||
+ | -->{{ #ifexist: {{ #var: $ja_trans_name }} promotional cards | ||
+ | | {{ #vardefine: $ocg_promotional_cards | {{ #var: $ja_trans_name }} promotional cards }} | ||
+ | }} | ||
+ | }}<!-- | ||
+ | |||
+ | -->{{Infobox | ||
+ | | titlestyle = background-color: #BBF; padding: 0.2em; border: solid #AAA; border-width: 1px 1px 0; | ||
+ | | headerstyle = background-color: #CCF; | ||
+ | | labelstyle = background-color: #DDF; width: 10em; | ||
+ | |||
+ | | title = ''{{ #var: $name }}'' | ||
+ | |||
+ | | image = {{ #if: {{{image<includeonly>|</includeonly>}}} | ||
+ | | {{ #if: {{ #pos: {{{image}}} | [ }} | ||
+ | | {{{image}}} | ||
+ | | [[File:{{PAGENAME:{{{image}}}}}<!-- | ||
+ | -->|{{Appropriate image width|image={{{image}}}|width={{{size}}}}}px<!-- | ||
+ | -->|{{ #if: {{{caption|}}} | {{{caption}}} | Box art }}<!-- | ||
+ | -->]] | ||
+ | }} | ||
+ | }} | ||
+ | | caption = {{{caption|}}} | ||
+ | |||
+ | | data1 = {{Infobox | ||
+ | | child = yes | ||
+ | | headerstyle = background-color: #CCF; | ||
+ | | labelstyle = background-color: #DDF; width: 10em; | ||
+ | |||
+ | | header1 = Names | ||
+ | |||
+ | | label2 = English | ||
+ | | data2 = {{ #switch: {{ #var: $name }} | ||
+ | | {{{na_name}}} | {{{eu_name}}} = | ||
+ | | {{ #var: $name }} | ||
+ | }}<!-- Don't show the "English" name, if it is the same as the North American or European English name--> | ||
+ | |||
+ | | label3 = North American English | ||
+ | | data3 = {{{na_name<includeonly>|</includeonly>}}} | ||
+ | |||
+ | | label4 = European English | ||
+ | | data4 = {{{eu_name<includeonly>|</includeonly>}}} | ||
+ | |||
+ | | data5 = {{Infobox Japanese name | ||
+ | | short_header = true | ||
+ | | ja_name = {{{ja_name<includeonly>|</includeonly>}}} | ||
+ | | base_romaji_name = {{{base_romaji_name<includeonly>|</includeonly>}}} | ||
+ | | ja_base_trans_name = {{{ja_base_trans_name<includeonly>|</includeonly>}}} | ||
+ | | romaji_name = {{{romaji_name<includeonly>|</includeonly>}}} | ||
+ | | ja_trans_name = {{ #var: $ja_trans_name }} | ||
+ | }} | ||
+ | |||
+ | | data6 = {{ #if: {{{zh_name<includeonly>|</includeonly>}}}{{{zh_simplified_name|}}}{{{pinyin_name|}}}{{{zh_trans_name|}}} | ||
+ | | {{Infobox | ||
+ | | bodyclass = collapsible collapsed | ||
+ | | bodystyle = border: 0; font-size: 1em; margin: 0 -4px; padding: 0; width: calc(100% + 8px); | ||
+ | | headerstyle = background-color: #DDF; text-align: left; | ||
+ | | labelstyle = background-color: #EEF; width: 10em; | ||
+ | | datastyle = {{ #ifeq: {{NAMESPACE}} | Template | word-break: break-all; }} | ||
+ | |||
+ | | header1 = Chinese | ||
+ | |||
+ | | label2 = Traditional | ||
+ | | data2 = {{ #if: {{{zh_name<includeonly>|</includeonly>}}} | <span lang="zh-Hant">{{{zh_name}}}</span> }} | ||
+ | |||
+ | | label3 = Simplified | ||
+ | | data3 = {{ #if: {{{zh_simplified_name<includeonly>|</includeonly>}}} | <span lang="zh-Hans">{{{zh_simplified_name}}}</span> }} | ||
+ | |||
+ | | label4 = Pinyin | ||
+ | | data4 = {{ #if: {{{pinyin_name<includeonly>|</includeonly>}}} | <span lang="zh-Latn">''{{{pinyin_name}}}''</span> }} | ||
+ | |||
+ | | label5 = Translated | ||
+ | | data5 = {{{zh_trans_name<includeonly>|</includeonly>}}} | ||
+ | }} | ||
+ | }} | ||
+ | |||
+ | | data7 = {{ #if: {{{ko_name<includeonly>|</includeonly>}}}{{{hanja_name|}}}{{{ko_rr_name|}}}{{{ko_trans_name|}}} | ||
+ | | {{Infobox | ||
+ | | bodyclass = collapsible collapsed | ||
+ | | bodystyle = border: 0; font-size: 1em; margin: 0 -4px; padding: 0; width: calc(100% + 8px); | ||
+ | | headerstyle = background-color: #DDF; text-align: left; | ||
+ | | labelstyle = background-color: #EEF; width: 10em; | ||
+ | |||
+ | | header1 = Korean | ||
+ | |||
+ | | label2 = Hangul | ||
+ | | data2 = {{ #if: {{{ko_name<includeonly>|</includeonly>}}} | <span lang="ko-Hang">{{{ko_name}}}</span> }} | ||
+ | |||
+ | | label3 = Hanja | ||
+ | | data3 = {{ #if: {{{hanja_name<includeonly>|</includeonly>}}} | <span lang="ko-Hani">{{{hanja_name}}}</span> }} | ||
+ | |||
+ | | label4 = Romanized | ||
+ | | data4 = {{ #if: {{{ko_rr_name<includeonly>|</includeonly>}}} | <span lang="ko-Latn">''{{{ko_rr_name}}}''</span> }} | ||
+ | |||
+ | | label5 = Translated | ||
+ | | data5 = {{{ko_trans_name<includeonly>|</includeonly>}}} | ||
+ | }} | ||
+ | }} | ||
+ | |||
+ | | data8 = {{ #if: {{{fr_name<includeonly>|</includeonly>}}}{{{de_name|}}}{{{it_name|}}}{{{pt_name|}}}{{{es_name|}}}{{{ru_name|}}} | ||
+ | | {{Infobox | ||
+ | | bodyclass = collapsible collapsed | ||
+ | | bodystyle = border: 0; font-size: 1em; margin: 0 -4px; padding: 0; width: calc(100% + 8px); | ||
+ | | headerstyle = background-color: #DDF; text-align: left; | ||
+ | | labelstyle = background-color: #EEF; width: 10em; | ||
+ | |||
+ | | header1 = Other languages | ||
+ | |||
+ | | label2 = French | ||
+ | | data2 = {{ #if: {{{fr_name<includeonly>|</includeonly>}}} | <span lang="fr">{{{fr_name}}}</span> }} | ||
+ | |||
+ | | label3 = German | ||
+ | | data3 = {{ #if: {{{de_name<includeonly>|</includeonly>}}} | <span lang="de">{{{de_name}}}</span> }} | ||
+ | |||
+ | | label4 = Italian | ||
+ | | data4 = {{ #if: {{{it_name<includeonly>|</includeonly>}}} | <span lang="it">{{{it_name}}}</span> }} | ||
+ | |||
+ | | label5 = Portuguese | ||
+ | | data5 = {{ #if: {{{pt_name<includeonly>|</includeonly>}}} | <span lang="pt">{{{pt_name}}}</span> }} | ||
+ | |||
+ | | label6 = Spanish | ||
+ | | data6 = {{ #if: {{{es_name<includeonly>|</includeonly>}}} | <span lang="es">{{{es_name}}}</span> }} | ||
+ | |||
+ | | label7 = Russian | ||
+ | | data7 = {{ #if: {{{ru_name<includeonly>|</includeonly>}}} | <span lang="ru">{{{ru_name}}}</span> }} | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | |||
+ | | data2 = {{Infobox | ||
+ | | child = yes | ||
+ | | headerstyle = background-color: #CCF; | ||
+ | | labelstyle = background-color: #DDF; width: 10em; | ||
+ | |||
+ | | header1 = Development | ||
+ | |||
+ | | label2 = Platform | ||
+ | | data2 = {{{platform<includeonly>|</includeonly>}}} | ||
+ | |||
+ | | label3 = Languages | ||
+ | | data3 = {{{languages<includeonly>|</includeonly>}}} | ||
+ | |||
+ | | label4 = Developer | ||
+ | | data4 = {{{developer<includeonly>|</includeonly>}}} | ||
+ | |||
+ | | label5 = Publisher | ||
+ | | data5 = {{{publisher<includeonly>|</includeonly>}}} | ||
+ | |||
+ | | label6 = Designer | ||
+ | | data6 = {{{designer<includeonly>|</includeonly>}}} | ||
+ | }} | ||
+ | |||
+ | |||
+ | | data3 = {{ #if: {{{ja_release_date<includeonly>|</includeonly>}}}{{{en_release_date|}}}{{{na_release_date|}}}{{{eu_release_date|}}}{{{au_release_date|}}}{{{fr_release_date|}}}{{{de_release_date|}}}{{{it_release_date|}}}{{{es_release_date|}}} | ||
+ | | {{Infobox | ||
+ | | child = yes | ||
+ | | headerstyle = background-color: #CCF; | ||
+ | | labelstyle = background-color: #DDF; width: 10em; | ||
+ | |||
+ | | header1 = Release dates | ||
+ | |||
+ | | label2 = Japanese | ||
+ | | data2 = {{{ja_release_date<includeonly>|</includeonly>}}} | ||
+ | |||
+ | | label3 = English | ||
+ | | data3 = {{{en_release_date<includeonly>|</includeonly>}}} | ||
+ | |||
+ | | label4 = North America | ||
+ | | data4 = {{{na_release_date<includeonly>|</includeonly>}}} | ||
+ | |||
+ | | label5 = Europe | ||
+ | | data5 = {{{eu_release_date<includeonly>|</includeonly>}}} | ||
+ | |||
+ | | label6 = Australia | ||
+ | | data6 = {{{au_release_date<includeonly>|</includeonly>}}} | ||
+ | |||
+ | | label7 = French | ||
+ | | data7 = {{{fr_release_date<includeonly>|</includeonly>}}} | ||
+ | |||
+ | | label8 = German | ||
+ | | data8 = {{{de_release_date<includeonly>|</includeonly>}}} | ||
+ | |||
+ | | label9 = Italian | ||
+ | | data9 = {{{it_release_date<includeonly>|</includeonly>}}} | ||
+ | |||
+ | | label10 = Spanish | ||
+ | | data10 = {{{es_release_date<includeonly>|</includeonly>}}} | ||
+ | }} | ||
+ | }} | ||
+ | |||
+ | | data4 = {{ #if: {{{series<includeonly>|</includeonly>}}}{{{remake|}}}{{{remake_of|}}} | ||
+ | | {{Infobox | ||
+ | | child = yes | ||
+ | | headerstyle = background-color: #CCF; | ||
+ | | labelstyle = background-color: #DDF; width: 10em; | ||
+ | |||
+ | | header1 = Series | ||
+ | |||
+ | | label2 = Series | ||
+ | | data2 = {{ #if: {{{series<includeonly>|</includeonly>}}} | ||
+ | | ''[[{{{series}}}|{{ #explode: {{{series}}} | ( }}]]'' | ||
+ | }} | ||
+ | |||
+ | | label3 = Previous | ||
+ | | data3 = {{ #if: {{{previous<includeonly>|</includeonly>}}} | ||
+ | | ''[[{{{previous}}}|{{ #explode: {{{previous}}} | ( }}]]'' | ||
+ | }} | ||
+ | |||
+ | | label4 = Next | ||
+ | | data4 = {{ #if: {{{next<includeonly>|</includeonly>}}} | ||
+ | | ''[[{{{next}}}|{{ #explode: {{{next}}} | ( }}]]'' | ||
+ | }} | ||
+ | |||
+ | | label5 = Remake of | ||
+ | | data5 = {{ #if: {{{remake_of<includeonly>|</includeonly>}}} | ||
+ | | ''[[{{{remake_of}}}|{{ #explode: {{{remake_of}}} | ( }}]]'' | ||
+ | }} | ||
+ | |||
+ | | label6 = Remake | ||
+ | | data6 = {{ #if: {{{remake<includeonly>|</includeonly>}}} | ||
+ | | ''[[{{{remake}}}|{{ #explode: {{{remake}}} | ( }}]]'' | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | |||
+ | | data5 = {{ #if: {{ #var: $promotional_cards }}{{ #var: $ocg_promotional_cards }}{{{game_guide|}}}{{{game_guide_1|}}}{{{game_guide_2|}}}{{{en_game_guide|}}}{{{ja_game_guide|}}} | ||
+ | | {{Infobox | ||
+ | | child = yes | ||
+ | | headerstyle = background-color: #CCF; | ||
+ | | labelstyle = background-color: #DDF; width: 10em; | ||
+ | |||
+ | | header1 = Links | ||
+ | |||
+ | | class2 = list-noicon | ||
+ | | data2 = {{ #if: {{ #var: $ocg_promotional_cards }} | | ||
+ | * Promotional cards: ''[[{{ #var: $ocg_promotional_cards }}|OCG]]'' '''·''' ''[[{{ #var: $tcg_promotional_cards }}|TCG]]'' | ||
+ | | {{ #if: {{ #var: $promotional_cards }} | | ||
+ | * [[{{ #var: $promotional_cards }}|Promotional cards]] | ||
+ | }} | ||
+ | }}{{ #if: {{{game_guide<includeonly>|</includeonly>}}} | | ||
+ | * [[{{{guide_book}}}|Guide book]] | ||
+ | }}{{ #if: {{{game_guide_1|}}} | | ||
+ | * Guide books: [[{{{game_guide_1}}}|book 1]] '''·''' [[{{{game_guide_1}}}|book 2]] | ||
+ | }}{{ #if: {{{en_game_guide|}}} | | ||
+ | * Guide books: [[{{{en_game_guide}}}|English]] '''·''' [[{{{ja_game_guide}}}|Japanese]] | ||
+ | }}{{ #ifexist: <includeonly>List of {{ #explode: {{PAGENAME}} | ( }} cards</includeonly><noinclude>{{FULLPAGENAME}}</noinclude> | | ||
+ | * [[List of {{ #explode: {{PAGENAME}} | ( }} cards|List of cards]] | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | }}<!-- | ||
+ | |||
+ | // Properties | ||
+ | -->[[Page type::Video game| ]]<!-- | ||
+ | -->[[Video game series::{{{series|}}}| ]]<!-- | ||
+ | |||
+ | -->[[English name::{{ #var: $name }}| ]]<!-- | ||
+ | -->{{ #set: English name (linked) = ''[[{{PAGENAME}}|{{ #var: $en_name }}]]'' }}<!-- | ||
+ | -->[[French name::{{{fr_name|}}}| ]]<!-- | ||
+ | -->[[German name::{{{de_name|}}}| ]]<!-- | ||
+ | -->[[Italian name::{{{it_name|}}}| ]]<!-- | ||
+ | -->[[Portuguese name::{{{pt_name|}}}| ]]<!-- | ||
+ | -->[[Spanish name::{{{es_name|}}}| ]]<!-- | ||
+ | -->[[Chinese name::{{{zh_name|}}}| ]]<!-- | ||
+ | -->[[Korean name::{{{ko_name|}}}| ]]<!-- | ||
+ | |||
+ | -->[[Japanese release date::{{ #explode: {{{ja_release_date|}}} | <ref }}| ]]<!-- | ||
+ | |||
+ | // Get the earliest release date | ||
+ | -->{{ #arraydefine: dates | | ||
+ | * {{ #formatdate: {{{ja_release_date|}}} | ISO 8601 }} | ||
+ | * {{ #formatdate: {{{en_release_date|}}} | ISO 8601 }} | ||
+ | * {{ #formatdate: {{{na_release_date|}}} | ISO 8601 }} | ||
+ | * {{ #formatdate: {{{eu_release_date|}}} | ISO 8601 }} | ||
+ | * {{ #formatdate: {{{au_release_date|}}} | ISO 8601 }} | ||
+ | }}<!-- | ||
+ | -->{{ #arrayunique: dates }}{{ #arraysort: dates | asc }}<!-- | ||
+ | -->[[Release date::{{ #arrayindex: dates | 0 }}| ]]<!-- | ||
+ | |||
+ | --><noinclude> | ||
+ | |||
+ | {{documentation}}</noinclude> |
Revision as of 08:49, 2 June 2019
[[File:|0px|Box art]] | |||||||||||||||
Names | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
English | {{{en_name}}} | ||||||||||||||
North American English | {{{na_name}}} | ||||||||||||||
European English | {{{eu_name}}} | ||||||||||||||
| |||||||||||||||
| |||||||||||||||
| |||||||||||||||
| |||||||||||||||
Development | |||||||||||||||
Platform | {{{platform}}} | ||||||||||||||
Languages | {{{languages}}} | ||||||||||||||
Developer | {{{developer}}} | ||||||||||||||
Publisher | {{{publisher}}} | ||||||||||||||
Designer | {{{designer}}} | ||||||||||||||
Release dates | |||||||||||||||
Japanese | {{{ja_release_date}}} | ||||||||||||||
English | {{{en_release_date}}} | ||||||||||||||
North America | {{{na_release_date}}} | ||||||||||||||
Europe | {{{eu_release_date}}} | ||||||||||||||
Australia | {{{au_release_date}}} | ||||||||||||||
French | {{{fr_release_date}}} | ||||||||||||||
German | {{{de_release_date}}} | ||||||||||||||
Italian | {{{it_release_date}}} | ||||||||||||||
Spanish | {{{es_release_date}}} | ||||||||||||||
Series | |||||||||||||||
Series | [[{{{series}}}|{{{series}}}]] | ||||||||||||||
Previous | [[{{{previous}}}|{{{previous}}}]] | ||||||||||||||
Next | [[{{{next}}}|{{{next}}}]] | ||||||||||||||
Remake of | [[{{{remake_of}}}|{{{remake_of}}}]] | ||||||||||||||
Remake | [[{{{remake}}}|{{{remake}}}]] | ||||||||||||||
Links | |||||||||||||||
|