Template:H:title

From FamilySearch Wiki

(Difference between revisions)
(Create)
 
(Allow another option)
Line 2: Line 2:
 
  |[[{{{2}}}|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no|
 
  |[[{{{2}}}|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no|
 
   |style="border-bottom:1px dotted"
 
   |style="border-bottom:1px dotted"
  }}>{{{2}}}</span>]]
+
  }}>{{{3|{{{2}}}</span>]]
 
  |<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no|
 
  |<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no|
 
   |style="border-bottom:1px dotted"
 
   |style="border-bottom:1px dotted"

Revision as of 18:36, 17 March 2010

{{#ifeq:{{{link}}}|yes

|[[{{{2}}}|{Template:3
[view] [edit] [history] [purge] Documentation icon Template documentation

Usage

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

Examples

  • {{H:title|Hello|example}} produces example.
  • {{H:title|Hello|example|link=yes}} produces example.
  • {{H:title|Hello|example|dotted=no}} produces example.
  • {{H:title|Hello|example|link=yes|dotted=no}} produces example.
  • {{H:title|Hello|example|label=some other display|link=yes|dotted=no}} produces some other display.
  • {{H:title|Hello|http://google.com|label=Google search|link=yes|dotted=no|external=yes}} produces Google search.

See also