Template:H:title

From FamilySearch Wiki

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

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

|{{#ifeq:no|yes|[|[[}}{{{2}}}|{{{2}}}]]]
|{{{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