Template:CharacterRow: Difference between revisions

From Blue Archive Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<tr>
<tr>
<!-- Image --><td style="padding:0">{{#if:{{{2|}}}|[[File:{{{2}}}|40px|alt={{{1|}}}|link={{{1|}}}]]|}}</td>
<td style="padding:0">[[File:{{{Image|}}}|40px|link={{{Name|}}}|alt={{{Name|}}}]]</td>
<!-- Name --><td>{{#if:{{{1|}}}|[[{{{1}}}]]|}}</td>
<td>[[{{{Name|}}}]]</td>
<!-- Rarity --><td>{{Rarity|{{{3|}}}}}</td>
<td style="text-align:center">{{Rarity|{{{Rarity|}}}}}</td>
<!-- School --><td>{{{7|}}}</td>
<td>{{{School|}}}</td>
<!-- Role --><td>{{{13|}}}</td>
<td>{{{Role|}}}</td>
<!-- Type --><td>{{{5|}}}</td>
<td>{{{Position|}}}</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>{{{4|}}}</td>
<td>{{{CombatClass|}}}</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|{{{10|}}}}}" style="text-align:center">{{Affinity|{{{10|}}}}}</td>
<td data-sort-value="{{AffinityRank|{{{OutdoorAffinity|}}}}}" style="text-align:center">{{Affinity|{{{OutdoorAffinity|}}}}}</td>
<!-- City Affinity --><td data-sort-value="{{AffinityRank|{{{11|}}}}}" style="text-align:center">{{Affinity|{{{11|}}}}}</td>
<td data-sort-value="{{AffinityRank|{{{CityTownAffinity|}}}}}" style="text-align:center">{{Affinity|{{{CityTownAffinity|}}}}}</td>
<!-- Indoor Affinity --><td data-sort-value="{{AffinityRank|{{{12|}}}}}" style="text-align:center">{{Affinity|{{{12|}}}}}</td>
<td data-sort-value="{{AffinityRank|{{{IndoorAffinity|}}}}}" style="text-align:center">{{Affinity|{{{IndoorAffinity|}}}}}</td>
</tr>
</tr>
</includeonly>
</includeonly>
Line 20: Line 20:
<templatedata>
<templatedata>
{
{
"params": {
"description": "Template for rows in a CharacterTable.",
"params": {
"Name": {
"description": "Character's first name.",
"1": {
"label": "Name",
"example": "Shiroko",
"type": "string",
"description": "Name of character, e.g. Shiroko, Yuuka.",
"required": true
"type": "string"
},
},
"2": {
"Rarity": {
"description": "Character's rarity as number of stars.",
"label": "Image",
"example": "3",
"description": "Filename of character thumbnail.",
"type": "string"
"type": "number",
"required": true
},
},
"3": {
"Image": {
"label": "Rarity",
"description": "Base rarity, e.g. 3*.",
"description": "File containing character's 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": {
"label": "Position",
"type": "string",
"suggested": true
"description": "Position of character in battle, e.g. Front, Back.",
},
"type": "string"
"Position": {
},
"description": "Character's position.",
"7": {
"label": "School",
"example": "Middle",
"type": "string",
"description": "School character belongs to, e.g. Abydos, Gehenna.",
"suggested": true
"type": "string"
},
},
"8": {
"AttackType": {
"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"
"type": "string",
"suggested": true
},
},
"9": {
"ArmorType": {
"label": "Armor Type",
"description": "Character's armor type, e.g. Light Armor, Heavy Armor, Mystic Armor.",
"description": "Character's armor type (one of Light, Heavy, Special).",
"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": {
"label": "Role",
"example": "Yes",
"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"
"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>
</templatedata>

Revision as of 16:08, 20 February 2021


Character row template.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
NameName

Character's first name.

Example
Shiroko
Stringrequired
RarityRarity

Character's rarity as number of stars.

Example
3
Numberrequired
ImageImage

File containing character's thumbnail.

Example
Shiroko.png
Filerequired
SchoolSchool

Character's school.

Example
Abydos
Stringsuggested
RoleRole

Character's role (one of Attacker, Tank, Support, Healer).

Example
Attacker
Stringsuggested
PositionPosition

Character's position.

Example
Middle
Stringsuggested
AttackTypeAttackType

Character's attack type (one of Explosive, Mystic, Penetration).

Example
Explosive
Stringsuggested
ArmorTypeArmorType

Character's armor type (one of Light, Heavy, Special).

Example
Light
Stringsuggested
CombatClassCombatClass

Character's combat class (one of Striker, Special).

Example
Striker
Stringsuggested
WeaponTypeWeaponType

Character's weapon type.

Example
AR
Stringsuggested
UsesCoverUsesCover

Whether character uses cover or not (one of Yes, No).

Example
Yes
Stringsuggested
OutdoorAffinityOutdoorAffinity

Character's affinity for outdoor combat (one of S, A, B, C, D).

Example
S
Stringsuggested
CityTownAffinityCityTownAffinity

Character's affinity for city/town combat (one of S, A, B, C, D).

Example
B
Stringsuggested
IndoorAffinityIndoorAffinity

Character's affinity for indoor combat (one of S, A, B, C, D).

Example
D
Stringsuggested