FamilySearch Wiki:Template namespace: Difference between revisions

(Created page with '{{namespaces}} == Introduction to templates == Templates often look like text boxes with a different background color from that of normal text. They are in the [[FamilySearch WI…')
 
(→‎See also: fix cat)
 
(2 intermediate revisions by one other user not shown)
Line 6: Line 6:
For example, consider the template <tt>'''[[Template:Disambig]]'''</tt> (follow the link to see the page where it can be edited). To insert the template's content into an article, type <code><nowiki>{{Disambig}}</nowiki></code> in the wiki page ("<nowiki>{{Disambig}}</nowiki>" is called a ''template tag''). Every article with that tag in it will display the following text:
For example, consider the template <tt>'''[[Template:Disambig]]'''</tt> (follow the link to see the page where it can be edited). To insert the template's content into an article, type <code><nowiki>{{Disambig}}</nowiki></code> in the wiki page ("<nowiki>{{Disambig}}</nowiki>" is called a ''template tag''). Every article with that tag in it will display the following text:


{{Disambig|nocat=true}}
{{Disambig|category=}}


This technique is commonly known as '''{{wpd|transclusion}}'''. Templates can also include calculated and substituted elements, as well as [[parameter]]s, allowing for complex usage. For a table of some useful templates, see [[FamilySearch WIki:Template messages]]. For detailed templating documentation see [[Help:Template]].
This technique is commonly known as '''{{wpd|transclusion}}'''. Templates can also include calculated and substituted elements, as well as [[parameter]]s, allowing for complex usage. For a table of some useful templates, see [[FamilySearch WIki:Template messages]]. For detailed templating documentation see [[Help:Template]].
Line 101: Line 101:
* [[Help:Magic words]] for all template modifiers
* [[Help:Magic words]] for all template modifiers


[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates| {{PAGENAME}}]]
[[Category:How to articles|{{PAGENAME}}]]
oversight
8,840

edits