Difference between revisions of "Template:H:title/doc"

From FamilySearch Wiki
Jump to: navigation, search
(Test)
(Update option)
Line 5: Line 5:
 
  |spantitle
 
  |spantitle
 
  |link
 
  |link
  |label (optional, uses link if not specified)
+
  |label=text (defaults to link text)
 
  |link=yes/no (defaults to "no")
 
  |link=yes/no (defaults to "no")
 
  |dotted=yes/no (defaults to "yes")
 
  |dotted=yes/no (defaults to "yes")
Line 16: Line 16:
 
*<nowiki>{{H:title|Hello|example|dotted=no}}</nowiki> produces {{H:title|Hello|example|dotted=no}}.  
 
*<nowiki>{{H:title|Hello|example|dotted=no}}</nowiki> produces {{H:title|Hello|example|dotted=no}}.  
 
*<nowiki>{{H:title|Hello|example|link=yes|dotted=no}}</nowiki> produces {{H:title|Hello|example|link=yes|dotted=no}}.  
 
*<nowiki>{{H:title|Hello|example|link=yes|dotted=no}}</nowiki> produces {{H:title|Hello|example|link=yes|dotted=no}}.  
*<nowiki>{{H:title|Hello|example|some other display|link=yes|dotted=no}}</nowiki> produces {{H:title|Hello|example|some other display|link=yes|dotted=no}}.  
+
*<nowiki>{{H:title|Hello|example|label=some other display|link=yes|dotted=no}}</nowiki> produces {{H:title|Hello|example|label=some other display|link=yes|dotted=no}}.  
*<nowiki>{{H:title|Hello|http://google.com|Google search|link=yes|dotted=no|external=yes}}</nowiki> produces {{H:title|Hello|http://google.com|Google search|link=yes|dotted=no|external=yes}}.
+
*<nowiki>{{H:title|Hello|http://google.com|label=Google search|link=yes|dotted=no|external=yes}}</nowiki> produces {{H:title|Hello|http://google.com|label=Google search|link=yes|dotted=no|external=yes}}.
  
 
=== See also  ===
 
=== See also  ===

Revision as of 20:04, 17 March 2010

Usage

{{H:title
 |spantitle
 |link
 |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