Template:CharacterRow: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1:
<includeonly>
<tr>
<!-- Image --><td style="padding:0">{{#if:{{{2|}}}|[[File:{{{2Image|}}}|40px|altlink={{{1Name|}}}|linkalt={{{1Name|}}}]]|}}</td>
<!-- Name --><td>{{#if:{{{1|}}}|[[{{{1Name|}}}]]|}}</td>
<!-- Raritytd style="text--><tdalign:center">{{Rarity|{{{3Rarity|}}}}}</td>
<!-- School --><td>{{{7School|}}}</td>
<!-- Role --><td>{{{13Role|}}}</td>
<!-- Type --><td>{{{5Position|}}}</td>
<td style="background-color:{{Color|AttackType|{{{AttackType|}}}}};color:white;font-weight:bold">{{{AttackType|}}}</td>
<!-- Position --><td>{{{6|}}}</td>
<td style="background-color:{{Color|ArmorType|{{{ArmorType|}}}}};color:white;font-weight:bold">{{{ArmorType|}}}</td>
<!-- Uses Cover --><td>{{{14|}}}</td>
<!-- Weapon --><td>{{{4CombatClass|}}}</td>
<td>{{{WeaponType|}}}</td>
<!-- Attack Type --><td style="background-color:{{Color|AttackType|{{{8|}}}}}">{{{8|}}}</td>
<td>{{{UsesCover|}}}</td>
<!-- Armor Type --><td style="background-color:{{Color|ArmorType|{{{9|}}}}}">{{{9|}}}</td>
<!-- Outdoor Affinity --><td data-sort-value="{{AffinityRank|{{{10OutdoorAffinity|}}}}}" style="text-align:center">{{Affinity|{{{10OutdoorAffinity|}}}}}</td>
<!-- City Affinity --><td data-sort-value="{{AffinityRank|{{{11CityTownAffinity|}}}}}" style="text-align:center">{{Affinity|{{{11CityTownAffinity|}}}}}</td>
<!-- Indoor Affinity --><td data-sort-value="{{AffinityRank|{{{12IndoorAffinity|}}}}}" style="text-align:center">{{Affinity|{{{12IndoorAffinity|}}}}}</td>
</tr>
</includeonly>
Line 20:
<templatedata>
{
"params": {
"description": "Template for rows in a CharacterTable.",
"paramsName": {
"description": "Character's first name.",
"1": {
"labelexample": "NameShiroko",
"type": "string",
"description": "Name of character, e.g. Shiroko, Yuuka.",
"required": true
"type": "string"
},
},
"2Rarity": {
"description": "Character's rarity as number of stars.",
"label": "Image",
"example": "3",
"description": "Filename of character thumbnail.",
"type": "stringnumber",
"required": true
},
},
"3": {
"Image": {
"label": "Rarity",
"description": "BaseFile rarity,containing e.g.character's 3*thumbnail.",
"example": "Shiroko.png",
"type": "string"
"type": "wiki-file-name",
},
"required": true
"4": {
},
"label": "Weapon",
"School": {
"description": "Character's weapon type, e.g. AR, SMG.",
"description": "Character's school.",
"type": "string"
"example": "Abydos",
},
"type": "string",
"5": {
"suggested": true
"label": "Type",
},
"description": "Type of character, e.g. Striker, Special.",
"Role": {
"type": "string"
"description": "Character's role (one of Attacker, Tank, Support, Healer).",
},
"example": "Attacker",
"6": {
"labeltype": "Positionstring",
"suggested": true
"description": "Position of character in battle, e.g. Front, Back.",
},
"type": "string"
"Position": {
},
"description": "Character's position.",
"7": {
"labelexample": "SchoolMiddle",
"type": "string",
"description": "School character belongs to, e.g. Abydos, Gehenna.",
"suggested": true
"type": "string"
},
},
"8AttackType": {
"description": "Character's attack type (one of Explosive, Mystic, Penetration).",
"label": "Attack Type",
"example": "Explosive",
"description": "Character's attack type, e.g. Explosion, Penetration, Mystic.",
"type": "string",
"suggested": true
},
},
"9": {
"ArmorType": {
"label": "Armor Type",
"description": "Character's armor type, e.g.(one of Light Armor, Heavy Armor, Mystic ArmorSpecial).",
"example": "Light",
"type": "string"
"type": "string",
},
"suggested": true
"10": {
},
"label": "Outdoor Affinity",
"CombatClass": {
"description": "Character affinity for outdoor combat, e.g. S, A, B, C, D.",
"description": "Character's combat class (one of Striker, Special).",
"type": "string"
"example": "Striker",
},
"type": "string",
"11": {
"suggested": true
"label": "City Affinity",
},
"description": "Character affinity for city/town combat, e.g. S, A, B, C, D.",
"WeaponType": {
"type": "string"
"description": "Character's weapon type.",
},
"example": "AR",
"12": {
"type": "string",
"label": "Indoor Affinity",
"suggested": true
"description": "Character affinity for indoor combat, e.g. S, A, B, C, D.",
},
"type": "string"
"UsesCover": {
},
"description": "Whether character uses cover or not (one of Yes, No).",
"13": {
"labelexample": "RoleYes",
"type": "string",
"description": "Character's role, e.g. Attacker, Tank, Support, Healer.",
"suggested": true
"type": "string"
},
},
"OutdoorAffinity": {
"14": {
"description": "Character's affinity for outdoor combat (one of S, A, B, C, D).",
"label": "Uses Cover?",
"example": "S",
"description": "Whether the character uses cover during battle, e.g. Yes, No.",
"type": "string",
"suggested": true
}
},
}
"CityTownAffinity": {
"description": "Character's affinity for city/town combat (one of S, A, B, C, D).",
"example": "B",
"type": "string",
"suggested": true
},
"IndoorAffinity": {
"description": "Character's affinity for indoor combat (one of S, A, B, C, D).",
"example": "D",
"type": "string",
"suggested": true
}
},
"description": "Character row template.",
"format": "inline"
}
</templatedata>