Search results
Results From The WOW.Com Content Network
A template is a Wikipedia page created to be included in other pages. It usually contains repetitive material that may need to show up on multiple articles or pages, often with customizable input. Templates sometimes use MediaWiki parser functions, nicknamed "magic words", a simple scripting language. Template pages are found in the template ...
MediaWiki expands a template as it renders a page. One can also say that the template itself expands, so both "MediaWiki expands {{{1}}} as the value of the first positional parameter" and "{{{1}}} expands as the value of the first positional parameter" work. Expansion of a page is also the page source that results from template expansion.
The MediaWiki software, which drives Wikipedia, allows the use of a subset of HTML 5 elements, or tags and their attributes, for presentation formatting. [1] However, most HTML functionality can be replicated using equivalent wiki markup or templates.
The {} template uses HTML, and will size-match a serif font, and will also prevent line-wrap. All templates are sensitive to the = sign, so remember to replace = with {} in template input, or start the input with 1=. Use wiki markup '' and ''' inside the {} template, as well as other HTML entities.
Templates are a very powerful feature of MediaWiki, but can be confusing to new users and even experienced users can have difficulty making sense of the more complex ones. Templates should therefore be accompanied by documentation to improve usability. Template documentation should explain what a template does and how to use it.
Wikipedia:Citation templates for templates used to format article references and citations; Wikipedia:Requested templates, to request creation of a template. Category:Wikipedia templates; Special:ExpandTemplates, expands all templates recursively; Use this form to search in the Template: or Template_talk: namespaces. See Help:Searching for more ...
Use a table to construct a "static infobox", converting to a template after the editor arrives at a "final" design. See also Wikipedia:Thinking outside the infobox. Use the MediaWiki template feature to construct the prototype using the documentation at mw:Help:Templates. While this provides the most flexibility, it is by far the most ...
Scribbled templates come in two parts: the template itself and one or more back-end modules — in the Module: namespace — that contain programs that are run on the wiki servers to generate the wikitext that the template expands to. The template invokes a function within a module using a new parser function named {{#invoke:}}.