Template:Em/doc: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SMcCandlish
creating template documentation
 
meta>SMcCandlish
tweak
Line 9: Line 9:


:{{tlnull|em|'''1{{=}}'''<var>text to be emphasized if it contains an equals sign</var>}}
:{{tlnull|em|'''1{{=}}'''<var>text to be emphasized if it contains an equals sign</var>}}
These both render as:
:{{em|text to be emphasized}}


This template puts intentional and explicit <code><nowiki><em>...</em></nowiki></code> (emphasis) markup around the text provided as the one and only parameter. It is safest to always use the {{para|1}} syntax.
This template puts intentional and explicit <code><nowiki><em>...</em></nowiki></code> (emphasis) markup around the text provided as the one and only parameter. It is safest to always use the {{para|1}} syntax.


The purpose of this template is to make it faster and easier to apply HTML "emphasis" style to text, and more importantly to completely prevent bad-behaving bots from replacing intentionally and semantically meaningful <code>&lt;em&gt;</code> (which is usually rendered visually in an italic typeface by default on graphical browsers, but can be parsed and acted upon in customizable ways with stylesheets, apps and text-to-speech screen readers) with purely typographic and semantically meaningless simple italicization (as used for book titles, etc.) in either <code>&lt;em&gt;</code> or <code>'<nowiki />'</code> format.  The average user, and average editor, do not and need not care about this distinction most of the time, but the distinction can be important and editors who understand it can use this template as a baseline insurance against accidental or careless replacement by bots (or humans for that matter).
The purpose of this template is to make it faster and easier to apply HTML "emphasis" style to text, and more importantly to completely prevent bad-behaving bots from replacing intentionally and semantically meaningful <code>&lt;em&gt;</code> (which is usually rendered visually in an italic 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) with purely typographic and semantically meaningless simple italicization (as used for book titles, etc.) in either <code>&lt;em&gt;</code> or <code>'<nowiki />'</code> format.  The average user, and average editor, do not and need not care about this distinction most of the time, but the distinction can be important and editors who understand it can use this template as a baseline insurance against accidental or careless replacement by bots (or humans for that matter).
 
===Optional parameters===


== See also ==
== See also ==

Revision as of 08:56, 29 September 2010

Usage

Template:Tlnull

or

Template:Tlnull

These both render as:

text to be emphasized

This template puts intentional and explicit <em>...</em> (emphasis) markup around the text provided as the one and only parameter. It is safest to always use the |1= syntax.

The purpose of this template is to make it faster and easier to apply HTML "emphasis" style to text, and more importantly to completely prevent bad-behaving bots from replacing intentionally and semantically meaningful <em> (which is usually rendered visually in an italic 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) with purely typographic and semantically meaningless simple italicization (as used for book titles, etc.) in either <em> or '' format. The average user, and average editor, do not and need not care about this distinction most of the time, but the distinction can be important and editors who understand it can use this template as a baseline insurance against accidental or careless replacement by bots (or humans for that matter).

Optional parameters

See also

  • {{strong}} - same thing but for preventing <strong> markup being changed into <b> or '''