Template: Difference between revisions

From BitProjects
Jump to navigation Jump to search
Infobox>Oicumayberight
linked mailing list
Line 23: Line 23:
=== Wiki templates ===
=== Wiki templates ===
[[Help:template|Wiki template]]s are powerful tools for editing Wikipedia articles.  
[[Help:template|Wiki template]]s are powerful tools for editing Wikipedia articles.  
<br/>A "wiki template" is a kind of [[Web_template#Sub-template|sub-template]]. The "wiki language" uses the notation <code><nowiki>{{template-name}}</nowiki></code> for the [[Web_template#Simple_substitution_templates|sub-template reference]]. The ''template declaration'' is on <code><nowiki>[[Template:template-name]]</nowiki></code>.
<br/>A "wiki template" is a kind of [[Web_template#Sub-template|sub-template]]. The "Wikipedia Edit Language" uses the notation <code><nowiki>{{template-name}}</nowiki></code> for the [[Web_template#Simple_substitution_templates|sub-template reference]]. The ''template definition'' (templare source code) is on <code><nowiki>[[Template:template-name]]</nowiki></code>.  


Types of used wiki-templates:
Finding templates:
* [[Template:Subst]] — a template that reminds users to subst.
* [[Wikipedia:Template messages]] - For "listing by category" the existing templates which you may find useful.
* ...
* [[Wikipedia:Navigational templates]] and [[Category:Navigational_templates]] - For "listing by category" the existing "navigational templates".
Groups of templates:
* [[Special:ExpandTemplates]] - Takes some text and expands all templates in it recursively.
* [[Wikipedia:Citation templates]]  
* [[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.  


Help to use template:  
Help to use template:  
* [[m:Help:Substitution]] more detailed information on subst template (on the Meta-Wiki).
* [[m:Help:Substitution]] - more detailed information on subst template (on the Meta-Wiki).
* [[Help:template]] wiki template help page.
* [[Help:template]] - wiki template help page.
* [[Help:Editing#Templates]] another help page.
* [[Help:Editing#Templates]] - another help page.


Finding templates:
Explanations and types of wiki-templates:
* [[Wikipedia:Template messages]]
* [[Wikipedia:Citation templates]]  
* [[Special:ExpandTemplates]]
* [[Template:Subst]] - a template that reminds users to subst.
* [[Special:Unusedtemplates]]
 
Note:  technically  the "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
<nowiki>{{#if:{{{variable_foo|}}}
|foo is set to '''{{{variable_foo}}}'''
|foo is ''blank''}}</nowiki>





Revision as of 07:43, 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:

Note: technically the "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:模板