Permanently protected template

Difference between revisions of "Template:Star properties"

From Yugipedia
Jump to: navigation, search
m (Dinoguy1000 moved page Template:Level Rank properties to Template:Star properties: shorter)
(top: Restoring revision 4493217 by User:Dinoguy1000 on 2020-05-09 02:12:00. sort-of rv: only add Property:[Level/Rank/Stars] when the card has a numeric value)
(Tag: New user edit)
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{ #iferror: {{ #expr: {{ #var: $stars | ??? }} }}
+
{{ #vardefine: $star-label | {{ #if: {{{label|}}} | {{{label}}} | {{ #var: $level-rank | Level }} }}
| [[{{ #var: $level-rank }} string::{{ #var: $stars | ??? }}| ]]
+
}}{{ #vardefine: $star-stars | {{ #if: {{{1|}}} | {{{1}}} | {{ #var: $stars | ??? }} }}
| [[{{ #var: $level-rank }}::{{ #var: $stars }}| ]][[{{ #var: $level-rank }} string::{{ #replace: {{ padleft: {{ #var: $stars }} | 4 | † }} | † | {{0}} }}| ]]
+
}}{{ #iferror: {{ #expr: {{ #var: $star-stars }} }} || [[{{ #var: $star-label }}::{{ #var: $star-stars }}| ]][[Stars::{{ #var: $star-stars }}| ]]
}}<noinclude>{{documentation}}</noinclude>
+
}}[[{{ #var: $star-label }} string::{{ #var: $star-stars }}| ]][[Stars string::{{ #var: $star-stars }}| ]]<noinclude>{{documentation}}</noinclude>

Latest revision as of 22:46, 17 March 2023