Template:CharacterCard: Difference between revisions
(More options, added data caching) |
mNo edit summary |
||
Line 87: | Line 87: | ||
} |
} |
||
</templatedata> |
</templatedata> |
||
Reminder that [[Template:CharacterCard/style.css|template css]] is unified with [[Template:Team]] and loaded through import in Common.css to allow for wider style scope needed for darkmode styling. |
|||
==Usage== |
==Usage== |
||
<code><nowiki>{{CharacterCard|Name[|100px][|rank=N][|level=N][|assist=][|attack=][role=]}}</nowiki></code> |
<code><nowiki>{{CharacterCard|Name[|100px][|rank=N][|level=N][|assist=][|attack=][role=]}}</nowiki></code> |
Revision as of 05:39, 15 July 2023
Outputs an image of the character that links back to their page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Character | 1 | Character wikiname (same as the name of their page)
| Page name | required |
Size | 2 | Image size with statement format corresponding to MediaWiki File size style (''32px'' for set width, ''x32px'' for set height, ''32x32px'' for arbitrary scaling). Sizes under 80px use small portrait version
| String | optional |
Character rank | rank | Numbers 1~5 are displayed as character ranks, 6+ is treated as "UW present" tag
| Number | optional |
Character level | level | Displays set level
| Number | optional |
Assistant character | assist | Displays "A" tag for character rented from another player | Boolean | optional |
Attack type | attack | Display arbitrary damage type border
| String | optional |
Combat role | role | Display arbitrary role
| String | optional |
Reminder that template css is unified with Template:Team and loaded through import in Common.css to allow for wider style scope needed for darkmode styling.
Usage
{{CharacterCard|Name[|100px][|rank=N][|level=N][|assist=][|attack=][role=]}}
Options
100px
: image size with statement format corresponding to MediaWiki File size style (32px for set width, x32px for set height, 32x32px for arbitrary scaling)
Examples
Rank:
Rank unset:
Assist:
Attack:
Role:
Role unset:
Kitchen sink: