Template:Rank15

From MLB Power Pros Wiki

(Difference between revisions)
Jump to: navigation, search
m (Updated Usage)
m (removed spaces and linebreaks)
 
(5 intermediate revisions not shown)
Line 1: Line 1:
-
<includeonly>{{#ifexpr: {{{1|1}}}>=16 | '''ERR''' | {{#ifexpr: {{{1|1}}}>=14 | [[Image:Rank_A.png]] | {{#ifexpr: {{{1|1}}}>=12 | [[Image:Rank_B.png]] | {{#ifexpr: {{1|1}}}>=10 | [[Image:Rank_C.png]] | {{#ifexpr: {{{1|1}}}>=8 | [[Image:Rank_D.png]] | {{#ifexpr: {{{1|1}}}>=6 | [[Image:Rank_E.png]] | {{#ifexpr: {{{1|1}}}>=4 | [[Image:Rank_F.png]] | {{#ifexpr: {{{1|1}}}>=1 | [[Image:Rank_G.png]] | '''ERR''' }}}}}}}}}}}}</includeonly><noinclude>
+
<includeonly>{{#ifexpr: {{{1|1}}}>=16 | '''ERR''' |  
 +
{{#ifexpr: {{{1|1}}}>=14 | [[Image:Rank_A.png|{{{1}}}]] |  
 +
{{#ifexpr: {{{1|1}}}>=12 | [[Image:Rank_B.png|{{{1}}}]] |  
 +
{{#ifexpr: {{{1|1}}}>=10 | [[Image:Rank_C.png|{{{1}}}]] |  
 +
{{#ifexpr: {{{1|1}}}>=8 | [[Image:Rank_D.png|{{{1}}}]] |  
 +
{{#ifexpr: {{{1|1}}}>=6 | [[Image:Rank_E.png|{{{1}}}]] |  
 +
{{#ifexpr: {{{1|1}}}>=4 | [[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 abilities on the 1-15 scale.  Because the A-G ranks are easily and evenly distributed, the actual number isn't shown.
{{usage|1=The template is to show [[rank|rank icons]] for the abilities on the 1-15 scale.  Because the A-G ranks are easily and evenly distributed, the actual number isn't shown.
-
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.  An errorchecking mechanism may be put into place later (for monitoring invalid values).
+
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"
{{{!}} class="wikitable"
-
! Wiki Text !! Output
+
! width="200" valign="top" {{!}} Wiki Text !! width="200" valign="top" {{!}} Output
{{!-}}
{{!-}}
-
{{!}} width="200" valign="top"{{!}}
+
{{!}} <nowiki>{{rank15|0}}</nowiki>
-
<pre>
+
{{!}} {{rank15|0}}
-
{{rank15|0}}<br />
+
{{!-}}
-
 
+
{{!}} <nowiki>{{rank15|1}}</nowiki>
-
{{rank15|1}}<br />
+
{{!}} {{rank15|1}}
-
 
+
{{!-}}
-
{{rank15|4}}<br />
+
{{!}} <nowiki>{{rank15|4}}</nowiki>
-
 
+
{{!}} {{rank15|4}}
-
{{rank15|6}}<br />
+
{{!-}}
-
 
+
{{!}} <nowiki>{{rank15|6}}</nowiki>
-
{{rank15|8}}<br />
+
{{!}} {{rank15|6}}
-
 
+
{{!-}}
-
{{rank15|10}}<br />
+
{{!}} <nowiki>{{rank15|8}}</nowiki>
-
 
+
{{!}} {{rank15|8}}
-
{{rank15|12}}<br />
+
{{!-}}
-
 
+
{{!}} <nowiki>{{rank15|10}}</nowiki>
-
{{rank15|14}}<br />
+
{{!}} {{rank15|10}}
-
 
+
{{!-}}
-
{{rank15|21}}<br />
+
{{!}} <nowiki>{{rank15|12}}</nowiki>
-
</pre>
+
{{!}} {{rank15|12}}
-
{{!}} width="200" valign="top"{{!}}
+
{{!-}}
-
<br />{{rank15|0}}<br />{{rank15|1}}<br />{{rank15|4}}<br />{{rank15|6}}<br />{{rank15|8}}<br />{{rank15|10}}<br />{{rank15|12}}<br />{{rank15|14}}<br />{{rank15|21}}<br />
+
{{!}} <nowiki>{{rank15|14}}</nowiki>
 +
{{!}} {{rank15|14}}
 +
{{!-}}
 +
{{!}} <nowiki>{{rank15|21}}</nowiki>
 +
{{!}} {{rank15|21}}
{{!}}}
{{!}}}
}}</noinclude>
}}</noinclude>

Current revision as of 22:44, 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 abilities on the 1-15 scale. Because the A-G ranks are easily and evenly distributed, the actual number isn't shown.

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
{{rank15|0}} ERR
{{rank15|1}} 1
{{rank15|4}} 4
{{rank15|6}} 6
{{rank15|8}} 8
{{rank15|10}} 10
{{rank15|12}} 12
{{rank15|14}} 14
{{rank15|21}} ERR


Personal tools