Difference between revisions of "Template:UserCharacterChecklist"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
m (Undo revision 2673 by Ptown2 (talk) Loops.php fixed and loop limit increased)
(added color coding feature to group characters; small optimization)
Line 1: Line 1:
{{#vardefine:disabled|style="background-color: black;" {{!}} -}}{{#vardefine:checkmark|style="background-color: lime;" {{!}} ✔}}{{#vardefine:notmark|style="background-color: red;" {{!}} ✘}}
{| class="wikitable sortable" style="width: 50%; text-align: center;"
{| class="wikitable sortable" style="width: 50%; text-align: center;"
!Characters
!Characters
Line 6: Line 5:
!☆5
!☆5
|-
|-
{{#vardefine: setColor|inherit}}
{{
{{
   #forargs: c
   #forargs: c
   | key
   | character
   | value
   | flags
   | <nowiki/>
   | <nowiki/>
   {{!}}{{ #var:key }}{{
   {{ #if: {{ #pos: {{ #var: character }} | GroupColor }}
    #loop: star
    | {{ #vardefine: setColor|{{ #var: flags }} }}
    | 3
      {{!}}-
    | 3
      {{!}}{{!}}
    | {{!}}{{!}}{{
      {{!}}-
      #if: {{ #pos:{{ #explode:{{ #var:value }}|/|0 }} | {{ #var: star }} }}
    | {{!}} style="background-color: {{ #if: {{ #var: setColor }} | {{ #var: setColor }} | inherit }};" {{!}} [[ {{ #var: character }} |<span style="color:black; font-weight: bold;">{{ #var: character }}</span> ]]{{
      |
      #loop: star
      {{ #var:checkmark }}
      | 3
      |{{  
      | 3
        #if: {{ #pos:{{ #explode:{{ #var:value }}|/|1 }} | {{ #var: star }} }}
      | {{!}}{{!}}{{
        |
        #if: {{ #pos: {{ #explode: {{ #var: flags }}|/|0 }} | {{ #var: star }} }}
        {{ #var:notmark }}
        | style="background-color: lime;" {{!}}
        |
        | {{  
         {{ #var:disabled }}
          #if: {{ #pos: {{ #explode: {{ #var: flags }}|/|1 }} | {{ #var: star }} }}
          | style="background-color: red;" {{!}}
          | style="background-color: black;" {{!}} -
         }}
       }}
       }}
     }}
     }}
    {{!}}-
   }}
   }}
  {{!}}-
}}
}}
|}
|}

Revision as of 07:30, 20 February 2017

Characters ☆3 ☆4 ☆5