Template: Difference between revisions

From BitProjects
Jump to navigation Jump to search
Line 30: Line 30:
* [[Special:ExpandTemplates]] - Takes some text and expands all templates in it recursively.
* [[Special:ExpandTemplates]] - Takes some text and expands all templates in it recursively.
* [[Special:Unusedtemplates]] - Lists all pages in the template namespace which are not included in another page.  
* [[Special:Unusedtemplates]] - Lists all pages in the template namespace which are not included in another page.  
* Use <code><nowiki>[[Template:template-name]]</nowiki></code> on edit to produce a link to the template declaration.  
* Use <code><nowiki>[[Template:template-name]]</nowiki></code> on edit to produce a link to the ''template declaration''.


Help to use template:  
Help to use template:  
Line 41: Line 41:
* [[Template:Subst]] - a template that reminds users to subst.
* [[Template:Subst]] - a template that reminds users to subst.


Notetechnically  the "wiki template references" are embedded on the "Wikipedia Edit Language", as a  
'''Technical note''':  "Wiki template references" are embedded on the "Wikipedia Edit Language", as a  
[[Web_template#Template_format_strategies|web template embedded language]], using the open <code><nowiki>{{</nowiki></code> and close  <code><nowiki>}}</nowiki></code> ''hooks'', for enclose the [[Web_template#Template_languages|wiki template language syntax]], where valid names and valid instructions can be used,  like template reference, as <code><nowiki>{{disambig}}</nowiki></code>, and conditions, as  
[[Web_template#Template_format_strategies|web template embedded language]], using the open <code><nowiki>{{</nowiki></code> and close  <code><nowiki>}}</nowiki></code> ''hooks'', for enclose the [[Web_template#Template_languages|wiki template language syntax]], where valid names and valid instructions can be used,  like template reference, as <code><nowiki>{{disambig}}</nowiki></code>, and conditions, as  
  <nowiki>{{#if:{{{variable_foo|}}}
  <nowiki>{{#if:{{{variable_foo|}}}

Revision as of 07:47, 23 November 2006

Template:Selfref For Wikipedia:Template messages, see that article.

Template:Wiktionary Template may mean:

See also

  • Pattern
  • Stencil, a device used in drawing or painting to replicate shapes.

Wiki templates

Wiki templates are powerful tools for editing Wikipedia articles.
A "wiki template" is a kind of sub-template. The "Wikipedia Edit Language" uses the notation {{template-name}} for the sub-template reference. The template definition (templare source code) is on [[Template:template-name]].

Finding templates:

Help to use template:

Explanations and types of wiki-templates:

Technical note: "Wiki template references" are embedded on the "Wikipedia Edit Language", as a web template embedded language, using the open {{ and close }} hooks, for enclose the wiki template language syntax, where valid names and valid instructions can be used, like template reference, as {{disambig}}, and conditions, as

{{#if:{{{variable_foo|}}}
 |foo is set to '''{{{variable_foo}}}'''
 |foo is ''blank''}}


Template:Disambig

da:Skabelon de:Template es:Plantilla eo:Sxablono fr:Template nl:Sjabloon ja:テンプレート pl:Szablon ru:Шаблон (программирование) simple:Template zh:模板