Difference between revisions of "Template:Character Data"

From A3! Wiki
(Created page with "<noinclude> {{#cargo_declare:_table=Characters |firstname=String |surname=String |name_jp=String |name_en=String |image=File |icon=File |age=List (,) of Integer |height=List (...")
 
 
(54 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
{{#cargo_declare:_table=Characters
+
{{#cargo_declare:_table=Charas
 
|firstname=String
 
|firstname=String
 
|surname=String
 
|surname=String
Line 15: Line 15:
 
|imagecolour=String
 
|imagecolour=String
 
|hobby=Wikitext
 
|hobby=Wikitext
 +
|LIME_jp=String
 +
|liked_food=String
 +
|disliked_food=String
 +
|family=String
 +
|strength=String
 +
|weakness=String
 
|troupe=String
 
|troupe=String
 
|voice=String
 
|voice=String
Line 24: Line 30:
 
}}
 
}}
 
</noinclude>
 
</noinclude>
<includeonly>{{#cargo_store:_table=Characters
+
<includeonly>{{#cargo_store:_table=Charas
 
|firstname={{{firstname|}}}
 
|firstname={{{firstname|}}}
 
|surname={{{surname|}}}
 
|surname={{{surname|}}}
Line 37: Line 43:
 
|occupation={{{occupation|}}}
 
|occupation={{{occupation|}}}
 
|motif={{{motif|}}}
 
|motif={{{motif|}}}
|imagecolour={{{imagecolour|}}}
+
|imagecolour={{{imagecolour|}}}  
 
|hobby={{{hobby|}}}
 
|hobby={{{hobby|}}}
 +
|LIME_jp={{{LIME_jp|}}}
 +
|liked_food={{{liked_food|}}}
 +
|disliked_food={{{disliked_food|}}}
 +
|family={{{family|}}}
 +
|strength={{{strength|}}}
 +
|weakness={{{weakness|}}}
 
|troupe={{{troupe|}}}
 
|troupe={{{troupe|}}}
 
|voice={{{voice|}}}
 
|voice={{{voice|}}}
Line 47: Line 59:
 
|troupeorder={{{troupeorder|}}}
 
|troupeorder={{{troupeorder|}}}
 
}}
 
}}
</includeonly>
+
{{#css:
 +
 
 +
.infobox td { padding: 5px 0; }
 +
.spring th {
 +
    background: var(--spring);
 +
}
 +
 
 +
.summer th {
 +
    background: var(--summer);
 +
}
 +
 
 +
.autumn th {
 +
    background: var(--autumn);
 +
}
 +
 
 +
.winter th {
 +
    background: var(--winter);
 +
}
 +
 
 +
.mankai th {
 +
    background: var(--mankai);
 +
}
 +
 
 +
.god-za th {
 +
    background: var(--god-za);
 +
    color: #fff;
 +
}
 +
 
 +
.spring {
 +
    background: var(--spring-light);
 +
    border: 1px solid var(--spring);
 +
}
 +
 
 +
.summer {
 +
    background: var(--summer-light);
 +
    border: 1px solid var(--summer);
 +
}
 +
 
 +
.autumn {
 +
    background: var(--autumn-light);
 +
    border: 1px solid var(--autumn);
 +
}
 +
 
 +
.winter {
 +
    background: var(--winter-light);
 +
    border: 1px solid var(--winter);
 +
}
 +
 
 +
.mankai {
 +
    background: var(--mankai-light);
 +
    border: 1px solid var(--mankai);
 +
}
 +
 
 +
.god-za {
 +
    background: var(--god-za-light);
 +
    border: 1px solid var(--god-za);
 +
}
 +
 
 +
.ui-tabs-panel {
 +
    margin-top: 1em;
 +
}
 +
 
 +
.year {
 +
    margin-top: 0.1em; margin-bottom: 0.1em;
 +
    display: inline-block;
 +
    background-color: var(--mankai-med);
 +
    padding: 0 0.5em 0 0.5em;
 +
    border-radius: 0.5em;
 +
    font-weight: bold;
 +
    vertical-align: top;
 +
}
 +
 
 +
.year-text {
 +
    display: inline-block;
 +
/*  max-width: calc(100% - 5em);*/
 +
}
 +
}}
 +
{|class="infobox {{lc:{{{troupe|}}}}}" cellpadding="3" align="right"
 +
! colspan="2" |  {{PAGENAME}}
 +
|-
 +
| colspan="2" | {{#if: {{{image|}}} | [[File:{{{image}}}|x300px|center]] }}
 +
|-
 +
! colspan="2" | '''Character Profile'''
 +
|-
 +
| '''Name''' || {{{name_jp|}}} (''{{{name_en|}}}'')
 +
|-
 +
| '''Troupe''' || {{ucfirst:{{{troupe|}}}}}
 +
|-
 +
| '''Age''' || {{#if: {{{age|}}} | {{Year| {{{age|}}} }} | }}
 +
|-
 +
| '''Height''' || {{#ifeq: {{#explode: {{{height|}}} |,|1}} | | {{{height|}}} cm | {{Year| {{{height|}}} |height}} }}
 +
|-
 +
| '''Birthday''' || {{#if: {{{birthday|}}} | {{#time: F j | {{{birthday}}} }} | ? }}
 +
|-
 +
| '''Blood Type''' || {{{bloodtype|}}}
 +
|-
 +
| '''Occupation''' || {{#if: {{{occupation|}}} | {{Year| {{{occupation|}}} }} | }}
 +
|-
 +
| '''Motif Flower''' || {{#ifexist: File:{{{surname|}}} {{{firstname|}}} Motif.png | [[File:{{{surname|}}} {{{firstname|}}} Motif.png|20px]] {{{motif|}}} | {{{motif|}}} }}
 +
|-
 +
{{#if: {{{imagecolour|}}} | {{!}}'''Image Colour''' {{!}}{{!}} <div class="{{{imagecolour}}}" style="border:1px solid #fff; border-radius:50%; width: 1.5em; height: 1.5em; vertical-align: middle"></div>|}}
 +
|-
 +
| '''Hobbies'''|| {{{hobby|}}}
 +
|-
 +
| {{#ifexist: File:LIME Icon {{{firstname}}}.png | '''SNS Icon''' | }} || {{#ifexist: File:LIME Icon {{{firstname}}}.png | [[File:LIME Icon {{{firstname}}}.png|30px]] | }}
 +
|-
 +
| '''LIME''' || {{#if: {{{LIME_jp|}}} | {{{LIME_jp|}}} (''{{Character to Troupe | characterlime={{{firstname}}} }}'') | {{Character to Troupe | characterlime={{{firstname}}} }} }}
 +
|-
 +
| '''Inste''' || {{Character to Troupe|characterSNS={{{firstname}}} }}
 +
|-
 +
| '''Favorite Food'''|| {{{liked_food|}}}
 +
|-
 +
| '''Least Favorite Food'''|| {{{disliked_food|}}}
 +
|-
 +
| '''Family'''|| {{{family|}}}
 +
|-
 +
| '''Strength'''|| {{{strength|}}}
 +
|-
 +
| '''Weakness'''|| {{{weakness|}}}
 +
|-
 +
| '''CV''' || {{{voice|}}}
 +
|-
 +
{{#if: {{{signature|}}}|
 +
<tr>
 +
<th colspan="2">Signature'''</th>
 +
</tr>
 +
<tr>
 +
<td colspan="2">[[File:{{{signature}}}|250px|center]]</td>
 +
</tr>}}
 +
{{#if: {{{doodle|}}}|
 +
<tr>
 +
<th colspan="2">Doodle'''</th>
 +
</tr>
 +
<tr>
 +
<td colspan="2">[[File:{{{doodle}}}|250px|center]]</td>
 +
</tr>}}
 +
|}
 +
[[Category:{{PAGENAME}}]]
 +
[[Category:Characters]]
 +
[[Category:{{ucfirst:{{{troupe|}}}}} Troupe Characters]]
 +
</includeonly><noinclude><pre>
 +
{{Character Data
 +
|firstname=
 +
|surname=
 +
|name_jp=
 +
|name_en=
 +
|image=
 +
|icon=
 +
|age=
 +
|height=
 +
|birthday=
 +
|bloodtype=
 +
|occupation=
 +
|motif=
 +
|imagecolour=
 +
|hobby=
 +
|LIME_jp=
 +
|liked_food=
 +
|disliked_food=
 +
|family=
 +
|strength=
 +
|weakness=
 +
|troupe=
 +
|voice=
 +
|signature=
 +
|doodle=
 +
|doodle_en=
 +
|maincast=
 +
|troupeorder=
 +
}}
 +
</pre>
 +
</noinclude>

Latest revision as of 17:26, 9 November 2024

This template defines the table "Charas". View table.

{{Character Data
|firstname=
|surname=
|name_jp=
|name_en=
|image=
|icon=
|age=
|height=
|birthday=
|bloodtype=
|occupation=
|motif=
|imagecolour=
|hobby=
|LIME_jp=
|liked_food=
|disliked_food=
|family=
|strength=
|weakness=
|troupe=
|voice=
|signature=
|doodle=
|doodle_en=
|maincast=
|troupeorder=
}}