Difference between revisions of "Template:Star properties"
Dinoguy1000 (talk | contribs) (store nonnumerical values to ?Level/?Rank; store everything to Stars/?Stars/Stars string) |
Dinoguy1000 (talk | contribs) (really, these need sane defaults) |
||
Line 1: | Line 1: | ||
− | {{ #iferror: {{ #expr: {{ #var: $stars | ??? }} }} | + | {{ #vardefine: $star-label | {{ #var: $level-rank | Level }} |
− | | [[?{{ #var: $ | + | }}{{ #iferror: {{ #expr: {{ #var: $stars | ??? }} }} |
− | | [[{{ #var: $ | + | | {{ #vardefine: $star-stars | {{ #var: $stars | ??? }} }}[[?{{ #var: $star-label }}::{{ #var: $star-stars }}| ]][[{{ #var: $star-label }} string::{{ #var: $star-stars }}| ]][[?Stars::{{ #var: $star-stars }}| ]][[Stars string::{{ #var: $star-stars }}| ]] |
+ | | [[{{ #var: $star-label }}::{{ #var: $stars }}| ]][[{{ #var: $star-label }} string::{{ #replace: {{ padleft: {{ #var: $stars }} | 4 | † }} | † | {{0}} }}| ]][[Stars::{{ #var: $stars }}| ]][[Stars string::{{ #replace: {{ padleft: {{ #var: $stars }} | 4 | † }} | † | {{0}} }}| ]] | ||
}}<noinclude>{{documentation}}</noinclude> | }}<noinclude>{{documentation}}</noinclude> |