Difference between revisions of "Template:H:title"

From Recidemia English
Jump to: navigation, search
m (+category)
 
(fix)
Line 1: Line 1:
<span title="{{{1}}}" style="border-bottom:1px dotted" id=title>{{{2}}}</span><noinclude>[[Category:Text formatting templates|{{PAGENAME}}]]</noinclude>
+
{{#ifeq:{{{link}}}|yes
 +
|[[{{{2}}}|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no|
 +
  |style="border-bottom:1px dotted"
 +
}}>{{{2}}}</span>]]
 +
|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no|
 +
  |style="border-bottom:1px dotted"
 +
}}>{{{2}}}</span>
 +
}}<noinclude>
 +
{{documentation}}
 +
</noinclude>

Revision as of 14:14, 18 January 2010

{{{2}}}

[edit] [history] [purge] Documentation icon Template documentation

Usage

{{H:title
 |spantitle
 |label
 |link=yes/no (defaults to "no")
 |dotted=yes/no (defaults to "yes")
}}

Examples

  • {{H:title|Hello|example|link=yes}} produces example.
  • {{H:title|Hello|example|dotted=no}} produces example.

Accessibility issue

This template uses a hover attribute, which is discouraged by Wikipedia:Manual of Style (accessibility)#Text.

For marking abbreviations specifically, please use {{abbr}} instead, because it is accessible to screen reader users.

See also

ca:Plantilla:Text emergent

ia:Patrono:H:title ja:Template:H:title sl:Predloga:H:title pt:Predefinição:H:title