Difference between revisions of "Template:Yokai Infobox"

From Yo-Kai Watch Wiki
Jump to: navigation, search
(Created page with "<onlyinclude><div class="stdinfobox {{#if:{{{class|}}}|{{#replace:{{lc:class-{{English class name|{{{class}}} }} }}| |-}}|}}" style="width: auto;"> {| style="width: 100%;" |-...")
 
Line 1: Line 1:
<onlyinclude><div class="stdinfobox {{#if:{{{class|}}}|{{#replace:{{lc:class-{{English class name|{{{class}}} }} }}| |-}}|}}" style="width: auto;">
+
{| class="infobox" id="infobox" style="font-size:89%; width:365px;"
{| style="width: 100%;"
+
 
|-
 
|-
| class="box" |
+
! colspan="3" style="background-color: #BDBDBD; color: #000000; font-size:120%; padding:0.5em; text-align:center;" | {{{name|{{PAGENAME}}}}}
{| style="width: 100%;"
+
 
|-
 
|-
| rowspan="3" style=" text-align: center; width: 54px;" | {{#if:{{{class|}}}|[[File:{{English class name|{{{class}}} }} icon.png]]|<small>{{{class}}}</small>}}
+
! colspan="3" |{{#if:{{{image|}}}|{{{image|}}}}}
| colspan="3" style="font-size: 150%; text-align: center; width: 412px;" | {{{english name}}}{{#if:{{{english name|}}}|{{#set:Has English name={{{english name}}}|Has name={{{english name}}} }}|}}
+
| rowspan="2" style=" text-align: center; width: 54px;" | {{#if:{{{rank|}}}|[[File:Rank {{uc:{{{rank}}} }} icon.png]]{{#set:Is of rank={{uc:{{{rank}}} }}|Is of rank/index={{Rank index|{{{rank}}} }} }}|<small>{{{rank}}}</small>}}
+
 
|-
 
|-
| style="font-size: 80%; text-align: center; width: 166px;" | {{{japanese name}}}{{#if:{{{japanese name|}}}|{{#set:Has Japanese name={{{japanese name}}}|Has name={{{japanese name}}} }}|}}
+
! colspan="3" style="background-color: #BDBDBD; color: #000000; padding:0em; text-align:center;" | Classification
| style="font-size: 80%; text-align: center; width: 166px;" | {{{romanji}}}{{#if:{{{romanji|}}}|{{#set:Has Romanji name={{{romanji}}}|Has name={{{romanji}}} }}|}}
+
| style="font-size: 80%; text-align: center; width: 80px;" | {{{series}}}{{#if:{{{series|}}}|{{#set:Has series code={{{series}}} }}|}}
+
|}
+
 
|-
 
|-
|  
+
|{{!}} '''Class''' || {{!}} '''Rank''' || {{!}} '''Type'''
{| style="width: 100%;"
+
 
|-
 
|-
| rowspan="2" class="lightbox" style=" text-align: center; width: 120px;" | {{English class name|{{{class}}} }}<br />({{Japanese class name|{{{class}}} }}){{#if:{{{class|}}}|{{#set:Is of class={{English class name|{{{class}}} }}|Is of class (Japanese)={{Japanese class name|{{{class}}} }} }}|}}
+
|[[File:{{{Class|}}} icon.png|link=Cute]] || [[File:Yokai Rank {{{Rank|}}} icon.png|link=Yokai Rank {{{Rank|}}}]] || [[ {{{Type|}}} ]]
| class="box" style="text-align: right; width: 100px;" | '''Time'''
+
| colspan="3" class="lightbox" style="width: 300px;" | {{{time}}}{{#if:{{{time|}}}|{{#set:Is of time={{{time}}} }}|}}
+
 
|-
 
|-
| class="box" style="text-align: right;" | '''Evolution'''
+
|}
| colspan="3" class="lightbox" | {{{evolution}}}{{#if:{{{evolution|}}}|{{#set:Has evolution={{{evolution}}} }}|}}
+
{| class="infobox" id="infobox" style="font-size:89%; width:365px;"
 
|-
 
|-
| class="lightbox" style=" text-align: center;" | {{{favorite food}}}{{#if:{{{favorite food|}}}|{{#set:Has favorite food={{{favorite food}}} }}|}}
+
! colspan="2" style="background-color: #BDBDBD; color: #000000; padding:0em; text-align:center;" | General Information
| class="box" style="text-align: right;" | '''Type'''
+
| colspan="3" class="lightbox" | {{{type}}}{{#if:{{{type|}}}|{{#set:Is of element={{{type}}}|Is of element/index={{Element index|{{{type}}} }} }}|}}
+
 
|-
 
|-
| class="lightbox" style=" text-align: center;" | {{{role}}}{{#if:{{{role|}}}|{{#set:Has role={{{role}}} }}|}}
+
|{{!}} '''Japanese Name'''
| class="box" style="text-align: right; width: 100px;" | '''HP'''
+
{{!}} {{{Japanese Name|}}}
| class="lightbox" style="width: 100px;" | {{#if:{{{hp|}}}|{{Yokai stat|{{{hp}}}|Has HP|Has HP rank|Has HP rank/index}}|{{{hp}}} }}
+
| class="box" style="text-align: right; width: 100px;" | '''Spirit'''
+
| class="lightbox" style="width: 100px;" | {{#if:{{{spirit|}}}|{{Yokai stat|{{{spirit}}}|Has spirit|Has spirit rank|Has spirit rank/index}}|{{{spirit}}} }}
+
 
|-
 
|-
| rowspan="13" class="box" style="text-align: center; vertical-align: middle;" | {{#if:{{{image|}}}|[[File:{{{image}}}|120px]]{{#set:Has image=File:{{{image}}} }}|{{{image}}} }}
+
|{{!}} '''Number'''
| class="box" style="text-align: right;" | '''Power'''
+
{{!}} {{{Number|}}}
| class="lightbox" | {{#if:{{{power|}}}|{{Yokai stat|{{{power}}}|Has power|Has power rank|Has power rank/index}}|{{{power}}} }}
+
| class="box" style="text-align: right;" | '''Speed'''
+
| class="lightbox" | {{#if:{{{speed|}}}|{{Yokai stat|{{{speed}}}|Has speed|Has speed rank|Has speed rank/index}}|{{{speed}}} }}
+
 
|-
 
|-
| class="box" style="text-align: right;" | '''Defense'''
+
|{{!}} '''Time'''
| colspan="3" class="lightbox" | {{#if:{{{defense|}}}|{{Yokai stat|{{{defense}}}|Has defense|Has defense rank|Has defense rank/index}}|{{{defense}}} }}
+
{{!}} {{{Time|}}}
 
|-
 
|-
| class="box" style="text-align: right;" | '''Command'''
+
|{{!}} '''Evolution'''
| colspan="3" class="lightbox" | {{#if:{{{command|}}}|{{#lstmap:{{{command}}}|,|@@@@|<div>[[File:@@@@ icon.png|16px]] @@@@</div><esc>{{#set:Has command=@@@@}}</esc>|}}|{{{command}}} }}
+
{{!}} {{{Evolution|}}}
 
|-
 
|-
| class="box" style="text-align: right;" | '''Buster<br />Command'''
+
|{{!}} '''Favorite Food'''
| colspan="3" class="lightbox" | {{#if:{{{buster command type|}}}|[[File:Buster command {{lc:{{{buster command type}}} }} icon.png|80px]]{{#set:Has buster command type={{lc:{{{buster command type}}} }}|Has buster command type/index={{Buster command type index|{{{buster command type}}} }} }}|}} {{{buster command}}}{{#if:{{{buster command|}}}|{{#set:Has buster command={{{buster command}}} }}|}}
+
{{!}} {{{Favorite Food|}}}
 
|-
 
|-
| class="box" style="text-align: right;" | '''Skill'''
+
|}
| colspan="3" class="lightbox" | {{{skill}}}{{#if:{{{skill|}}}|{{#set:Has skill={{{skill}}} }}|}}
+
{| class="infobox" id="infobox" style="font-size:89%; width:365px;"
 
|-
 
|-
| class="box" style="text-align: right;" | '''Special Effect'''
+
! colspan="5" style="background-color: #BDBDBD; color: #000000; padding:0em; text-align:center;" | Stats
| colspan="3" class="lightbox" | {{{special effect}}}{{#if:{{{special effect|}}}|{{#set:Has special effect={{{special effect}}} }}|}}
+
 
|-
 
|-
| class="box" style="text-align: right;" | '''Characteristics'''
+
|{{!}} '''HP''' || {{!}} '''Spirit''' || {{!}} '''Power''' || {{!}} '''Speed''' || {{!}} '''Defense'''
| colspan="3" class="lightbox" style="text-align: center;" | {{{characteristics}}}{{#if:{{{characteristics|}}}|{{#set:Has characteristic={{{characteristics}}} }}|}}
+
 
|-
 
|-
{{#if: {{{other lan|}}}|
+
|{{!}} {{{HP|}}} || {{!}} {{{Spirit|}}} || {{!}} {{{Power|}}} || {{!}} {{{Speed|}}} || {{!}} {{{Defense|}}}
{{!}} class="box" style="text-align: right;" {{!}} '''Other names'''
+
{{!}} colspan="3" class="lightbox" {{!}} {{#lstmap:{{{other lan}}}|,|@@@@|<div>@@@@</div><esc>{{#set:Has other name=@@@@|Has name=@@@@}}</esc>|}} | }}
+
 
|-
 
|-
{{#if: {{{game|}}}{{{chapter|}}}{{{episode|}}}{{{jva|}}}|
+
|[[file:Rank {{{HP Rank|}}} icon.png]] || [[file:Rank {{{Spirit Rank|}}} icon.png]] || [[file:Rank {{{Power Rank|}}} icon.png]] || [[file:Rank {{{Speed Rank|}}} icon.png]] || [[file:Rank {{{Defense Rank|}}} icon.png]]
{{!}} colspan="4" class="box" style="text-align: center;" {{!}} '''Debut''' | }}
+
|-
+
{{#if: {{{game|}}}|
+
{{!}} class="box" style="text-align: right;" {{!}} ''Game''
+
{{!}} colspan="3" class="lightbox" {{!}} [[{{{game}}}]]{{#set:Debuts in game={{{game}}} }} | }}
+
|-
+
{{#if: {{{chapter|}}}|
+
{{!}} class="box" style="text-align: right;" {{!}} ''Manga''
+
{{!}} colspan="3" class="lightbox" {{!}} [[{{{chapter}}}]]{{#set:Debuts in manga={{{chapter}}} }} | }}
+
|-
+
{{#if: {{{episode|}}}|
+
{{!}} class="box" style="text-align: right;" {{!}} ''Anime''
+
{{!}} colspan="3" class="lightbox" {{!}} [[{{{episode}}}]]{{#set:Debuts in anime={{{episode}}} }} | }}
+
|-
+
{{#if: {{{jva|}}}|
+
{{!}} class="box" style="text-align: right;" {{!}} ''Japanese VA''
+
{{!}} colspan="3" class="lightbox" {{!}} [[{{{jva}}}]]{{#set:Has Japanese voice actor={{{jva}}} }} | }}
+
|-
+
{{#if: {{{eva|}}}|
+
{{!}} class="box" style="text-align: right;" {{!}} ''English VA''
+
{{!}} colspan="3" class="lightbox" {{!}} [[{{{eva}}}]]{{#set:Has English voice actor={{{eva}}} }} | }}
+
 
|}
 
|}
|}
+
{| class="infobox" id="infobox" style="font-size:89%; width:365px;"
</div><includeonly>[[Category:Yokai data]][[Category:All Yokai data]]</includeonly></onlyinclude>
+
<nowiki>{{Infobox Yokai
+
  |english name=the English name
+
  |japanese name=the Japanese name
+
  |romanji=The name in Romanji
+
  |series=Series code
+
  |image=Filename of image, not including File:
+
  |class=Class
+
  |rank=Rank
+
  |favorite food=Favorite food
+
  |role=Attacker or Defender
+
  |time=Time
+
  |evolution=Evolution
+
  |type=Type
+
  |hp=HP value and rank, separated by a space
+
  |spirit=Spirit value and rank, separated by a space
+
  |power=Power value and rank, separated by a space
+
  |speed=Speed value and rank, separated by a space
+
  |defense=Defense value and rank, separated by a space
+
  |command=first command,second command,etc.
+
  |buster command type=Buster command type
+
  |buster command=Buster command
+
  |skill=Skill
+
  |special effect=Special effect
+
  |characteristics=characteristics
+
  |other lan=names in non-English, non-Japanese languages, separated by commas. Optional.
+
  |game=debut game, autolinks, optional
+
  |chapter=debut in manga, autolinks, optional
+
  |episode=debut in anime, autolinks, optional
+
  |jva=Japanese voice actor
+
  |eva=English voice actor
+
}}
+
</nowiki>
+
 
+
This template also sets semantic properties in [[:Category:Yokai semantics]] as follows:
+
{| class="wikitable"
+
 
|-
 
|-
!Parameter !!Properties !!Notes
+
! colspan="2" style="background-color: #BDBDBD; color: #000000; padding:0em; text-align:center;" | Combat
 
|-
 
|-
|<tt>english name</tt> ||[[Property:Has English name|Has English name]], [[Property:Has name|Has name]] ||
+
|{{!}} '''Skill'''
 +
{{!}} {{{Skill|}}}
 
|-
 
|-
|<tt>japanese name</tt> ||[[Property:Has Japanese name|Has Japanese name]], [[Property:Has name|Has name]] ||
+
|{{!}} '''Special Effect'''
 +
{{!}} {{{Special Effect|}}}
 
|-
 
|-
|<tt>romanji name</tt> ||[[Property:Has Romanji name|Has Romanji name]], [[Property:Has name|Has name]] ||
+
|{{!}} '''Command'''
 +
{{!}} {{{Command|}}}
 
|-
 
|-
|<tt>series</tt> ||[[Property:Has series code|Has series code]] ||
+
|{{!}} '''Buster Command'''
 +
{{!}} {{{Buster Command|}}}
 
|-
 
|-
|<tt>image</tt> ||[[Property:Has image|Has image]] ||
+
! colspan="2" style="background-color: #BDBDBD; color: #000000; padding:0em; text-align:center;" | Debut
 
|-
 
|-
|<tt>class</tt> ||[[Property:Is of class|Is of class]], [[Property:Is of class (Japanese)|Is of class (Japanese)]] || See {{tl|Japanese class name}} and {{tl|English class name}} for viewing and editing automatic class name translations
+
|{{!}} '''Anime'''
 +
{{!}} {{{Anime|}}}
 
|-
 
|-
|<tt>rank</tt> ||[[Property:Is of rank|Is of rank]], [[Property:Is of rank/index|Is of rank/index]] || See {{tl|Rank index}} for viewing or editing sorting indices
+
|{{!}} '''Game'''
 +
{{!}} {{{Game|}}}
 
|-
 
|-
|<tt>favorite food</tt> ||[[Property:Has favorite food|Has favorite food]] ||
+
! colspan="2" style="background-color: #BDBDBD; color: #000000; padding:0em; text-align:center;" | Voice Actor
 
|-
 
|-
|<tt>role</tt> ||[[Property:Has role|Has role]] ||
+
|{{!}} '''English'''
 +
{{!}} {{{English|}}}
 
|-
 
|-
|<tt>time</tt> ||[[Property:Is of time|Is of time]] ||
+
|{{!}} '''Japanese'''
 +
{{!}} {{{Japanese|}}}
 
|-
 
|-
|<tt>evolution</tt> ||[[Property:Has evolution|Has evolution]] ||
+
|}<includeonly>[[Category:Yokai|{{PAGENAME}}]] {{#set:Class={{{Class|}}} |+sep}} {{#set:Rank={{{Rank|}}} |+sep}} {{#set:Type={{{Type|}}} |+sep}} {{#set:Japanese Name={{{Japanese Name|}}} |+sep}} {{#set:Number={{{Number|}}} |+sep}}{{#set:Time={{{Time|}}} |+sep}}{{#set:Evolution={{{Evolution|}}} |+sep}}{{#set:Favorite Food={{{Favorite Food|}}} |+sep}}{{#set:HP={{{HP|}}} |+sep}}{{#set:Spirit={{{Spirit|}}} |+sep}} {{#set:Power={{{Power|}}} |+sep}} {{#set:Speed={{{Speed|}}} |+sep}} {{#set:Defense={{{Defense|}}} |+sep}} {{#set:Skill={{{Skill|}}} |+sep}} {{#set:Special Effect={{{Special Effect|}}} |+sep}}  {{#set:Command={{{Command|}}} |+sep}} {{#set:Buster Command={{{Buster Command|}}} |+sep}} {{#set:Anime={{{Anime|}}} |+sep}} {{#set:Game={{{Game|}}} |+sep}} {{#set:English={{{English|}}} |+sep}} {{#set:Japanese={{{Japanese|}}} |+sep}} </includeonly>
|-
+
<noinclude>
|<tt>type</tt> ||[[Property:Is of element|Is of element]], [[Property:Is of element/index|Is of element/index]] || See {{tl|Element index}} for viewing or editing sorting indices
+
Used on [[Yokai]] pages
|-
+
 
|<tt>hp</tt> ||[[Property:Has HP|Has HP]], [[Property:Has HP rank|Has HP rank]], [[Property:Has HP rank/index|Has HP rank/index]] || See <tt><nowiki>{{Rank index}}</nowiki></tt> for viewing or editing sorting indices
+
==Usage==
|-
+
<pre>
|<tt>spirit</tt> ||[[Property:Has spirit|Has spirit]], [[Property:Has spirit rank|Has spirit rank]], [[Property:Has spirit rank/index|Has spirit rank/index]] || See <tt><nowiki>{{Rank index}}</nowiki></tt> for viewing or editing sorting indices
+
{{Yokai Infobox
|-
+
|image=
|<tt>power</tt> ||[[Property:Has power|Has power]], [[Property:Has power rank|Has power rank]], [[Property:Has power rank/index|Has power rank/index]] || See <tt><nowiki>{{Rank index}}</nowiki></tt> for viewing or editing sorting indices
+
|Class=
|-
+
|Rank=
|<tt>speed</tt> ||[[Property:Has speed|Has speed]], [[Property:Has speed rank|Has speed rank]], [[Property:Has speed rank/index|Has speed rank/index]] || See <tt><nowiki>{{Rank index}}</nowiki></tt> for viewing or editing sorting indices
+
|Type=
|-
+
|Japanese Name=
|<tt>defense</tt> ||[[Property:Has defense|Has defense]], [[Property:Has defense rank|Has defense rank]], [[Property:Has defense rank/index|Has defense rank/index]] || See <tt><nowiki>{{Rank index}}</nowiki></tt> for viewing or editing sorting indices
+
|Number=
|-
+
|Time=
|<tt>command</tt> ||[[Property:Has command|Has command]] ||
+
|Evolution=
|-
+
|Favorite Food=
|<tt>buster command type</tt> ||[[Property:Has buster command type|Has buster command type]], [[Property:Has buster command type/index|Has buster command type/index]] || See {{tl|Buster command type index}} for viewing or editing sorting indices
+
|HP=
|-
+
|Spirit=
|<tt>buster command</tt> ||[[Property:Has buster command|Has buster command]] ||
+
|Power=
|-
+
|Speed=
|<tt>skill</tt> ||[[Property:Has skill|Has skill]] ||
+
|Defense=
|-
+
|Skill=
|<tt>special effect</tt> ||[[Property:Has special effect|Has special effect]] ||
+
|Special Effect=
|-
+
|Command=
|<tt>characteristics</tt> ||[[Property:Has characteristic|Has characteristic]] ||
+
|Buster Command=
|-
+
|Anime=
|<tt>other lan</tt> ||[[Property:Has other name|Has other name]], [[Property:Has name|Has name]] ||
+
|Game=
|-
+
|English=
|<tt>game</tt> ||[[Property:Debuts in game|Debuts in game]] ||
+
|Japanese=
|-
+
}}
|<tt>chapter</tt> ||[[Property:Debuts in manga|Debuts in manga]] ||
+
</pre>
|-
+
 
|<tt>episode</tt> ||[[Property:Debuts in anime|Debuts in anime]] ||
+
 
|-
+
|<tt>jva</tt> ||[[Property:Has Japanese voice actor|Has Japanese voice actor]] ||
+
|-
+
|<tt>eva</tt> ||[[Property:Has English voice actor|Has English voice actor]] ||
+
|}
+
  
[[Category:Yokai semantics]][[Category:Infobox templates]]
+
<br><br>
 +
[[Category:Templates]]
 +
</noinclude>

Revision as of 14:37, 26 October 2015

Yokai Infobox
Classification
Class Rank Type
File:Icon.png File:Yokai Rank icon.png [[ ]]
General Information
Japanese Name
Number
Time
Evolution
Favorite Food
Stats
HP Spirit Power Speed Defense
File:Rank icon.png File:Rank icon.png File:Rank icon.png File:Rank icon.png File:Rank icon.png
Combat
Skill
Special Effect
Command
Buster Command
Debut
Anime
Game
Voice Actor
English
Japanese

Used on Yokai pages

Usage

{{Yokai Infobox
|image=
|Class=
|Rank=
|Type=
|Japanese Name=
|Number=
|Time=
|Evolution=
|Favorite Food=
|HP=
|Spirit=
|Power=
|Speed=
|Defense=
|Skill=
|Special Effect=
|Command=
|Buster Command=
|Anime=
|Game=
|English=
|Japanese=
}}