Template:H:title

From FamilySearch Wiki

(Difference between revisions)
(Adjust option)
(Undo)
Line 1: Line 1:
 
{{#ifeq:{{{link}}}|yes
 
{{#ifeq:{{{link}}}|yes
  |{{#ifeq:{{{external}}}|yes|[|}}[{{{2}}}{{#ifeq:{{{external}}}|yes| |{{{!}}}}}<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no|
+
  |[[{{{3|{{{2}}}}}}|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no|
 
   |style="border-bottom:1px dotted"
 
   |style="border-bottom:1px dotted"
  }}>{{{3|{{{2}}}}}}</span>]{{#ifeq:{{{external}}}|yes|]|}}
+
  }}>{{{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 19:08, 17 March 2010

{{{2}}}

[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