Jump to content

Template:Character Infobox: Difference between revisions

From Pact Wiki
MugaSofer (talk | contribs)
No edit summary
MugaSofer (talk | contribs)
migrated to new syntax
Line 1: Line 1:
{{#switch: {{NAMESPACE}}
<infobox layout="stacked">
| = [[Category:Characters|{{var|{{{Name|}}}|{{SUBPAGENAME}}}}]]<!--
  <title source="Name">
-->{{#switch: {{int:Siteid}}
    <default>{{PAGENAME}}</default>
| anime = [[Category:{{getCategory|Characters}}|{{SUBPAGENAME}}]]
  </title>
|
  <image source="Image">
}}
    <caption source="caption1"/>
|
  </image>
  <data source="imagecaption"/>
  <title source="title">
    <default>{{PAGENAME}}</default>
  </title>
  <data source="Alias">
    <label>'''Alias'''</label>
  </data>
  <data source="Alias 2"/>
  <data source="Alias 3"/>
  <data source="Age">
    <label>'''Age'''</label>
  </data>
  <data source="Gender">
    <label>'''Gender'''</label>
  </data>
  <data source="Status">
    <label>'''Status'''</label>
  </data>
  <data source="Type">
    <label>'''Type'''</label>
  </data>
  <data source="Type 2"/>
  <data source="Type 3"/>
  <data source="Type3"/>
  <data source="Type 4"/>
  <data source="Type4"/>
  <data source="Type 5"/>
  <data source="Classification">
    <label>'''Classification'''</label>
  </data>
  <data source="Classification 2"/>
  <data source="Classification 3"/>
  <data source="Classification 4"/>
  <data source="Classification 5"/>
  <data source="Affiliation">
    <label>'''Affiliation'''</label>
  </data>
  <data source="Affiliation 2"/>
  <data source="Affiliation 3"/>
  <data source="Affiliation 4"/>
  <data source="Affiliation 5"/>
  <data source="Family">
    <label>'''Family'''</label>
  </data>
  <data source="Family 2"/>
  <data source="Family 3"/>
  <data source="Family 4"/>
  <data source="Family 5"/>
  <data source="Occupation">
    <label>'''Occupation'''</label>
  </data>
  <data source="Occupation 2"/>
  <data source="Occupation 3"/>
  <data source="Occupation 4"/>
  <data source="Occupation 5"/>
  <data source="Chapter">
    <label>'''First Appearance'''</label>
  </data>
</infobox>
<noinclude>
== Usage & preview ==
Type in this:
 
<pre>
{{Character Infobox/Draft
|Name=
|Image=
|imagecaption=
|title=
|Alias=
|Alias 2=
|Alias 3=
|Age=
|Gender=
|Status=
|Type=
|Type 2=
|Type 3=
|Type3=
|Type 4=
|Type4=
|Type 5=
|Classification=
|Classification 2=
|Classification 3=
|Classification 4=
|Classification 5=
|Affiliation=
|Affiliation 2=
|Affiliation 3=
|Affiliation 4=
|Affiliation 5=
|Family=
|Family 2=
|Family 3=
|Family 4=
|Family 5=
|Occupation=
|Occupation 2=
|Occupation 3=
|Occupation 4=
|Occupation 5=
|Chapter=
}}
}}
{| class="infobox" style="font-size:88%; line-height: 1.5em; width:300px;"
 
|-
</pre>
! colspan="2" style="background-color:#1A2421; color:#ffffff; font-size:120%; padding:0.5em;" | '''{{{Name|{{PAGENAME}}}}}'''
 
|- style="text-align:center;"
to see this:
{{!}}-
 
{{!}} colspan=2 class="imagecell" {{!}}
{{Character Infobox/Draft
{{#if:{{{Image|}}}
|Name=This is a test
| [[Image:{{{Image|}}}|{{var|{{{image size|}}}|300px}}|{{var|{{{imagecaption|}}}|{{var|{{{title|}}}|{{PAGENAME}}}}}}]]
|Image=This is a test
| {{#if:{{{Image|}}}|{{{Image|}}}| }}
|image size=This is a test
|imagecaption=This is a test
|title=This is a test
|Alias=This is a test
|Alias 2=This is a test
|Alias 3=This is a test
|Age=This is a test
|Gender=This is a test
|Status=This is a test
|Type=This is a test
|Type 2=This is a test
|Type 3=This is a test
|Type3=This is a test
|Type 4=This is a test
|Type4=This is a test
|Type 5=This is a test
|Classification=This is a test
|Classification 2=This is a test
|Classification 3=This is a test
|Classification 4=This is a test
|Classification 5=This is a test
|Affiliation=This is a test
|Affiliation 2=This is a test
|Affiliation 3=This is a test
|Affiliation 4=This is a test
|Affiliation 5=This is a test
|Family=This is a test
|Family 2=This is a test
|Family 3=This is a test
|Family 4=This is a test
|Family 5=This is a test
|Occupation=This is a test
|Occupation 2=This is a test
|Occupation 3=This is a test
|Occupation 4=This is a test
|Occupation 5=This is a test
|Chapter=This is a test
}}
}}
|-
! colspan="2" style="background-color:#1A2421; color:#FFFFFF;" | Personal Info
|-


{{#if: {{{Alias|}}} | {{!}} '''Alias'''
 
{{!}} {{#if: {{{Alias 2|}}} | * {{{Alias}}}
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]
* {{{Alias 2}}} | {{{Alias}}} }}
</noinclude>
{{#if: {{{Alas 3|}}} | * {{{Alias 3}}} | }} | }}
|-
{{#if: {{{Age|}}} | {{!}} style="width:30%;" {{!}} '''Age'''
{{!}} style="width:70%;" {{!}} {{{Age}}} | }}
|-
{{#if: {{{Gender|}}} | {{!}} '''Gender'''
{{!}} {{{Gender}}} | }}
|-
{{#if: {{{Status|}}} | {{!}} '''Status'''
{{!}} {{{Status}}} | }}
|-
{{#if: {{{Type|}}} | {{!}} '''Type'''
{{!}} {{#if: {{{Type 2|}}} | * {{{Type}}}
* {{{Type 2}}} | {{{Type}}} }}
{{#if: {{{Type 3|}}} | * {{{Type3}}} | }}
{{#if: {{{Type 4|}}} | * {{{Type4}}} | }}
{{#if: {{{Type 5|}}} | * {{{Type 5}}} | }} | }}
|-
{{#if: {{{Classification|}}} | {{!}} '''Classification'''
{{!}} {{#if: {{{Classification 2|}}} | * {{{Classification}}}
* {{{Classification 2}}} | {{{Classification}}} }}
{{#if: {{{Classification 3|}}} | * {{{Classification 3}}} | }}
{{#if: {{{Classification 4|}}} | * {{{Classification 4}}} | }}
{{#if: {{{Classification 5|}}} | * {{{Classification 5}}} | }} | }}
|-
{{#if: {{{Affiliation|}}} | {{!}} '''Affiliation'''
{{!}} {{#if: {{{Affiliation 2|}}} | * {{{Affiliation}}}
* {{{Affiliation 2}}} | {{{Affiliation}}} }}
{{#if: {{{Affiliation 3|}}} | * {{{Affiliation 3}}} | }}
{{#if: {{{Affiliation 4|}}} | * {{{Affiliation 4}}} | }}
{{#if: {{{Affiliation 5|}}} | * {{{Affiliation 5}}} | }} | }}
|-
{{#if: {{{Family|}}} | {{!}} '''Family'''
{{!}} {{#if: {{{Family 2|}}} | * {{{Family}}}
* {{{Family 2}}} | {{{Family}}} }}
{{#if: {{{Family 3|}}} | * {{{Family 3}}} | }}
{{#if: {{{Family 4|}}} | * {{{Family 4}}} | }}
{{#if: {{{Family 5|}}} | * {{{Family 5}}} | }} | }}
|-
{{#if: {{{Occupation|}}} | {{!}} '''Occupation'''
{{!}} {{#if: {{{Occupation 2|}}} | * {{{Occupation}}}
* {{{Occupation 2}}} | {{{Occupation}}} }}
{{#if: {{{Occupation 3|}}} | * {{{Occupation 3}}} | }}
{{#if: {{{Occupation 4|}}} | * {{{Occupation 4}}} | }}
{{#if: {{{Occupation 5|}}} | * {{{Occupation 5}}} | }} | }}
|-
! colspan="2" style="background-color:#1A2421; color:#FFFFFF;" | Media
|-
! colspan="2" style="text-align:center;"| Debuts
|-
{{#if: {{{Chapter|}}} | {{!}} '''Chapter'''
{{!}} {{{Chapter}}} | }}
|-
|}
<noinclude><br style="clear:both;" />
{{documentation}}
</noinclude><noinclude>
[[Category:Infobox templates]]</noinclude>

Revision as of 13:23, June 14, 2020

<infobox layout="stacked">

 <title source="Name">
   <default>Character Infobox</default>
 </title>
 <image source="Image">

</image>

<title source="title"> <default>Character Infobox</default> </title> <label>Alias</label> <label>Age</label> <label>Gender</label> <label>Status</label> <label>Type</label> <label>Classification</label> <label>Affiliation</label> <label>Family</label> <label>Occupation</label> <label>First Appearance</label> </infobox>

Usage & preview

Type in this:

{{Character Infobox/Draft
|Name=
|Image=
|imagecaption=
|title=
|Alias=
|Alias 2=
|Alias 3=
|Age=
|Gender=
|Status=
|Type=
|Type 2=
|Type 3=
|Type3=
|Type 4=
|Type4=
|Type 5=
|Classification=
|Classification 2=
|Classification 3=
|Classification 4=
|Classification 5=
|Affiliation=
|Affiliation 2=
|Affiliation 3=
|Affiliation 4=
|Affiliation 5=
|Family=
|Family 2=
|Family 3=
|Family 4=
|Family 5=
|Occupation=
|Occupation 2=
|Occupation 3=
|Occupation 4=
|Occupation 5=
|Chapter=
}}

to see this:

<infobox layout="stacked">

 <title source="Name">
   <default>Character Infobox</default>
 </title>
 <image source="Image">
</image> <title source="title"> <default>Character Infobox</default> </title> <label>Alias</label> <label>Age</label> <label>Gender</label> <label>Status</label> <label>Type</label> <label>Classification</label> <label>Affiliation</label> <label>Family</label> <label>Occupation</label> <label>First Appearance</label> </infobox> Click here to refresh the preview above