Template:Character Profile: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#invoke:Characters|profile|{{{1|{{PAGENAME}}}}}}}
<table class="wikitable">
</includeonly><noinclude>
{{#if:{{{strengths|}}}|
{{Character Profile|Special Week}}
<tr>
<th>Strengths</th>
<td>{{{strengths}}}</td>
</tr>
}}
{{#if:{{{weaknesses|}}}|
<tr>
<th>Weaknesses</th>
<td>{{{weaknesses}}}</td>
</tr>
}}
{{#if:{{{ears|}}}|
<tr>
<th>Ears</th>
<td>{{{ears}}}</td>
</tr>
}}
{{#if:{{{tail|}}}|
<tr>
<th>Tail</th>
<td>{{{tail}}}</td>
</tr>
}}
{{#if:{{{family|}}}|
<tr>
<th>Family</th>
<td>{{{family}}}</td>
</tr>
}}
{{#if:{{{my_rule|}}}|
<tr>
<th>My Rule</th>
<td>"{{{my_rule}}}"</td>
</tr>
}}
{{#if:{{{phone_background|}}}|
<tr>
<th>Phone Background</th>
<td>{{{phone_background}}}</td>
</tr>
}}
{{#if:{{{before_a_race|}}}|
<tr>
<th>Before a Race</th>
<td>{{{before_a_race}}}</td>
</tr>
}}
{{#if:{{{good_subject|}}}|
<tr>
<th>Good Subject</th>
<td>{{{good_subject}}}</td>
</tr>
}}
{{#if:{{{good_subject|}}}|
<tr>
<th>Secret Pride</th>
<td>{{{secret_pride}}}</td>
</tr>
}}
{{#if:{{{frequent_purchase|}}}|
<tr>
<th>Frequent Purchase</th>
<td>{{{frequent_purchase}}}</td>
</tr>
}}
{{#if:{{{secret1|}}}{{{secret2}}}|
<tr>
<th rowspan={{#if:{{{secret2|}}}|2|1}}>Secrets</th>
<td>{{{secret1}}}</td>
</tr>
{{#if:{{{secret2|}}}|
<tr>
<td>{{{secret2}}}</td>
</tr>
}}
}}
</table>
</includeonly>
 
<noinclude>
{{Character Profile
|strengths=[strengths]
|weaknesses=[weaknesses]
|ears=[ears]
|tail=[tail]
|family=[family]
|my_rule=[my_rule]
|phone_background=[phone_background]
|before_a_race=[before_a_race]
|good_subject=[good_subject]
|secret_pride=[secret_pride]
|frequent_purchase=[frequent_purchase]
|secret1=[secret1]
|secret2=[secret2]
}}
 
<templatedata>
{
"params": {
"strengths": {
"label": "Strengths",
"type": "string"
},
"weaknesses": {
"label": "Weaknesses",
"type": "string"
},
"ears": {
"label": "Ears",
"type": "string"
},
"tail": {
"label": "Tail",
"type": "string"
},
"my_rule": {
"label": "My Rule",
"type": "string",
"description": "(quoted automatically)"
},
"phone_background": {
"label": "Phone Background",
"type": "string"
},
"before_a_race": {
"label": "Before a Race",
"type": "string"
},
"good_subject": {
"label": "Good Subject",
"type": "string"
},
"secret_pride": {
"label": "Secret Pride",
"type": "string"
},
"frequent_purchase": {
"label": "Frequent Purchase",
"type": "string"
},
"secret1": {
"label": "Secret #1",
"type": "string"
},
"secret2": {
"label": "Secret #2",
"type": "string"
},
"family": {
"label": "Family",
"type": "string"
}
},
"description": "Template for character profile blurbs table",
"format": "block",
"paramOrder": [
"strengths",
"weaknesses",
"ears",
"tail",
"family",
"my_rule",
"phone_background",
"before_a_race",
"good_subject",
"secret_pride",
"frequent_purchase",
"secret1",
"secret2"
]
}
</templatedata>
</noinclude>
</noinclude>