Vorlage:Strong/Doku

Aus Aka's Wiki
< Vorlage:Strong
Version vom 16. August 2018, 22:03 Uhr von Akamaru (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „<noinclude>{{Dokumentation/Dokuseite}}</noinclude> == Purpose == This template makes it faster and easier to apply the {{tag|strong}} {{strong|strong emphasis…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen
Dokumentations-Unterseite Diese Seite ist die Dokumentations-Unterseite der Vorlage:Strong.

Purpose

This template makes it faster and easier to apply the <strong>...</strong> strong emphasis HTML element to text, and more importantly to indicate to human and bot editors they should not use '''...''' or <b>...</b> typographic boldfacing to replace the intentional and semantically meaningful <strong>. Strong emphasis is usually rendered visually in a bold (heavy) typeface by default on graphical browsers, but can be parsed and acted upon in customizable ways with style sheets, apps and text-to-speech screen readers. It is said to be w:en:semantic markup, i.e. markup that conveys meaning or context, not just visual appearance. Simple boldfacing is purely typographic and is semantically meaningless. It is most often used for headings, but has a few other uses (such as for book or film titles and the like, which are usually italicized, when they appear in an already-italicized passage). The average reader, and average editor, do not and need not care about this distinction most of the time, but it can be important and editors who understand it can use this template as a baseline insurance against accidental or careless replacement by bots and human editors.

Usage

Vorlage:Tlnull

or, if the text to be emphasized contains an equals sign:

Vorlage:Tlnull

These both render as:

text to be emphasized

This template puts intentional and explicit <strong>...</strong> (strong 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" when the cursor hovers over the Vorlage:Tnull span

When this template should not be used

Because Vorlage:Tnull is strictly for semantic (meaningful) emphasis, it should not be used for layout, typography conventions and such. In these different cases, bold '''...''' (which resolves to <b>...</b> in the browser or other user agent) should be used instead. It should also not be used when the text to which it is applied is already boldfaced for some other reason (e.g., it is part of a heading); in such cases use {{em}} instead. Avoid using Vorlage:Tnull in non-quoted sentences that end in an exclamation point. And it is usually excessive to use it on terms that are already wikilinked, since the link markup acts as a form of emphasis itself.