Help:Templates: Difference between revisions

From Robin's SM-201 Website
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
;* [[sa]] - See also templates
;* [[sa]] - See also templates
;* [[help:categories]]
;* [[help:categories]]
;* [[Help:Infoboxes]]
;* [[Templates]] snippets of templates
;* [[Templates]] snippets of templates
== General ==
== General ==

Revision as of 18:41, 10 August 2020

The (whole) contents of one page can be placed onto another page via a process called Transclusion (comparable to calling a subroutine). If a page is specially intended for this purpose it is called a template.

Expansion is at page view time unless substitution is applied, in which case the expanded wikitext is saved. The wikitext for the parameter name is expanded, further see the parameter section.

General

The template namespace is the namespace with prefix "Template:" A page in this namespace is called a template. The contents of such a page (either fixed or depending on parameters and/or variables) is designed to be useful for insertion in other pages (transclusion, creating a compound document).

The syntax for insertion of the page "Template:name" is {{name}}. This is called a template tag, and comprises two instances of the "brace" at either side of the template page name, excluding the "Template:" prefix.

See also Templates

Chain-09.png
Jump to: Main PageMicropediaMacropediaIconsTime LineHistoryLife LessonsLinksHelp
Chat roomsWhat links hereCopyright infoContact informationCategory:Root