Toggle menu
15
236
70
27.6K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 04:04, 18 February 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} <!-- Categories and interwikis go at the bottom of this page. --> == Usage == Simply uses CSS to force a serif font on the surrounded content: <nowiki>{{serif|IV}}</nowiki> gives: {{serif|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 {{serif|I}}, etc. ===Optional parameters=== Advanced HTML values can be passed thr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

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

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); adds class="classname[s]" to the HTML code
  • |style= takes inline CSS input; addes style="CSS directive[s]" to the HTML code
  • |id= takes a valid, unique HTML id (must begin with an alphabetic letter); adds id="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