Difference between revisions of "Template:Pokemon Infobox"

From Moegirlpedia
Jump to: navigation, search
Line 1: Line 1:
<noinclude>{{doc}}</noinclude><includeonly>{{ArticleCategory|Generation {{#switch:{{{gen|}}}|1=I|2=II|3=III|4=IV|5=V|6=VI|7|7-2|7-3=VII|8|8-2|8-3=VIII|9=IX}} Pokémon}}{{#forargs:type|key|val|{{#if:{{#var:val}}|{{ArticleCategory|{{#var:val}}-type Pokémon}}}}}}{{#if:{{{form2|}}}|<div class="Tabs" data-text-padding="0" data-label-border-color="#{{#var:pm-type-{{{type2|{{{type1|ice}}}}}}}}" data-label-color="#{{#var:pm-type-{{{type1|ice}}}}}" style="width: 320px; float: right;">}}<!--
+
<noinclude>{{doc}}</noinclude><includeonly>{{ArticleCategory|Generation {{#switch:{{{gen|}}}|1=I|2=II|3=III|4=IV|5=V|6=VI|7|7-2|7-3=VII|8|8-2|8-3=VIII|9=IX}}Pokémon}}{{#forargs:type|key|val|{{#if:{{#var:val}}|{{ArticleCategory|{{#var:val}}-type Pokémon}}}}}}{{#if:{{{form2|}}}|<div class="Tabs" data-text-padding="0" data-label-border-color="#{{#var:pm-type-{{{type2|{{{type1|water}}}}}}}}" data-label-color="#{{#var:pm-type-{{{type1|water}}}}}" style="width: 320px; float: right;">}}<!--
 
-->{{#forargs:english|key|val|<!--
 
-->{{#forargs:english|key|val|<!--
   defining color, game
+
   定义颜色、游戏
   -->{{#vardefine:pm-infobox-left-style|style="background-color: #{{#var:pm-type-{{#if:{{{type{{#var:key}}-2|{{{type2|}}}}}}|{{{type{{#var:key}}-2|{{{type2|}}}}}}|{{{type{{#var:key}}-1|{{{type1|ice}}}}}}}}}}; color: #FFF; width: 56px;"}}<!--
+
   -->{{#vardefine:pm-infobox-left-style|style="background-color: #{{#var:pm-type-{{#if:{{{type{{#var:key}}-2|{{{type2|}}}}}}|{{{type{{#var:key}}-2|{{{type2|}}}}}}|{{{type{{#var:key}}-1|{{{type1|water}}}}}}}}}}; color: #FFF; width: 56px;"}}<!--
   -->{{#vardefine:pm-infobox-row-style|style="background-color: #{{#var:pm-type-{{{type{{#var:key}}-1|{{{type1|ice}}}}}}}}; color: #FFF;"}}<!--
+
   -->{{#vardefine:pm-infobox-row-style|style="background-color: #{{#var:pm-type-{{{type{{#var:key}}-1|{{{type1|}}}}}}}}; color: #FFF;"}}<!--
   -->{{#vardefine:pm-game-{{#var:key|}}|{{#switch:{{{gen{{#var:key|}}|}}}|1=Red/Blue|1-2=Green|1-3=Yellow|2=Gold/Silver|2-2=Crystal|3=Ruby/Sapphire|3-2=FireRed/LeafGreen|3-3=Emerald|4=Diamond/Pearl|4-2=Black/White|4-3=HeartGold/SoulSilver|5=Black/White|5-2=Black 2/White 2|6=X/Y|6-2=Omega Ruby/Alpha Sapphire|7=Sun/Moon|7-2=Ultra Sun/Ultra Moon|7-3=Let's Go, Pikachu! / Let's Go, Eevee!|8=Sword/Shield|8-2=Brilliant Diamond/Shining Pearl|8-3=Legends Arceus|9=Scarlet/Violet}}}}<!--
+
   -->{{#vardefine:pm-game-{{#var:key|}}|{{#switch:{{{gen{{#var:key|}}|}}}|1=Red/Blue|1-2=Green|1-3=Yellow|2=Gold/Silver|2-2=Crystal Version|3=Ruby/Sapphire|3-2=FireRed/LeafGreen|3-3=Emerald|4=Diamond/Pearl|4-2=Platinum|4-3=HeartGold/SoulSilver|5=Black/White|5-2=Black 2 White 2|6=X/Y|6-2=Omega Ruby/Alpha Sapphire|7=Sun/Moon|7-2=Ultra Sun/Ultra Moon|7-3=Let's Go, Pikachu!/Let's Go, Eevee!|8=Sword/Shield|8-2=Brilliant Diamond/Shining Pearl|8-3=Legends: Arceus|9=Scarlet/Violet}}}}<!--
   -->{{#vardefine:pm-game-full-{{#var:key|}}|{{#switch:{{{gen{{#var:key|}}|}}}|7|7-2|7-3=Pokémon {{#var:pm-game-{{#var:key|}}}}|8-3=Pokémon {{#var:pm-game-{{#var:key|}}}}|#default=Pokémon {{#var:pm-game-{{#var:key|}}}}}}}}<!--
+
   -->{{#vardefine:pm-game-full-{{#var:key|}}|{{#switch:{{{gen{{#var:key|}}|}}}|7|7-2|7-3=Pokémon {{#var:pm-game-{{#var:key|}}}}|8-3=Pokémon{{#var:pm-game-{{#var:key|}}}}|#default=Pokémon {{#var:pm-game-{{#var:key|}}}}}}}}<!--
   -->{{#if:{{{form2|}}}|<div class="Tab"><div class="TabLabelText">{{{form{{#var:key|1}}|{{{中文|{{PAGENAME}}}}}}}}</div><div class="TabContentText">}}<!--
+
   -->{{#if:{{{form2|}}}|<div class="Tab"><div class="TabLabelText">{{{form{{#var:key|1}}|{{{english|{{PAGENAME}}}}}}}}</div><div class="TabContentText">}}<!--
 
   -->
 
   -->
 
{{{!}} class="infobox pm-infobox" align="right" style="font-size: 89%; text-align: center; width: 320px; max-width: 100%; float: right; background-color: #FFF;"
 
{{{!}} class="infobox pm-infobox" align="right" style="font-size: 89%; text-align: center; width: 320px; max-width: 100%; float: right; background-color: #FFF;"
 
{{!-}}
 
{{!-}}
! colspan="4" style="background-color: #{{#var:pm-type-{{{type{{#var:key}}-1|{{{type1|水}}}}}}}}; color: #FFF; padding: 1em;" {{!}} {{{中文|{{PAGENAME}}}}}{{{娘|}}}
+
! colspan="4" style="background-color: #{{#var:pm-type-{{{type{{#var:key}}-1|{{{type1|水=water}}}}}}}}; color: #FFF; padding: 1em;" {{!}} {{{中文|{{PAGENAME}}}}}{{{娘|}}}
 
{{!-}}
 
{{!-}}
 
{{!}} colspan="4" {{!}} {{{tabs| {{#if:{{{image|}}} | [[File:{{{image|}}}|{{{size|280px}}}]]<br>{{{caption|}}} | {{#if: {{{娘|}}}| {{ArticleCategory|无设定图的娘化条目}} | [[File:Pokemon_Gen{{{gen{{#var:key|}}|}}}_{{{英文|}}}{{#if:{{{英文{{#var:key|None}}|}}}|_{{{英文{{#var:key|none}}}}}}}.png|{{{size|280px}}}]]<br>{{{caption|}}} }} }} }}}<!--
 
{{!}} colspan="4" {{!}} {{{tabs| {{#if:{{{image|}}} | [[File:{{{image|}}}|{{{size|280px}}}]]<br>{{{caption|}}} | {{#if: {{{娘|}}}| {{ArticleCategory|无设定图的娘化条目}} | [[File:Pokemon_Gen{{{gen{{#var:key|}}|}}}_{{{英文|}}}{{#if:{{{英文{{#var:key|None}}|}}}|_{{{英文{{#var:key|none}}}}}}}.png|{{{size|280px}}}]]<br>{{{caption|}}} }} }} }}}<!--
   Basic Information
+
   basic info
 
-->
 
-->
 
{{Infobox/brick
 
{{Infobox/brick
|column1= Badic Information|column1 style=colspan="4" {{#var:pm-infobox-row-style}}
+
|column1= Basic Information|column1 style=colspan="4" {{#var:pm-infobox-row-style}}
 
}}{{Infobox/brick
 
}}{{Infobox/brick
|column1= Number|column1 style={{#var:pm-infobox-left-style}}|column2= #{{{number|???}}}
+
|column1= Number|column1 style={{#var:pm-infobox-left-style}}|column2= #{{{编号|???}}}
|column3= Game|column3 style={{#var:pm-infobox-left-style}}|column4= [[{{#var:pm-game-full-{{#var:key|}}}}|{{#var:pm-game-{{#var:key|}}}}]]
+
|column3= First appearance|column3 style={{#var:pm-infobox-left-style}}|column4= [[{{#var:pm-game-full-{{#var:key|}}}}|{{#var:pm-game-{{#var:key|}}}}]]
 
}}{{Infobox/brick
 
}}{{Infobox/brick
 
|column1= Japanese|column1 style={{#var:pm-infobox-left-style}}|column2= -{{{{japanese|日本語}}}}-|column2 style=lang="ja"
 
|column1= Japanese|column1 style={{#var:pm-infobox-left-style}}|column2= -{{{{japanese|日本語}}}}-|column2 style=lang="ja"
|column3= English|column3 style={{#var:pm-infobox-left-style}}|column4= {{{english|English}}}|column4 style=lang="en"
+
|column3= English|column3 style={{#var:pm-infobox-left-style}}|column4= {{{英文|English}}}|column4 style=lang="en"
 
}}{{Infobox/brick
 
}}{{Infobox/brick
 
|column1= Type|column1 style={{#var:pm-infobox-left-style}}|column2= {{Pokemon Type|{{{type{{#var:key}}-1|{{{type1|}}}}}}}}{{#if:{{{type{{#var:key}}-2|{{{type2|}}}}}}|<br>{{Pokemon Type|{{{type{{#var:key}}-2|{{{type2|}}}}}}}}}}
 
|column1= Type|column1 style={{#var:pm-infobox-left-style}}|column2= {{Pokemon Type|{{{type{{#var:key}}-1|{{{type1|}}}}}}}}{{#if:{{{type{{#var:key}}-2|{{{type2|}}}}}}|<br>{{Pokemon Type|{{{type{{#var:key}}-2|{{{type2|}}}}}}}}}}
|column3= Category|column3 style={{#var:pm-infobox-left-style}}|column4= {{{Category{{#var:key}}|{{{category|Unknown}}}}}}}}} category Pokémon
+
|column3= Category|column3 style={{#var:pm-infobox-left-style}}|column4= {{{分类{{#var:key}}|{{{Category|Unknown}}}}}} Pokémon
 
}}{{Infobox/brick
 
}}{{Infobox/brick
|column1= Features|column1 style={{#var:pm-infobox-left-style}}|column2= {{{features{{#var:key}}|{{{features|None}}}}}}|column2 style={{#if:{{{隐藏特性{{#var:key}}|{{{隱藏特性{{#var:key}}|{{{隐藏特性|{{{隱藏特性|}}}}}}}}}}}}||colspan="3"}}
+
|column1= 特性|column1 style={{#var:pm-infobox-left-style}}|column2= {{{特性{{#var:key}}|{{{特性|}}}}}}|column2 style={{#if:{{{隐藏特性{{#var:key}}|{{{隱藏特性{{#var:key}}|{{{隐藏特性|{{{隱藏特性|}}}}}}}}}}}}||colspan="3"}}
 
|column3= {{#if:{{{隐藏特性{{#var:key}}|{{{隱藏特性{{#var:key}}|{{{隐藏特性|{{{隱藏特性|}}}}}}}}}}}}|隐藏特性}}|column3 style={{#var:pm-infobox-left-style}}|column4= {{{隐藏特性{{#var:key}}|{{{隱藏特性{{#var:key}}|{{{隐藏特性|{{{隱藏特性|}}}}}}}}}}}}
 
|column3= {{#if:{{{隐藏特性{{#var:key}}|{{{隱藏特性{{#var:key}}|{{{隐藏特性|{{{隱藏特性|}}}}}}}}}}}}|隐藏特性}}|column3 style={{#var:pm-infobox-left-style}}|column4= {{{隐藏特性{{#var:key}}|{{{隱藏特性{{#var:key}}|{{{隐藏特性|{{{隱藏特性|}}}}}}}}}}}}
 
}}{{Infobox/brick
 
}}{{Infobox/brick
|column1= height|column1 style={{#var:pm-infobox-left-style}}|column2= {{{height{{#var:key}}|{{{height|Unknown}}}}}}
+
|column1= Height|column1 style={{#var:pm-infobox-left-style}}|column2= {{{height{{#var:key}}|{{{height|Unknown}}}}}}
|column3= weight|column3 style={{#var:pm-infobox-left-style}}|column4= {{{weight{{#var:key}}|{{{weight|Unknown}}}}}}
+
|column3= Weight|column3 style={{#var:pm-infobox-left-style}}|column4= {{{weight{{#var:key}}|{{{weight|Unknown}}}}}}
}}{{#if:{{{evolutions{{#var:key}}|{{{evolutions|}}}}}}|{{Infobox/brick
+
}}{{#if:{{{evolution{{#var:key}}|{{{evolution|}}}}}}|{{Infobox/brick
|column1= Evolution line|column1 style={{#var:pm-infobox-left-style}}|column2= {{{evolution{{#var:key}}|{{{进化链|}}}}}}|column2 style=colspan="3"
+
|column1= Evolutions|column1 style={{#var:pm-infobox-left-style}}|column2= {{{evolution{{#var:key}}|{{{evolution|}}}}}}|column2 style=colspan="3"
 
}}}}{{Infobox/brick
 
}}}}{{Infobox/brick
|column1= Regional Pokédex|column1 style={{#var:pm-infobox-left-style}}|column2= {{{regional pokedex|<nowiki/>
+
|column1= Regional Pokédex|column1 style={{#var:pm-infobox-left-style}}|column2= {{{regions|<nowiki/>
{{#invoke:Pokemon Number|main|{{PAGENAME}}}}}}|column2 style=colspan="3" style="text-align: left;"
+
{{#invoke:Pokemon Number|main|{{{english|{{PAGENAME}}}}}}}}}}|column2 style=colspan="3" style="text-align: left;"
 
}}
 
}}
 
{{Infobox/brick
 
{{Infobox/brick
|column1= Gender ratio|column1 style={{#var:pm-infobox-left-style}}|column2= {{{gender ratio{{#var:key}}|{{{gender ratio|Unknown}}}}}}
+
|column1= Gender ratio|column1 style={{#var:pm-infobox-left-style}}|column2= {{{gender ratio{{#var:key}}||{{{gender ratio|unknown}}}}}}
|column3= 蛋群|column3 style={{#var:pm-infobox-left-style}}|column4= {{{蛋群|}}}
+
|column3= Egg group|column3 style={{#var:pm-infobox-left-style}}|column4= {{{egg group|None}}}
 
}}}}<!--
 
}}}}<!--
 +
  basic info end
 +
--><!--
 
   other info
 
   other info
-->{{#if:{{{CV|{{{Multi CV|}}}}}}|{{Infobox/brick
+
-->{{#if:{{{CV|{{{multi CV|}}}}}}|{{Infobox/brick
|column1= CV|column1 style={{#var:pm-infobox-left-style}}|column2= {{{Multi CV|[[{{{CV|}}}]] }}}}}}|column2 style=colspan="3"
+
|column1= Voice actor|column1 style={{#var:pm-infobox-left-style}}|column2= {{{multi CV|[[{{{CV|}}}]] }}}|column2 style=colspan="3"
 
}}}}{{#if:{{{moe points|}}}|{{Infobox/brick
 
}}}}{{#if:{{{moe points|}}}|{{Infobox/brick
|column1= Moe Points|column1 style={{#var:pm-infobox-left-style}}|column2= {{{moe points}}}|column2 style=colspan="3"
+
|column1= Moe Points|column1 style={{#var:pm-infobox-left-style}}|column2= {{{moe points|}}}|column2 style=colspan="3"
}}}}{{#if:{{{related}}}|{{Infobox/brick
+
}}}}{{#if:{{{related|}}}|{{Infobox/brick
 
|column1= Related articles|column1 style={{#var:pm-infobox-left-style}}|column2= {{{related|}}}|column2 style=colspan="3"
 
|column1= Related articles|column1 style={{#var:pm-infobox-left-style}}|column2= {{{related|}}}|column2 style=colspan="3"
 
}}}}<!--
 
}}}}<!--
Line 61: Line 63:
 
}}{{Infobox/brick
 
}}{{Infobox/brick
 
|column1= <nowiki/>
 
|column1= <nowiki/>
* [[cm:Category:{{PAGENAME}}|萌娘共享上的图片]]
+
* [[cm:Category:{{PAGENAME}}|Images in Moegirl Commons]]
* [https://wiki.52poke.com/wiki/{{{中文|{{PAGENAME}}}}} 神奇宝贝百科上的资料]{{#switch:{{{编号|{{{編號|???}}}}}}|???|=|#default=
+
* [https://bulbapedia.bulbagarden.net/wiki/{{{english|{{PAGENAME}}}}} page in Bulbapedia]{{#switch:{{{number|???}}}|???|=|#default=
* -{zh-cn:[https://cn.portal-pokemon.com/play/pokedex/{{{编号|{{{編號|???}}}}}} 宝可梦官网上的介绍];zh-tw:[https://tw.portal-pokemon.com/play/pokedex/{{{编号|???}}} 寶可夢官網上的介紹];}-}}{{#if:{{{外部链接|}}}|<nowiki/>
+
* -{zh-cn:[https://cn.portal-pokemon.com/play/pokedex/{{{编号|???}}} 宝可梦官网上的介绍];zh-tw:[https://tw.portal-pokemon.com/play/pokedex/{{{number|???}}} 寶可夢官網上的介紹];}-}}{{#if:{{{外部链接|}}}|<nowiki/>
{{{外部链接|{{{外部鏈接|}}}}}}}}|column1 style=colspan="4" style="text-align: left;"
+
{{{外部链接|}}}}}|column1 style=colspan="4" style="text-align: left;"
 
}}
 
}}
 
{{!}}}
 
{{!}}}
Line 71: Line 73:
 
#forargs -->}}<!--
 
#forargs -->}}<!--
 
-->{{#if:{{{form2|}}}|</div>}}<!--
 
-->{{#if:{{{form2|}}}|</div>}}<!--
   自动生成首段
+
   Automatic first paragraph
 
-->{{#if:{{{CV|}}}|{{ArticleCategory|{{{CV|}}}}}}}{{#if: {{{info|}}}|<nowiki/>
 
-->{{#if:{{{CV|}}}|{{ArticleCategory|{{{CV|}}}}}}}{{#if: {{{info|}}}|<nowiki/>
'''{{{english|{{PAGENAME}}}}}''' ({{lang-ja|'''{{{japanese|}}}'''}}) is a Pokémon from the ''Pokémon series, its first appearance was in ''{{#var:pm-game-full-}}''.}}</includeonly>
+
'''{{{english|{{PAGENAME}}}}}''' ({{lang-ja|'''{{{japanese|}}}'''}}) is a Pokémon from the ''Pokémon'' series. Its first appearance was in ''{{#var:pm-game-full-}}''.}}</includeonly>

Revision as of 00:04, 7 July 2023

Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]
Pokemon Series Logo.svg
Moegirlpedia welcomes your assistance in improving this Pokémon article.

As you read this article, you're welcome to participate in editing this page. Before editing, please read the wiki quickstart, edit guidelines and retrieve relevant information.

We wish you a good time on Moegirlpedia.

This template depends on the definitions in Template:Pokemon top, so use it with {{Pokemon top}}.

Parameters

{{Pokemon Infobox
|japanese = 
|english =
|image =
|number = 
|gen =
|type1 = 
|type2 =
|category =
|features =
|height =
|weight =
|gender ratio =
|egg group =
|evolution =
|CV =
|multi CV =
|moe points =
|related =
}}

To avoid conflicts, please delete unused parameters.

The parameter "gen" indicated the generation in which it was introduced. Due to the increase of cross-generation Pokémon in Generation VII, please fill in "gen = 7-2" (Ultra Sun / Ultra Moon), "gen = 7-3" (Let's Go Pikachu / Let's Go Eevee), etc.

The parameter ""CV" adds a link to the voice actor and its corresponding category to the article, if there are multiple voice actors, please use "multi CV".

Using this template will automatically add the following categories to the article:

If you need to edit, please edit the template directly, to make maintenance easier.

For Pokémon with multiple forms, please use "formx" to issue the form directly, where the "X" is the form number; types, categories, height, weight, and evolutions can all be distinguished by form. Note that if multiple forms don't have dual types, the corresponding parameter needs to be left blank.

As the regional artwork will be updated according to game release, therefore, this part of the data will be modularized. If you need to edit, please edit Module:Pokemon Number/Data directly. The parameters related to the region icon are no longer used.

Example usage

}}|-
Pokemon Infobox
Pokemon Gen1 Bulbasaur.png
Basic Information
Number #001 First appearance Red/Blue
Japanese フシギダネ English Bulbasaur
Type File:Pokemon Type Icon SV.png
poison File:Pokemon Type Icon poison SV.png
Category Seed Pokémon
Abilities None }
Height 0.7m Weight 6.9 kg
Regional Pokédex
Not in the Regional Pokédex
Gender ratio 7:1 Egg group None
Related articles Starters: Charmander, Squirtle
Related links

}} Pokemon Infobox (Japanese: フシギダネ) is a Pokémon from the Pokémon series. Its first appearance was in Pokémon Red/Blue.

{{Pokemon Infobox
|japanese = フシギダネ
|english = Bulbasaur
|number = 001
|gen = 1
|type = grass
|type2 = poison
|category = Seed
|height = 0.7m
|weight = 6.9 kg
|gender ratio = 7:1
|evolution line = [[Bulbasaur]] → [[Ivysaur]] → [[Venusaur]]
|related = Starters: [[Charmander]], [[Squirtle]]
|info = true
}}

Multiple forms

Charizard
}}
Pokemon Infobox
Pokemon Gen1 Charizard.png
Basic Information
Number #006 First appearance Red/Blue
Japanese リザードン English Charizard
Type fire File:Pokemon Type Icon Fire SV.png
flying File:Pokemon Type Icon Flying SV.png
Category Fire Pokémon
Abilities None }
Height 1.7m Weight 90.5kg
Regional Pokédex
Not in the Regional Pokédex
Gender ratio 7:1 Egg group None
Related links
}}

Pokemon Infobox (Japanese: リザードン) is a Pokémon from the Pokémon series. Its first appearance was in Pokémon Red/Blue.