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

From FamilySearch Wiki
Jump to: navigation, search
(Create)
 
(Test)
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Documentation subpage}}
+
{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->  
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
  
=== Usage ===
+
=== Usage ===
 
<pre>{{H:title
 
<pre>{{H:title
 
  |spantitle
 
  |spantitle
  |label
+
|url (or url=link)
 +
  |label (or 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")
}}</pre>
+
|external=yes/no (defaults to "no")
 +
}}</pre>  
 +
=== Examples  ===
  
=== Examples ===
+
*<nowiki>{{H:title|Hello|example}}</nowiki> produces {{H:title|Hello|example}}.
*<nowiki>{{H:title|Hello|example}}</nowiki> produces {{H:title|Hello|example}}.
+
*<nowiki>{{H:title|Hello|example|link=yes}}</nowiki> produces {{H:title|Hello|example|link=yes}}.
*<nowiki>{{H:title|Hello|example|link=yes}}</nowiki> produces {{H:title|Hello|example|link=yes}}.
+
*<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|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|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 ===
  
 
<includeonly>
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Typing-aid templates]]
 
[[Category:Typing-aid templates]]
 
[[ia:Patrono:H:title]]
 
[[sl:Predloga:H:title]]
 
 
 
</includeonly>
 
</includeonly>

Latest revision as of 20:14, 17 March 2010

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