f/
This template uses TemplateStyles: |
This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. |
This template produces the notation for f-number, stylizing the f as a script 'f/' as is common in photography.
This template accepts up to 2 unnamed parameters, to create an f-number such as ((f/|2))
→ f/2, or an aperture range such as given for variable-aperture zoom lenses:
((f/|4|5.6))
→ f/4–5.6. When a second aperture parameter is provided, the range is separated by an en-dash (in accordance with MOS:NUMRANGE).
((f/))
→ f/((f/|2))
→ f/2((f/|4|5.6))
→ f/4–5.6((f/|#))
→ f/#((f/|#|link=y))
→ f/#This template emits a standard f
character that is stylized CSS ::first-letter
in order to discourage use of visually-stylized, but incorrect or inaccessible, alternatives such as:
((mvar|f))
;<math>f</math>
.The entire output content (including the f-number value or range) is wrapped in a single <span class="fnumber">...</span>
HTML tag for semantic purposes, fallback copy/paste, and screen reader recognition for accessibility.
TemplateData for f/
Displays a photographic f-number with a script 'f/'
Parameter | Description | Type | Status | |
---|---|---|---|---|
aperture | 1 | f-number (aperture). Usually a number, but accepts text.
| Number | suggested |
2nd aperture | 2 | Second aperture, to denote an aperture range. Separated from first aperture with an en-dash.
| Number | optional |
link | link | Boolean. Makes the entire output a wikilink to the [[f-number]] article.
| String | optional |