Template:Rank control
From MLB Power Pros Wiki
(Difference between revisions)
Maxdsterling (Talk | contribs) (Template:Rank control moved to Template:Rank stamina: wrong scale) |
Maxdsterling (Talk | contribs) (Fixed with correct scale.) |
||
Line 1: | Line 1: | ||
- | # | + | <includeonly> |
+ | {{#ifexpr: {{{1|1}}}>255 | '''ERR''' | | ||
+ | {{#ifexpr: {{{1|1}}}>=180 | [[Image:Rank_A.png|{{{1}}}]] | | ||
+ | {{#ifexpr: {{{1|1}}}>=155 | [[Image:Rank_B.png|{{{1}}}]] | | ||
+ | {{#ifexpr: {{{1|1}}}>=135 | [[Image:Rank_C.png|{{{1}}}]] | | ||
+ | {{#ifexpr: {{{1|1}}}>=120 | [[Image:Rank_D.png|{{{1}}}]] | | ||
+ | {{#ifexpr: {{{1|1}}}>=110 | [[Image:Rank_E.png|{{{1}}}]] | | ||
+ | {{#ifexpr: {{{1|1}}}>=100 | [[Image:Rank_F.png|{{{1}}}]] | | ||
+ | {{#ifexpr: {{{1|1}}}>=1 | [[Image:Rank_G.png|{{{1}}}]] | '''ERR''' | ||
+ | }}}}}}}}}}}}}}}}</includeonly><noinclude> | ||
+ | {{usage|1=The template is to show [[rank|rank icons]] for the control scale. | ||
+ | |||
+ | Note: When another template contains this one, that template page will show an error if passing a parameter through, due to this template requesting a number, and receiving '{' instead. | ||
+ | |||
+ | {{{!}} class="wikitable" | ||
+ | ! width="200" valign="top" {{!}} Wiki Text !! width="200" valign="top" {{!}} Output | ||
+ | {{!-}} | ||
+ | {{!}} <nowiki>{{rank control|0}}</nowiki> | ||
+ | {{!}} {{rank control|0}} | ||
+ | {{!-}} | ||
+ | {{!}} <nowiki>{{rank control|1}}</nowiki> | ||
+ | {{!}} {{rank control|1}} | ||
+ | {{!-}} | ||
+ | {{!}} <nowiki>{{rank control|50}}</nowiki> | ||
+ | {{!}} {{rank control|50}} | ||
+ | {{!-}} | ||
+ | {{!}} <nowiki>{{rank control|105}}</nowiki> | ||
+ | {{!}} {{rank control|105}} | ||
+ | {{!-}} | ||
+ | {{!}} <nowiki>{{rank control|115}}</nowiki> | ||
+ | {{!}} {{rank control|115}} | ||
+ | {{!-}} | ||
+ | {{!}} <nowiki>{{rank control|130}}</nowiki> | ||
+ | {{!}} {{rank control|130}} | ||
+ | {{!-}} | ||
+ | {{!}} <nowiki>{{rank control|170}}</nowiki> | ||
+ | {{!}} {{rank control|170}} | ||
+ | {{!-}} | ||
+ | {{!}} <nowiki>{{rank control|194}}</nowiki> | ||
+ | {{!}} {{rank control|194}} | ||
+ | {{!-}} | ||
+ | {{!}} <nowiki>{{rank control|291}}</nowiki> | ||
+ | {{!}} {{rank control|291}} | ||
+ | {{!}}} | ||
+ | }}</noinclude> |
Revision as of 22:09, 27 February 2008
Usage
These usage notes will not be included in articles bearing this template.
The template is to show rank icons for the control scale.
Note: When another template contains this one, that template page will show an error if passing a parameter through, due to this template requesting a number, and receiving '{' instead.