Template:Bra size

Boobpedia - Encyclopedia of big boobs
Revision as of 22:49, 29 April 2008 by Prophecy (talk | contribs)
Jump to navigationJump to search

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 parameter band=<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)- C cup
v v
v v
v v