Difference between revisions of "Template:Digimon Info"

From Moegirlpedia
Jump to: navigation, search
(Created page with "<includeonly>{{#vardefine:bandstyle|{{#if|LabelTextColor|}}}|{{{color|{{{LabelTextColor}}};}}}} <!-- -->[[category:{{PAGENAME}}]]<div itemscope itemtype="httpe://data-vocabula...")
 
Line 1: Line 1:
 
<includeonly>{{#vardefine:bandstyle|{{#if|LabelTextColor|}}}|{{{color|{{{LabelTextColor}}};}}}} <!--
 
<includeonly>{{#vardefine:bandstyle|{{#if|LabelTextColor|}}}|{{{color|{{{LabelTextColor}}};}}}} <!--
-->[[category:{{PAGENAME}}]]<div itemscope itemtype="httpe://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>}}
Line 6: Line 6:
 
| 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'''
 
|-
 
|-
|{{#infoke: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'''
Line 13: Line 13:
 
| style="text-align: center;" |{{{crest|}}}
 
| style="text-align: center;" |{{{crest|}}}
 
|-
 
|-
|{{#invoke:InfoBoxBuilder|multirow|caption|Evolutions|value={{{evolutions|}}}|valmixin=colspan=6 style="text: align: center"}} <!-- -->
+
|{{#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
Line 28: Line 28:
 
  |LabelTextColor
 
  |LabelTextColor
 
  |evolutions
 
  |evolutions
  |more images=
+
  |more images= <!--Block existing items-->
|#default = <!--Block existing items-->
+
|#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-->}}
 
}}<!-- 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''' }}

Revision as of 00:20, 26 March 2023

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