Difference between revisions of "Template:F/"

From blackwiki
Jump to navigation Jump to search
imported>Xaosflux
m (Unprotected Template:F/: no longer required)
imported>Srleffler
(rm italics on number sign. Since the slash is no longer italicized, this isn't needed anymore.)
Line 1: Line 1:
 
{{#if:{{{link|}}}
 
{{#if:{{{link|}}}
|[[f-number|<span style="font-style:italic;font-family:Trebuchet MS,Candara,Georgia,Calibri,Corbel,serif">f</span>/{{#if:{{{1|}}}|{{#ifeq:{{{1}}}|#|''<nowiki>#</nowiki>''|{{{1}}}}}}}]]
+
|[[f-number|<span style="font-style:italic;font-family:Trebuchet MS,Candara,Georgia,Calibri,Corbel,serif">f</span>/{{#if:{{{1|}}}|{{#ifeq:{{{1}}}|#|<nowiki>#</nowiki>|{{{1}}}}}}}]]
|<span style="font-style:italic;font-family:Trebuchet MS,Candara,Georgia,Calibri,Corbel,serif">f</span>/{{#if:{{{1|}}}|{{#ifeq:{{{1}}}|#|''<nowiki>#</nowiki>''|{{{1}}}}}}}
+
|<span style="font-style:italic;font-family:Trebuchet MS,Candara,Georgia,Calibri,Corbel,serif">f</span>/{{#if:{{{1|}}}|{{#ifeq:{{{1}}}|#|<nowiki>#</nowiki>|{{{1}}}}}}}
 
}}<noinclude>
 
}}<noinclude>
 
{{DISPLAYTITLE:Template:f/}}
 
{{DISPLAYTITLE:Template:f/}}
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 01:25, 3 May 2009

f/

50px Template documentation[view] [edit] [history] [purge]

Usage

This template produces the notation for f-number, using a hooked f/ as is common in photography. In more mathematical articles, it may be preferable to code the symbol using the markup used for other math in the article: ''f''/ = f/, or <math>f/</math> = <math>f/</math>.

Usage:

  • "{{f/}}2" produces f/2
  • "{{f/|2}}" produces f/2
  • "{{f/|2|link=yes}}" produces f/2
  • "{{f/|#}}" produces f/#

See also

id:Template:f/