قالب:Em/شرح

من أرابيكا، الموسوعة الحرة
اذهب إلى التنقل اذهب إلى البحث

استعمال

: {{tnull|em|<var>text to be emphasized</var>}}
or, if the text to be emphasized contains an equals sign:
: {{tnull|em|'''1{{=}}'''<var>text to be emphasized</var>}}

These both render as:
: {{em|text to be emphasized}}

This template puts intentional and explicit {{tag|em}} (emphasis) [X]HTML markup around the text provided as the first parameter. It is safest to always use the {{وسيط قالب|1}} syntax.

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 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" (in most browsers) when the cursor hovers over the span

مثال