Template:Magia Record Rarity: Difference between revisions

From Puella Magi Wiki
Jump to navigation Jump to search
(Created page with "<noinclude>Calculates a rarity from 1 to 5 stars based on how many non-empty parameters are passed to it. Not intended for general use but rather for building other templates.</noinclude>{{#if:{{{1|}}}|1| {{#if:{{{2|}}}|2| {{#if:{{{3|}}}|3| {{#if:{{{4|}}}|4| {{#if:{{{5|}}}|5| }}}}}}}}}}")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>Calculates a rarity from 1 to 5 stars based on how many non-empty parameters are passed to it. Not intended for general use but rather for building other templates.</noinclude>{{#if:{{{1|}}}|1|
<noinclude>Calculates a rarity from 1 to 5 stars based on how many non-empty parameters are passed to it. Not intended for general use but rather for building other templates.</noinclude>{{#switch:{{{mode|fwd}}}
{{#if:{{{2|}}}|2|
|fwd|rev|eq|range={{Magia Record Rarity/{{{mode|fwd}}}|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|suffix={{{suffix|}}}|sep={{{sep|}}}|false={{{false|}}}}}
{{#if:{{{3|}}}|3|
|<span class="error">Unknown rarity mode {{{mode}}}</span>}}
{{#if:{{{4|}}}|4|
{{#if:{{{5|}}}|5|
}}}}}}}}}}

Latest revision as of 01:45, 15 August 2023

Calculates a rarity from 1 to 5 stars based on how many non-empty parameters are passed to it. Not intended for general use but rather for building other templates.