Template:Bra size: Difference between revisions
Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
}} | }} | ||
|{{convert cup|ccup={{{cup}}} }} | |{{convert cup|ccup={{{cup}}} }} | ||
}}{{#ifeq: {{convert cup|ccup={{{cup}}} }} | | }}{{#ifeq: {{convert cup|ccup={{{cup}}} }} | {{{cup}}} || - [[{{{cup}}}]] cup}} | ||
|{{#if: {{{band|}}} | |{{#if: {{{band|}}} | ||
|<font color="red">Error: Please specify a cup size or leave all parameters blank.</font> | |<font color="red">Error: Please specify a cup size or leave all parameters blank.</font> | ||
Revision as of 22:50, 29 April 2008
Functionality
This template
- automatically converts US and European bra sizes and displays both,
- automatically recognises if you specify a US or European band size (the number in the bra size),
- automatically converts the "American DD" phenomenon to normal bra sizes (e. g. DD = E, DDD = F), but adds the multiple letter cup size as well,
- displays only the cup size if you do not specify the band size,
- displays an error if you
- specify an unrealistic band size (e. g. a 28C bra does not exist),
- specify an uneven band size (US) or a band size not divisible by 5 (Europe) (these do not exist),
- specify a cup size smaller than C (not allowed on Boobpedia),
- do not specify a cup size (a single band size is useless).
Sup-templates
In order to keep the code clear and readable, this template uses two sub-templates:
- Convert cup
- converts double and triple letter cup sizes to normal ones,
- checks if the cup size is smaller than C
- gives back a clickable single letter cup size
- Split bra
- recognises if US or European band size is specified,
- checks if band size is uneven or not divisible by 5,
- gives back both US and European bra sizes.
Syntax
The syntax is very simple:
{{bra size|band=<band size>|cup=<cup size>}}
band
- Number. Unrealistic numbers lead to an error.
- Optional.
<band size>or the whole parameterband=<band size>can be omitted. - You do not have to specify if the number is a US or European measurement. The template sorts this out for you.
cup
- Letter or multiple letters.
- Obligatory.
Examples
| My articles | |
|---|---|
| Code | Result |
| {{bra size|band=75|cup=C}} | 34C (75C) |
| v | v |
| v | v |
| v | v |