Bản mẫu:Serif/doc

Bách khoa toàn thư mở Wikipedia

Usage[sửa mã nguồn]

Simply uses CSS to force a serif font on the surrounded content:

{{serif|IV}}

gives:

IV

Optional parameters[sửa mã nguồn]

Advanced HTML values can be passed through the template to the HTML code:

  • |class= takes a class name (or multiple class names, separated by commas); 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