Template:Bra size: Difference between revisions
Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
}} | }} | ||
|{{convert cup|ccup={{{cup}}} }} | |{{convert cup|ccup={{{cup}}} }} | ||
}} - [[{{{cup}}}]] cup | }} - [[{{{cup}}}]] cup|<font color="red">Error: Please specify a cup size or leave all parameters blank.</font> | ||
}} | }} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
== 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: | |||
* [[Template:Convert cup|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 | |||
* [[Template:Split bra|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: | |||
<nowiki>{{</nowiki>bra size|band=''<band size>''|cup=''<cup size>''}} | |||
'''band''' | |||
* Number. Unrealistic numbers lead to an error. | |||
* Optional. <code>''<band size>''</code> or the whole parameter <code>band=''<band size>''</code> 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 == | |||
{| border="0" cellspacing="0" cellpadding="4" style="text-align:center;border:1px solid #ccc;" | |||
|- valign="center" style="background:#ccc;" | |||
!colspan="2" style="background:#ccc;"| My articles | |||
|- valign="top" style="background:#ccc;" | |||
!scope="col" width="50%" | Code | |||
!scope="col" width="50%" | Result | |||
|- style="background:#eee;" | |||
| <nowiki>{{bra size|band=75|cup=C}}</nowiki> || {{bra size|band=75|cup=C}} | |||
|- | |||
| v || v | |||
|- style="background:#eee;" | |||
| v || v | |||
|- | |||
| v || v | |||
|} | |||
</noinclude> | </noinclude> | ||
Revision as of 22:19, 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}} |
|
| v | v |
| v | v |
| v | v |