Template:Rank control

From MLB Power Pros Wiki

(Difference between revisions)
Jump to: navigation, search
(Fixed with correct scale.)
Line 1: Line 1:
-
#REDIRECT [[Template:Rank stamina]]
+
<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.

Wiki Text Output
{{rank control|0}} ERR
{{rank control|1}} 1
{{rank control|50}} 50
{{rank control|105}} 105
{{rank control|115}} 115
{{rank control|130}} 130
{{rank control|170}} 170
{{rank control|194}} 194
{{rank control|291}} ERR


Personal tools