Template:Serif/doc
Appearance
This is a documentation subpage for Template:Serif. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 3,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Usage
[edit]Simply uses CSS to force a serif font on the surrounded content:
{{serif|IV}}
gives:
IV
This is useful when certain letters are always given in a serif font when used as a symbol for something, to distinguish better between lower-case l and Roman numeral I, etc.
Optional parameters
[edit]Advanced HTML values can be passed through the template to the HTML code:
|class=
takes a class name (or multiple class names, separated by spaces); addsclass="classname[s]"
to the HTML code|style=
takes inline CSS input; addesstyle="CSS directive[s]"
to the HTML code|id=
takes a valid, unique HTML id (must begin with an alphabetic letter); addsid="name"
to the HTML code|title=
takes text, which cannot be marked up in any way, and displays it as a pop-up "tooltip" when the cursor hovers over the{{serif}}
span
See also
[edit]