Help:A quick guide to templates: Difference between revisions

Content deleted Content added
explain a little more
Any→many
Tags: Mobile edit Mobile web edit
Line 5:
[[Image:Sandfoermchen-3.jpg|right|300px|thumb|A template allows you to reproduce content quickly.]]
 
A '''template''' is a Wikipedia page created to be included in other pages and usually contain repetitive material that might need to show up on anymany number of articles or pages, often with customizable input. Most templates are ''scripts'' using [[MediaWiki]] parser functions, nicknamed "[[Help:Magic words|magic words]]", a simple [[scripting language]].
 
Template pages are found in the [[Wikipedia:Template namespace|template namespace]]. This means any page whose title begins with "Template:", such as "[[Template:foo]]", can be used for that purpose. The content from a template titled Template:foo can be added into a Wikipedia page by editing a page and typing <code><nowiki>{{foo}}</nowiki></code> into it. When then viewing the page, <code><nowiki>{{foo}}</nowiki></code> is automatically replaced by the content of the page "Template:foo". If the page "Template:foo" is later altered, all the pages with <code><nowiki>{{foo}}</nowiki></code> in them will change automatically.