Help:Template
(Redirected from Help:Templates)
This page has been moved to Help:Template on mediawiki.org.
Any modifications or additions to this page should be made on mediawiki.org instead. |
The below content has yet to be checked to make sure it is still present on the MediaWiki page if relevant.
The contents of one page can be placed onto another page by using a template.[1]
This page and Help:Advanced templates are a reference manual on templates in MediaWiki. See also User:Happy-melon/Templates. For an introduction, see mw:Help:Templates. For syntax often used within templates, see mw:Help:Parser function, Help:Extension:ParserFunctions (on MediaWiki.org) and other "Advanced functioning" help pages listed hereafter.
Notes
- ↑ This process is called transclusion . If a page is specially intended for this purpose, it is called a template. In terms of programming languages, the wikitext of a page can be considered a string expression. In this view a template call is the call of a string function. The template page is the function body. The resulting string may are either be fixed or depend on parameters and/or variables. Other than in many programming languages the declaration of the function does not start with a formal parameter list, it consists of the function body only, which is a string expression for the result. See also compound document.
See also
- mw:Help:Parser function
- mw:Help:Extension:ParserFunctions
- Help:Parameter default
- mw:Help:Magic words
- Help:Substitution
- Help:Template documentation
- Help:Newlines and spaces#Automatic newline
- mw:Help:What links here
- Special:Mostlinkedtemplates - shows the number of pages in which each template is transcluded, not counting transclusions through redirects
- Special:Unusedtemplates - templates which are not transcluded (however, they may be used for substitution)
- interwiki transclusion
- List of all templates on this wiki
- w:Wikipedia:Template namespace
- mw:Help:ExpandTemplates
- mw:Extension:Labeled Section Transclusion - transclusion of part of a page
- w:Wikipedia:Template doc page pattern
- w:Wikipedia:Template_limits
- w:Wikipedia:Anatomy_of_a_template
- w:Wikipedia:Transclusion_costs_and_benefits
- mw:Manual:Parser.php
- mw:Lua
- Template preview feature
See also Meta:List of templates.
Links to other help pages
- Help contents
- Meta · Wikinews · Wikipedia · Wikiquote · Wiktionary · Commons: · Wikidata · MediaWiki · Wikibooks · Wikisource · MediaWiki: Manual · Google
- Versions of this help page (for other languages see further)
- What links here on Meta or from Meta · Wikipedia · MediaWiki
- Reading
- Go · Search · Namespace · Page name · Section · Backlinks · Redirect · Category · Image page · Special pages · Printable version
- Tracking changes
- Recent changes (enhanced) | Related changes · Watching pages · Diff · Page history · Edit summary · User contributions · Minor edit · Patrolled edit
- Logging in and preferences
- Logging in · Preferences
- Editing
- Starting a new page · Advanced editing · Editing FAQ · Export · Import · Shortcuts · Edit conflict · Page size
- Referencing
- Links · URL · Interwiki linking · Footnotes
- Style and formatting
- Wikitext examples · CSS · Reference card · HTML in wikitext · Formula · Lists · Table · Sorting · Colors · Images and file uploads
- Fixing mistakes
- Show preview · Reverting edits
- Advanced functioning
- Expansion · Template · Advanced templates · Parser function · Parameter default · Magic words · System message · Substitution · Array · Calculation · Transclusion
- Others
- Special characters · Renaming (moving) a page · Preparing a page for translation · Talk page · Signatures · Sandbox · Legal issues for editors