Template:Photographer: Difference between revisions
Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
[[Martin Perreault]]{{#if: {{{link|}}}| ([http://www.martinperreault.com/ home page])}}{{#if: {{{location||}}}|, Montreal, Québec, Canada}} | <includeonly>[[Martin Perreault]]{{#if: {{{link|}}}| ([http://www.martinperreault.com/ home page])}}{{#if: {{{location||}}}|, Montreal, Québec, Canada}}</includeonly><noinclude> | ||
== Functionality == | |||
This template | |||
* is a automatically converts US and European bra sizes and displays both, | |||
* automatically detects if you specify the band size (the number in the bra size) in inches (US) or centimeters (Europe), | |||
* automatically converts the "American DD" phenomenon to normal bra sizes (e. g. DD = E, DDD = F), but adds the alternative 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). | |||
== 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. | |||
* Required. | |||
== Examples == | |||
{| border="0" cellspacing="0" cellpadding="4" style="text-align:center;border:1px solid #ccc;" | |||
|- valign="center" | |||
!colspan="2" style="background:#ccc;"| US measurements (in) | |||
|- style="background:#eee;" | |||
| <nowiki>{{bra size|band=34|cup=D}}</nowiki> || {{bra size|band=34|cup=D}} | |||
|- | |||
| <nowiki>{{bra size|band=34|cup=DD}}</nowiki> || {{bra size|band=34|cup=DD}} | |||
|- style="background:#eee;" | |||
| <nowiki>{{bra size|band=33|cup=D}}</nowiki> || {{bra size|band=33|cup=D}} | |||
|- | |||
| <nowiki>{{bra size|band=28|cup=D}}</nowiki> || {{bra size|band=28|cup=D}} | |||
|- valign="center" | |||
!colspan="2" style="background:#ccc;"| European measurements (cm) | |||
|- style="background:#eee;" | |||
| <nowiki>{{bra size|band=75|cup=D}}</nowiki> || {{bra size|band=75|cup=D}} | |||
|- | |||
| <nowiki>{{bra size|band=75|cup=DD}}</nowiki> || {{bra size|band=75|cup=DD}} | |||
|- style="background:#eee;" | |||
| <nowiki>{{bra size|band=76|cup=D}}</nowiki> || {{bra size|band=76|cup=D}} | |||
|- | |||
| <nowiki>{{bra size|band=60|cup=D}}</nowiki> || {{bra size|band=60|cup=D}} | |||
|- valign="center" | |||
!colspan="2" style="background:#ccc;"| Cup sizes | |||
|- style="background:#eee;" | |||
| <nowiki>{{bra size|band=34|cup=F}}</nowiki> || {{bra size|band=34|cup=F}} | |||
|- | |||
| <nowiki>{{bra size|band=34|cup=FF}}</nowiki> || {{bra size|band=34|cup=FF}} | |||
|- style="background:#eee;" | |||
| <nowiki>{{bra size|band=34|cup=FFF}}</nowiki> || {{bra size|band=34|cup=FFF}} | |||
|- | |||
| <nowiki>{{bra size|band=34|cup=ZZZ}}</nowiki> || {{bra size|band=34|cup=ZZZ}} | |||
|- style="background:#eee;" | |||
| <nowiki>{{bra size|band=34|cup=B}}</nowiki> || {{bra size|band=34|cup=B}} | |||
|- valign="center" | |||
!colspan="2" style="background:#ccc;"| Required and optional parameters | |||
|- style="background:#eee;" | |||
| <nowiki>{{bra size|cup=D}}</nowiki> || {{bra size|band=|cup=D}} | |||
|- | |||
| <nowiki>{{bra size|cup=DD}}</nowiki> || {{bra size|band=|cup=DD}} | |||
|- style="background:#eee;" | |||
| <nowiki>{{bra size|band=34}}</nowiki> || {{bra size|band=34}} | |||
|- | |||
| <nowiki>{{bra size|band=|cup=}}</nowiki> || {{bra size|band=|cup=}} | |||
|} | |||
== Usability == | |||
The template can be used | |||
* within an article: ''In recent years, her bra size has increased to {{bra size|band=36|cup=H}}.'' | |||
* in the '''Measurements''' field of the Biobox: ''Measurements: 40-24-36 - {{bra size|band=34|cup=F}} | |||
<font color="red">The template '''cannot''' be used</font> | |||
* in the '''Cup size''' field of the Biobox: ''[[:Category:{{bra size|band=34|cup=F}} cup|{{bra size|band=34|cup=F}}]]'' | |||
: As the Bra size template can be used both for complete bra sizes and only for cup sizes, it could be discussed if the '''Cup size''' field of the Biobox should be replaced by '''Bra size.''' If someone does not know the complete bra size of a model, he can enter just the cup size like before. [[user:The Honorable|The Honorable]] would have to change the code of the field so that it does not convert the whole entry into a category search, but only the cup size. This would help to keep the Measurements field clean (only bust-waist-hips) and to give the writers a proper field where they can add a bra size. | |||
* with the '''"metric"''' suffix used for Japanese bra sizes: ''{{bra size|band=34|cup=P metric}}'' | |||
: Funcionality for "metric" suffixes could be added. But unfortunately I have no idea how Japanese cup sizes are converted into "normal" ones. [[user:DDrendar|DDrendar]] has added to a category page that J metric corresponds to DD. Is there something like a conversion table? [[user:Dekkappai|Dekkappai]], master of Japanese models, please help! :-) | |||
== Sub-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]] | |||
** detects 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. | |||
</noinclude> | |||
Revision as of 21:51, 3 May 2008
Functionality
This template
- is a automatically converts US and European bra sizes and displays both,
- automatically detects if you specify the band size (the number in the bra size) in inches (US) or centimeters (Europe),
- automatically converts the "American DD" phenomenon to normal bra sizes (e. g. DD = E, DDD = F), but adds the alternative 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).
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.
- Required.
Examples
| US measurements (in) | |
|---|---|
| {{bra size|band=34|cup=D}} | 34D (75D) |
| {{bra size|band=34|cup=DD}} | 34E (75E) (same as DD cup) |
| {{bra size|band=33|cup=D}} | Error: US band sizes must be even. |
| {{bra size|band=28|cup=D}} | 28D (60D) |
| European measurements (cm) | |
| {{bra size|band=75|cup=D}} | 34D (75D) |
| {{bra size|band=75|cup=DD}} | 34E (75E) (same as DD cup) |
| {{bra size|band=76|cup=D}} | Error: European band sizes must be divisible by 5. |
| {{bra size|band=60|cup=D}} | 28D (60D) |
| Cup sizes | |
| {{bra size|band=34|cup=F}} | 34F (75F) |
| {{bra size|band=34|cup=FF}} | 34G (75G) (same as FF cup) |
| {{bra size|band=34|cup=FFF}} | 34H (75H) (same as FFF cup) |
| {{bra size|band=34|cup=ZZZ}} | 34Z (75Z) (same as ZZZ cup) |
| {{bra size|band=34|cup=B}} | 34B (75B) |
| Required and optional parameters | |
| {{bra size|cup=D}} | D |
| {{bra size|cup=DD}} | E (same as DD cup) |
| {{bra size|band=34}} | Error: Please specify a cup size or leave all parameters blank. |
| {{bra size|band=|cup=}} | |
Usability
The template can be used
- within an article: In recent years, her bra size has increased to 36H (80H).
- in the Measurements field of the Biobox: Measurements: 40-24-36 - 34F (75F)
The template cannot be used
- As the Bra size template can be used both for complete bra sizes and only for cup sizes, it could be discussed if the Cup size field of the Biobox should be replaced by Bra size. If someone does not know the complete bra size of a model, he can enter just the cup size like before. The Honorable would have to change the code of the field so that it does not convert the whole entry into a category search, but only the cup size. This would help to keep the Measurements field clean (only bust-waist-hips) and to give the writers a proper field where they can add a bra size.
- with the "metric" suffix used for Japanese bra sizes: 34P metric (75P metric)
- Funcionality for "metric" suffixes could be added. But unfortunately I have no idea how Japanese cup sizes are converted into "normal" ones. DDrendar has added to a category page that J metric corresponds to DD. Is there something like a conversion table? Dekkappai, master of Japanese models, please help! :-)
Sub-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
- detects 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.