Difference between revisions of "Template:Digimon Info"

From Moegirlpedia
Jump to: navigation, search
m
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:bandstyle|{{#if|LabelTextColor|}}}|{{{color|{{{LabelTextColor}}};}}}} <!--
+
<includeonly>{{#vardefine:bandstyle|{{#if:{{{LabelTextColor|}}}|color:{{{LabelTextColor}}};}}}} <!--
-->[[category:{{PAGENAME}}]]<div itemscope itemtype="https://data-vocabulary.org/Person" class="infotemplatebox" style="background: none; border:0">
+
-->[[category:{{PAGENAME}}]]<div itemscope itemtype="https://data-vocabulary.org/Person" class="infotemplatebox" style="background:none; border:0">
 
{|border=0 cellpadding="0" cellspagcing="0" style="width: 100%;" class="wikitable"
 
{|border=0 cellpadding="0" cellspagcing="0" style="width: 100%;" class="wikitable"
|colspan="4" style="text-align: center: |{{#if: {{{image|}}}|<span itemprop="photo">[[Image:{{{image}}}|280px]]</span>|Huh?!<br>This article lacks an image,<br>it needs to be added...{{articleCategory|No profile picture}}}}{{#if:{{{imgdes|}}}|<br /><span style="text-align: center;">{{{imgdes}}}</span>}}
+
|colspan="4" style="text-align: center" |{{#if:{{{image|}}}|<span itemprop="photo">[[Image:{{{image}}}|280px]]</span>|Huh?!<br>This article lacks an image,<br>it needs to be added...{{ArticleCategory|No profile picture}}}}{{#if:{{{imgdes|}}}|<br /><span style="text-align: center;">{{{imgdes}}}</span>}}
 
|-
 
|-
 
| colspan=4 style="text-align: center; background-color:{{{LabelBackgroundColor|#deede0}}}; {{#var:bandstyle}}" |'''Basic Information'''
 
| colspan=4 style="text-align: center; background-color:{{{LabelBackgroundColor|#deede0}}}; {{#var:bandstyle}}" |'''Basic Information'''
 
|-
 
|-
|{{#invoke:InfoBoxBuilder|multirow|caption=Voice Actor|trylink=1|linkcat=1|value={{{voice actor|}}}|valmixin=colspan=3 style="text-align: center"}}
+
{{#invoke:InfoBoxBuilder|multirow|caption=Voice Actor|trylink=1|linkcat=1|value={{{voice actor|}}}|valmixin=colspan=3 style="text-align: center"}}
 
|-
 
|-
! '''Partner'''
+
! Partner
| style="text-align: center;" | {{{partner|}}}
+
| style="text-align: center" | {{{partner|}}}
! '''Crest'''
+
! Crest
| style="text-align: center;" |{{{crest|}}}
+
| style="text-align: center" |{{{crest|}}}
 
|-
 
|-
|{{#invoke:InfoBoxBuilder|multirow|caption|Evolutions|value={{{evolutions|}}}|valmixin=colspan=6 style="text-align: center"}} <!--Note that there should be no table separator [|-] here. The separator is below.
+
{{#invoke:InfoBoxBuilder|multirow|caption=Evolutions|value={{{evolutions|}}}|valmixin=colspan=6 style="text-align: center"}} <!--Note that there should be no table separator [|-] here, the separator is below.
 
-->{{#forargs:
 
-->{{#forargs:
 
| key
 
| key
 
| val
 
| val
 
|<nowiki />
 
|<nowiki />
{{switch: {{#var:key}}
+
{{#switch: {{#var:key}}
 
  |image
 
  |image
 
  |imgdes
 
  |imgdes
 
  |voice actor
 
  |voice actor
|partner
 
|crest
 
 
  |related digimon
 
  |related digimon
 
  |LabelBackgroundColor
 
  |LabelBackgroundColor
 
  |LabelTextColor
 
  |LabelTextColor
 +
|partner
 +
|crest
 
  |evolutions
 
  |evolutions
 
  |more images= <!--Block existing items-->
 
  |more images= <!--Block existing items-->
 
  |#default =
 
  |#default =
  {{#if {{#var: val}}
+
  {{#if: {{#var: val}}
|{{!}}-
+
  |{{!}}-
  ! {{#var: key}}
+
  ! {{#var: key}}
  {{!}} colspan=3 style="text-align: center" {{!}} {{#var: val}}
+
  {{!}} colspan=3 style="text-align: center" {{!}} {{#var: val}}
| <!-- new item without content, not displayed-->}}
+
  |<!-- new item without content, not displayed-->}}
 
}}<!-- end switch -->
 
}}<!-- end switch -->
}} <!--end forargs -->
+
}}<!--end forargs -->
 
|-
 
|-
 
  {{#if: {{{related digimon|}}} |
 
  {{#if: {{{related digimon|}}} |
! colspan="4" style="backgroundcolor:{{{LabelBackgroundColor|#E0FFFF}}};{{#var:bandstyle}}"
+
! colspan="4" style="backgroundcolor:{{{LabelBackgroundColor|#E0FFFF}}};{{#var:bandstyle}}" {{!}} '''Related Digimon''' }}
{{!}} '''Related Digimon''' }}
 
 
|-
 
|-
 
{{ #if: {{{related digimon|}}} |
 
{{ #if: {{{related digimon|}}} |
 
! colspan="4" {{!}} {{{related digimon|}}}
 
! colspan="4" {{!}} {{{related digimon|}}}
 
}}
 
}}
|}
+
|}</div></includeonly><noinclude>{{doc}}[[zh:模板:数码宝贝系列数码兽]]</noinclude>
</div></includeonly><noinclude>{{doc}}</noinclude>
 

Latest revision as of 02:17, 16 April 2023

Template-info.svg Template Documentation  [Create] [Refresh]