Difference between revisions of "Template:UserCharacterChecklist"
Jump to navigation
Jump to search
(added color coding feature to group characters; small optimization) |
m (i actually forgot to remove sorting) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| class="wikitable | <includeonly> | ||
{| class="wikitable" style="width: 50%; text-align: center;" | |||
!Characters | !Characters | ||
!☆3 | !☆3 | ||
Line 13: | Line 14: | ||
{{ #if: {{ #pos: {{ #var: character }} | GroupColor }} | {{ #if: {{ #pos: {{ #var: character }} | GroupColor }} | ||
| {{ #vardefine: setColor|{{ #var: flags }} }} | | {{ #vardefine: setColor|{{ #var: flags }} }} | ||
| {{!}} style="background-color: {{ #if: {{ #var: setColor }} | {{ #var: setColor }} | inherit }};" {{!}} [[ {{ #var: character }} |<span style="color:black; font-weight: bold;">{{ #var: character }}</span> ]]{{ | | {{!}} style="background-color: {{ #if: {{ #var: setColor }} | {{ #var: setColor }} | inherit }};" {{!}} [[ {{ #var: character }} |<span style="color:black; font-weight: bold;">{{ #var: character }}</span> ]]{{ | ||
#loop: star | #loop: star | ||
Line 34: | Line 32: | ||
}} | }} | ||
|} | |} | ||
</includeonly><noinclude> | |||
=Template Usage= | |||
The template is fairly simple to use, you just have to make sure that the variables are CASE-SENSITIVE; otherwise you will end up with a broken template. | |||
This template is only used to checklist the characters you do have in the game, unlike any other PAD/Gacha styled games, this can be a collect-a-thon. | |||
==To call the template== | |||
<nowiki> | |||
{{UserCharacterChecklist | |||
<<< stuff >>> | |||
}} | |||
</nowiki> | |||
==The defined variables== | |||
All attributes has to start with "c", any attribute that does not start with "c" will be ignored based on the args loop. | |||
<nowiki> | |||
|c<character name>=<do have>/<don't have> | |||
eg. | |||
|cYoul=34 | |||
|cSitri=3/4 | |||
|cMoritaka=4/35 | |||
|cJebb=/35 | |||
---------- | |||
|cGroupColor<type>=<color> | |||
eg. | |||
|cGroupColorFire=red | |||
</nowiki> | |||
==Setting up the group colors== | |||
<nowiki> | |||
{{UserCharacterChecklist | |||
|cGroupColorFire=lightcoral | |||
}} | |||
</nowiki> | |||
This will set any future character the set group color. To set a new color for other characters, it has to be placed before the characters are defined. | |||
<nowiki> | |||
eg. | |||
|cGroupColorWater=blue | |||
|cSomeCharacter=345 | |||
|cGroupColorWhatever=... | |||
</nowiki> | |||
* Do notice that '''#''' will break the format when being parsed, so either use '''Color(r, g, b)''' or '''BY THE NAME COLOR''' by using a html color code table at whatever page it has. | |||
== Additional Notes == | |||
* This template has no way of verifying if the character name is typed correctly. You are responsible to type the names correctly. | |||
* This template has no way of verifying if the color is correctly set. If wrong, the template will break. | |||
* This template has no way of adding the characters automatically. Make sure to update properly when needed | |||
</noinclude> |
Latest revision as of 06:03, 28 April 2017
Template Usage
The template is fairly simple to use, you just have to make sure that the variables are CASE-SENSITIVE; otherwise you will end up with a broken template.
This template is only used to checklist the characters you do have in the game, unlike any other PAD/Gacha styled games, this can be a collect-a-thon.
To call the template
{{UserCharacterChecklist <<< stuff >>> }}
The defined variables
All attributes has to start with "c", any attribute that does not start with "c" will be ignored based on the args loop.
|c<character name>=<do have>/<don't have> eg. |cYoul=34 |cSitri=3/4 |cMoritaka=4/35 |cJebb=/35 ---------- |cGroupColor<type>=<color> eg. |cGroupColorFire=red
Setting up the group colors
{{UserCharacterChecklist |cGroupColorFire=lightcoral }}
This will set any future character the set group color. To set a new color for other characters, it has to be placed before the characters are defined.
eg. |cGroupColorWater=blue |cSomeCharacter=345 |cGroupColorWhatever=...
- Do notice that # will break the format when being parsed, so either use Color(r, g, b) or BY THE NAME COLOR by using a html color code table at whatever page it has.
Additional Notes
- This template has no way of verifying if the character name is typed correctly. You are responsible to type the names correctly.
- This template has no way of verifying if the color is correctly set. If wrong, the template will break.
- This template has no way of adding the characters automatically. Make sure to update properly when needed