Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Difference between revisions of "Template:FracImg"

From Paragon Wiki Archive
Jump to: navigation, search
m
(avoiding case sensitivity issues using "lc" (lowercase) parser function)
Line 1: Line 1:
<includeonly>{{#switch: {{{1|}}} |
+
<includeonly>{{#switch: {{lc:{{{1|}}}}} |
| Zero
+
 
| zero
 
| zero
| Null
 
 
| null
 
| null
| None
 
 
| none=[[File:Incarnate-Sixths-0.png|24px|Zero]] 0
 
| none=[[File:Incarnate-Sixths-0.png|24px|Zero]] 0
| OneSixth
 
 
| onesixth
 
| onesixth
| One-Sixth
 
 
| one-sixth=[[File:Incarnate-Sixths-1.png|24px|One-Sixth]] {{Frac|1|6}}
 
| one-sixth=[[File:Incarnate-Sixths-1.png|24px|One-Sixth]] {{Frac|1|6}}
| OneThird
 
 
| onethird
 
| onethird
| One-Third
 
 
| one-third
 
| one-third
| Two-Sixths
 
 
| two-sixths=[[File:Incarnate-Sixths-2.png|24px|One-Third]] {{Frac|1|3}}
 
| two-sixths=[[File:Incarnate-Sixths-2.png|24px|One-Third]] {{Frac|1|3}}
| OneHalf
 
 
| onehalf
 
| onehalf
 
| one-half
 
| one-half
| One-Half
 
| Three-Sixths
 
 
| three-sixths=[[File:Incarnate-Sixths-3.png|24px|One-Half]] {{Frac|1|2}}
 
| three-sixths=[[File:Incarnate-Sixths-3.png|24px|One-Half]] {{Frac|1|2}}
| TwoThirds
 
 
| twothirds
 
| twothirds
| Two-Thirds
 
 
| two-thirds
 
| two-thirds
| Four-Sixths
 
 
| four-sixths=[[File:Incarnate-Sixths-4.png|24px|Two-Thirds]] {{Frac|2|3}}
 
| four-sixths=[[File:Incarnate-Sixths-4.png|24px|Two-Thirds]] {{Frac|2|3}}
| One
 
 
| one
 
| one
| Full
 
 
| full=[[File:Incarnate-Sixths-6.png|24px|One]] 1
 
| full=[[File:Incarnate-Sixths-6.png|24px|One]] 1
 
| #default=[[File:Icon clue generic.png|24px|Unknown]] }}</includeonly><noinclude>
 
| #default=[[File:Icon clue generic.png|24px|Unknown]] }}</includeonly><noinclude>

Revision as of 00:25, 12 November 2010

Usage

Fraction pies followed by text. Mainly for use on Incarnate System pages, but not restricted.

One variable, depending on what needs to be displayed. Unlisted values need to be created and added to the template, or the template altered to be able to automatically include unlisted values. If an incorrect value is passed, it will result in a question mark.

  • zero or none 0Zero
  • one-sixth 16One-Sixth
  • one-third 13One-Third
  • one-half 12One-Half
  • two-thirds 23Two-Thirds
  • one or full 1One

Incorrect value: {{FracImg|Bob Dole}} Unknown