Template:FracImg: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
imported>Aggelakis (historical)
m (1/4, 3/4)
imported>Aggelakis (historical)
m (display)
Line 17: Line 17:
| onehalf
| onehalf
| one-half
| one-half
| twoquarters
| two-quarters
| twofourths
| two-fourths
| twoforths
| two-forths
| threesixths
| threesixths
| three-sixths={{CenterAlignIcon|width=24|text={{Frac|1|2}}|image=File:Fractions One-Half.png|hover=OneHalf}}
| three-sixths={{CenterAlignIcon|width=24|text={{Frac|1|2}}|image=File:Fractions One-Half.png|hover=OneHalf}}
Line 37: Line 43:
Fraction pies followed by text. Mainly for use on [[Incarnate System]] pages, but not restricted.
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.
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. ('''Bold''' inputs listed should be used; unbolded images are accepted options but not preferred.)


{| class="wikitable" width="50%" style="text-align:center;"
{| class="wikitable" width="50%" style="text-align:center;"
! width="50%" | Input !! width="50%" | Results
! width="50%" | Input !! width="50%" | Results
|-
|-
| <nowiki>{{FracImg|zero}}</nowiki><br /><nowiki>{{FracImg|none}}</nowiki> || {{FracImg|none}}
| '''<nowiki>{{FracImg|zero}}</nowiki>'''<br /><nowiki>{{FracImg|none}}</nowiki><br /><nowiki>{{FracImg|null}}</nowiki> || {{FracImg|none}}
|-
|-
| <nowiki>{{FracImg|one-sixth}}</nowiki> || {{FracImg|one-sixth}}
| '''<nowiki>{{FracImg|one-sixth}}</nowiki>''' || {{FracImg|one-sixth}}
|-
|-
| <nowiki>{{FracImg|one-quarter}}</nowiki> || {{FracImg|one-quarter}}
| '''<nowiki>{{FracImg|one-quarter}}</nowiki>'''<br /><nowiki>{{FracImg|one-fourth}}</nowiki> || {{FracImg|one-quarter}}
|-
|-
| <nowiki>{{FracImg|one-third}}</nowiki> || {{FracImg|one-third}}
| '''<nowiki>{{FracImg|one-third}}</nowiki>'''<br /><nowiki>{{FracImg|two-sixths}}</nowiki> || {{FracImg|one-third}}
|-
|-
| <nowiki>{{FracImg|one-half}}</nowiki> || {{FracImg|one-half}}
| '''<nowiki>{{FracImg|one-half}}</nowiki>'''<br /><nowiki>{{FracImg|three-sixths}}</nowiki><br /><nowiki>{{FracImg|two-quarters}}</nowiki><br /><nowiki>{{FracImg|two-fourths}}</nowiki> || {{FracImg|one-half}}
|-
|-
| <nowiki>{{FracImg|two-thirds}}</nowiki> || {{FracImg|two-thirds}}
| '''<nowiki>{{FracImg|two-thirds}}</nowiki>'''<br /><nowiki>{{FracImg|four-sixths}}</nowiki> || {{FracImg|two-thirds}}
|-
|-
| <nowiki>{{FracImg|three-quarters}}</nowiki> || {{FracImg|three-quarters}}
| '''<nowiki>{{FracImg|three-quarters}}</nowiki>'''<br /><nowiki>{{FracImg|three-fourths}}</nowiki> || {{FracImg|three-quarters}}
|-
|-
| <nowiki>{{FracImg|five-sixths}}</nowiki> || {{FracImg|five-sixths}}
| '''<nowiki>{{FracImg|five-sixths}}</nowiki>''' || {{FracImg|five-sixths}}
|-
|-
| <nowiki>{{FracImg|one}}</nowiki><br /><nowiki>{{FracImg|full}}</nowiki> || {{FracImg|full}}
| '''<nowiki>{{FracImg|one}}</nowiki>'''<br /><nowiki>{{FracImg|full}}</nowiki> || {{FracImg|full}}
|-
|-
| <nowiki>{{FracImg|Bob Dole}}</nowiki> || {{FracImg|Bob Dole}}
| <nowiki>{{FracImg|Bob Dole}}</nowiki> || {{FracImg|Bob Dole}}

Revision as of 04:50, 15 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. (Bold inputs listed should be used; unbolded images are accepted options but not preferred.)

Input Results
{{FracImg|zero}}
{{FracImg|none}}
{{FracImg|null}}
0Zero
{{FracImg|one-sixth}} 16One-Sixth
{{FracImg|one-quarter}}
{{FracImg|one-fourth}}
14One-Quarter
{{FracImg|one-third}}
{{FracImg|two-sixths}}
13One-Third
{{FracImg|one-half}}
{{FracImg|three-sixths}}
{{FracImg|two-quarters}}
{{FracImg|two-fourths}}
12OneHalf
{{FracImg|two-thirds}}
{{FracImg|four-sixths}}
23Two-Thirds
{{FracImg|three-quarters}}
{{FracImg|three-fourths}}
34Three-Quarters
{{FracImg|five-sixths}} 56Five-Sixths
{{FracImg|one}}
{{FracImg|full}}
1One
{{FracImg|Bob Dole}} Unknown