Template:Phi/doc

From testwiki
Jump to navigation Jump to search

Template:Documentation subpage

This template returns the Greek letter phi for use in mathematics. A call to this template will produce characters such as Template:Phi, Template:Phi (with Template:Para), or Template:Phi (with Template:Para).

Wiki code Rendered result Compared to: which is produced by: Note
<math>\phi</math> ϕ This template is named after the LaTeX naming convention for "phi", which is opposite of the HTML convention.
{{phi}} Template:Phi ϕ ''&varphi;''
{{phi|bold=true}} Template:Phi ϕ '''''&varphi;'''''
{{phi|noitalic=true}} Template:Phi ϕ &varphi;
{{phi|noitalic=true|bold=true}} Template:Phi ϕ '''&varphi;'''
<math>\varphi</math> φ
{{phi|var=true}} Template:Phi φ ''&phi;''
{{phi|var=true|bold=true}} Template:Phi φ '''''&phi;'''''
{{phi|var=true|noitalic=true}} Template:Phi φ &phi;
{{phi|var=true|noitalic=true|bold=true}} Template:Phi φ '''&phi;'''
<math>\Phi</math> Φ
{{phi|uc=true}} Template:Phi Φ ''&Phi;''
{{phi|uc=true|bold=true}} Template:Phi Φ '''''&Phi;'''''
{{phi|uc=true|noitalic=true}} Template:Phi Φ &Phi;
{{phi|uc=true|var=true}} Template:Phi Because var=true is set, the parameter uc=true is ignored.
{{phi|uc=true|var=true|bold=true}} Template:Phi Because var=true is set, the parameter uc=true is ignored.
{{phi|uc=true|var=true|noitalic=true}} Template:Phi Because var=true is set, the parameter uc=true is ignored.
{{phi|uc=true|var=true|noitalic=true|bold=true}} Template:Phi Because var=true is set, the parameter uc=true is ignored.

TemplateData

<templatedata> { "params": { "uc": { "label": "Uppercase", "description": "Whether or not the character displayed is uppercase.", "aliases": [ "uppercase" ], "type": "boolean", "autovalue": "0" }, "noitalic": { "label": "No italic", "description": "Whether or not the character displayed is not italic.", "type": "boolean", "autovalue": "0" }, "var": { "label": "var", "description": "Whether to use the variation of the character for the end of a word.", "type": "boolean", "autovalue": "0" }, "bold": { "label": "bold", "description": "Whether to use the variation of the character that is bold. Note: Not every symbol has a corresponding bold character.", "type": "boolean", "autovalue": "0" } }, "description": "This template displays the Greek letter phi for use in mathematical equations." } </templatedata>

See also