Template:Bra size/doc: Difference between revisions

Boobpedia - Encyclopedia of big boobs
Jump to navigationJump to search
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{documentation subpage}}
{{documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<includeonly>{{high-use|2,000+}}</includeonly>
== Functionality ==
== Functionality ==
This template
This template
* automatically converts US and European bra sizes and displays both,
* 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 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,
* automatically converts the "American DD" phenomenon to "standardised" bra sizes with single letters (e. g. DD = E, DDD = F), but preserves the original multiple letter cup size as well,
* displays only the cup size if you do not specify the band size,
* displays only the cup size if you do not specify the band size,
* automatically adds a cup size and a bra size category to the page the template is used on (for cases in which categories are not desirable, see [[#Categories|Categories]]).
* displays an error if you
* displays an error if you
** specify an unrealistic band size (e. g. a 26C bra does not exist),
** specify an unrealistic band size (e. g. a 26C bra does not exist),
** specify an uneven band size (US) or a band size not divisible by 5 (Europe) (these do 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).
** do not specify a cup size (a single band size is useless).


== Syntax ==
== Syntax ==
The syntax is very simple:
The syntax is as follows:


  <nowiki>{{</nowiki>bra size|band=''&lt;number&gt;''|cup=''&lt;text&gt;''}}
  <nowiki>{{</nowiki>bra size|band=''&lt;number&gt;''|cup=''&lt;text&gt;''|nocategory=''&lt;text&gt;''}}


<code>'''band'''</code>
<code>'''band'''</code>
Line 25: Line 27:
* Letter or multiple letters.
* Letter or multiple letters.
* Required.
* Required.
<code>'''nocategory'''</code>
* Any text. You can use "1", "y" or whatever you like. As soon as the parameter has any content, no cup size category is added to your article.
* Optional. <code>''&lt;text&gt;''</code> or the whole parameter <code>nocategory=''&lt;text&gt;''</code> can be omitted.
* '''Important:''' It is highly recommended that you '''always''' specify this parameter if the cup size is '''not''' the current cup size of the model you are writing about. Otherwise an incorrect cup size category would be added (or a talk page you are just writing on would be listed in the cup size categories). For examples, see [[#Categories|Categories]].


== Examples ==
== Examples ==
Line 37: Line 44:
| <nowiki>{{bra size|band=33|cup=D}}</nowiki> || {{bra size|band=33|cup=D|nocategory=1}}
| <nowiki>{{bra size|band=33|cup=D}}</nowiki> || {{bra size|band=33|cup=D|nocategory=1}}
|-  
|-  
| <nowiki>{{bra size|band=28|cup=D}}</nowiki> || {{bra size|band=28|cup=D|nocategory=1}}
| <nowiki>{{bra size|band=26|cup=D}}</nowiki> || {{bra size|band=26|cup=D|nocategory=1}}
|- valign="center"
|- valign="center"
!colspan="2" style="background:#ccc;"| European measurements (cm)
!colspan="2" style="background:#ccc;"| European measurements (cm)
Line 47: Line 54:
| <nowiki>{{bra size|band=76|cup=D}}</nowiki> || {{bra size|band=76|cup=D|nocategory=1}}
| <nowiki>{{bra size|band=76|cup=D}}</nowiki> || {{bra size|band=76|cup=D|nocategory=1}}
|-  
|-  
| <nowiki>{{bra size|band=60|cup=D}}</nowiki> || {{bra size|band=60|cup=D|nocategory=1}}
| <nowiki>{{bra size|band=55|cup=D}}</nowiki> || {{bra size|band=55|cup=D|nocategory=1}}
|- valign="center"
|- valign="center"
!colspan="2" style="background:#ccc;"| Cup sizes
!colspan="2" style="background:#ccc;"| Cup sizes
Line 72: Line 79:
|}
|}


== Usage ==
=== General ===
The template '''can''' be used
* in the '''bra/cup size''' field of the {{tl|Biobox new}} template.
* with both European/US cup sizes and Japanese "metric" cup sizes.
* within an article: ''"In recent years, her bra size has increased to {{bra size|band=36|cup=H|nocategory=1}}."''
: '''Note:''' If you use {{tl|bra size}} for several bra sizes on a page, remember to set the <code>nocategory</code> parameter for cup sizes which you do not want to be added as a category. For details, see [[#Categories|Categories]].
The template '''cannot''' be used
* in the '''Cup size''' field of the old {{tl|Biobox}}. As the old Biobox tries to add a category named by the cup size entry, the result would be: ''[[:Category:{{bra size|band=34|cup=F|nocategory=1}} cup|{{bra size|band=34|cup=F|nocategory=1}}]]''. Consider using {{tl|Biobox new}} instead and enter the bra size in the '''bra/cup size''' field.
The following use is '''deprecated''':
* As the old {{tl|Biobox}} did not have a '''bra/cup size''' field, the bra size was often entered in the '''measurements''' field: ''Measurements: 40-24-36 - {{bra size|band=34|cup=F|nocategory=1}}''. Consider using {{tl|Biobox new}} instead and enter the bra size in the '''bra/cup size''' field.
=== Categories ===
{{tl|bra size}} adds subcategories of the following two categories to pages it is used on:
* {{cl|By cup size}}
* {{cl|bra size}}


== Usage ==
;Examples:
The template can be used
* <code><nowiki>{{bra size|band=34|cup=D}}</nowiki></code> gives '''"{{bra size|band=34|cup=D|nocategory=1}}"''' and adds {{cl|D cup}} and {{cl|34D bra}}.
* within an article: ''In recent years, her bra size has increased to {{bra size|band=36|cup=H|nocategory=1}}.''
* <code><nowiki>{{bra size|band=34|cup=DD}}</nowiki></code> gives '''"{{bra size|band=34|cup=DD|nocategory=1}}"''' and adds {{cl|DD cup}} and {{cl|34E bra}}.
* in the '''Measurements''' field of the Biobox: ''Measurements: 40-24-36 - {{bra size|band=34|cup=F|nocategory=1}}
* <code><nowiki>{{bra size|cup=D}}</nowiki></code> gives '''"{{bra size|cup=D|nocategory=1}}"''' and adds {{cl|D cup}}.
* <code><nowiki>{{bra size|cup=DD}}</nowiki></code> gives '''"{{bra size|cup=DD|nocategory=1}}"''' and adds {{cl|DD cup}}.


<font color="red">The template '''cannot''' be used</font>
;Notes:
* in the '''Cup size''' field of the Biobox: ''[[:Category:{{bra size|band=34|cup=F|nocategory=1}} cup|{{bra size|band=34|cup=F|nocategory=1}}]]''
* {{tl|bra size}} does not prevent you from entering a cup size smaller than C (not allowed on Boobpedia), but automatically marks the article as a page for deletion: <code><nowiki>{{bra size|band=34|cup=B}}</nowiki></code> gives '''"{{bra size|band=34|cup=B|nocategory=1}}"''' and adds {{cl|Cup size smaller than C}} which is a subcategory of {{cl|Pages for deletion}}.
: 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.
* If you use {{tl|bra size}} for several bra sizes on a page, remember to set the <code>nocategory</code> parameter for cup sizes which you do not want to be added as a category. Example:<br/><code><nowiki>After the surgery, her bra sized increased from {{bra size|band=34|cup=D|nocategory=1}} to {{bra size|band=34|cup=F}}.</nowiki></code><br/>gives '''"After the surgery, her bra size increased from {{bra size|band=34|cup=D|nocategory=1}} to {{bra size|band=34|cup=F|nocategory=1}}."'''<br/>and adds only {{cl|F cup}} and {{cl|34F bra}}, but no category for D cup or 34D.
* with the '''"metric"''' suffix used for Japanese bra sizes: ''{{bra size|band=34|cup=P metric|nocategory=1}}''
: 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 ==
== Sub-templates ==
In order to keep the code clear and readable, this template uses two sub-templates:
In order to keep the code clear and readable, this template uses two sub-templates:
* [[Template:Convert cup|Convert cup]]
* {{tl|Convert cup}}
** converts double and triple letter cup sizes to normal ones,
** converts double and triple letter cup sizes to normal ones,
** checks if the cup size is smaller than C
** returns a single letter cup size.
** gives back a clickable single letter cup size
* {{tl|Split bra}}
* [[Template:Split bra|Split bra]]
** detects if US or European band size is specified,
** detects if US or European band size is specified,
** checks if band size is uneven or not divisible by 5,
** checks if band size is uneven or not divisible by 5,
** gives back both US and European bra sizes.
** returns both US and European bra sizes.
 
== See also ==
* {{tl|Bra}} and {{tl|cup}} for a simplified syntax with the same functionality
 
<includeonly>
<!-- CATEGORIES HERE -->
[[Category:Conversion templates|{{PAGENAME}}]]
[[Category:Boobpedia formatting templates|{{PAGENAME}}]]
</includeonly>

Latest revision as of 18:08, 3 July 2008

This is a documentation subpage for Template:Bra size (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

Functionality

This template

  • 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 "standardised" bra sizes with single letters (e. g. DD = E, DDD = F), but preserves the original multiple letter cup size as well,
  • displays only the cup size if you do not specify the band size,
  • automatically adds a cup size and a bra size category to the page the template is used on (for cases in which categories are not desirable, see Categories).
  • displays an error if you
    • specify an unrealistic band size (e. g. a 26C bra does not exist),
    • specify an uneven band size (US) or a band size not divisible by 5 (Europe) (these do not exist),
    • do not specify a cup size (a single band size is useless).

Syntax

The syntax is as follows:

{{bra size|band=<number>|cup=<text>|nocategory=<text>}}

band

  • Number. Unrealistic numbers lead to an error.
  • Optional. <number> or the whole parameter band=<number> 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.

nocategory

  • Any text. You can use "1", "y" or whatever you like. As soon as the parameter has any content, no cup size category is added to your article.
  • Optional. <text> or the whole parameter nocategory=<text> can be omitted.
  • Important: It is highly recommended that you always specify this parameter if the cup size is not the current cup size of the model you are writing about. Otherwise an incorrect cup size category would be added (or a talk page you are just writing on would be listed in the cup size categories). For examples, see Categories.

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=26|cup=D}} Error: Band size out of range.
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=55|cup=D}} Error: Band size out of range.
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=}}

Usage

General

The template can be used

  • in the bra/cup size field of the {{Biobox new}} template.
  • with both European/US cup sizes and Japanese "metric" cup sizes.
  • within an article: "In recent years, her bra size has increased to 36H (80H)."
Note: If you use {{Bra size}} for several bra sizes on a page, remember to set the nocategory parameter for cup sizes which you do not want to be added as a category. For details, see Categories.

The template cannot be used

  • in the Cup size field of the old {{Biobox}}. As the old Biobox tries to add a category named by the cup size entry, the result would be: [[:Category:34F (75F) cup|34F (75F)]]. Consider using {{Biobox new}} instead and enter the bra size in the bra/cup size field.

The following use is deprecated:

  • As the old {{Biobox}} did not have a bra/cup size field, the bra size was often entered in the measurements field: Measurements: 40-24-36 - 34F (75F). Consider using {{Biobox new}} instead and enter the bra size in the bra/cup size field.

Categories

{{Bra size}} adds subcategories of the following two categories to pages it is used on:

Examples
Notes
  • {{Bra size}} does not prevent you from entering a cup size smaller than C (not allowed on Boobpedia), but automatically marks the article as a page for deletion: {{bra size|band=34|cup=B}} gives "34B (75B)" and adds Category:Cup size smaller than C which is a subcategory of Category:Pages for deletion.
  • If you use {{Bra size}} for several bra sizes on a page, remember to set the nocategory parameter for cup sizes which you do not want to be added as a category. Example:
    After the surgery, her bra sized increased from {{bra size|band=34|cup=D|nocategory=1}} to {{bra size|band=34|cup=F}}.
    gives "After the surgery, her bra size increased from 34D (75D) to 34F (75F)."
    and adds only Category:F cup and Category:34F bra, but no category for D cup or 34D.

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,
    • returns a 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,
    • returns both US and European bra sizes.

See also

  • {{Bra}} and {{Cup}} for a simplified syntax with the same functionality