Template: Difference between revisions

From BitProjects
Jump to navigation Jump to search
No edit summary
Infobox>NapoleonB
bulleted separate meanings, rm 'What is a template' at bottom of article
Line 1: Line 1:
{{selfref|For the list of templates used in Wikipedia, see [[Wikipedia:Template messages]].}}
{{selfref|For the list of templates used in Wikipedia, see [[Wikipedia:Template messages]].}}
A '''template''' is some form of device to provide a separation of form or structure from content.
A '''template''' is some form of device to provide a separation of form or structure from content.
 
*In [[publishing]] for example, a template may be a predefined layout to give you an idea what to write where with boxes and lines; a single-page newsletter template (for instance), might have a few columns, space for a picture and gaps for the headline and name of the newsletter.
In [[publishing]] for example, a template may be a predefined layout to give you an idea what to write where with boxes and lines; a single-page newsletter template (for instance), might have a few columns, space for a picture and gaps for the headline and name of the newsletter.
*Templates can be used by humans or by automated systems; many web-based software packages now use a [[templating system]] to separate the logic of the program from the displayed formatting. Typically, these templates will include variables (often denoted {VARIABLE} ), and possibly a few logical operators to allow better adaptability of the template. Examples of [[template engine|template engines]] are [[CheetahTemplate|Cheetah]], [[Smarty]], [http://www.template-toolkit.org/ Template::Toolkit] and [[XSL Transformations]].
 
*In [[Generic programming|generic programming]], templates allow the programmer to save time and space in source code by simplifying code through overloading functions with an arbitrary type parameter.
Templates can be used by humans or by automated systems; many web-based software packages now use a [[templating system]] to separate the logic of the program from the displayed formatting. Typically, these templates will include variables (often denoted {VARIABLE} ), and possibly a few logical operators to allow better adaptability of the template. Examples of [[template engine|template engines]] are [[CheetahTemplate|Cheetah]], [[Smarty]], [http://www.template-toolkit.org/ Template::Toolkit] and [[XSL Transformations]].
*In [[genetics]], a strand of [[DNA]] or [[RNA]] may serve as a template by specifying the [[base sequence]] of a newly synthesized strand of DNA or RNA.
 
*In planning [[orthopedic surgery]] procedures, templates are overlays placed on X-ray films of bones to determine the size of the implants needed in the operation.
In [[Generic programming|generic programming]], templates allow the programmer to save time and space in source code by simplifying code through overloading functions with an arbitrary type parameter.
 
In [[genetics]], a strand of [[DNA]] or [[RNA]] may serve as a template by specifying the [[base sequence]] of a newly synthesized strand of DNA or RNA.
 
In planning [[orthopedic surgery]] procedures, templates are overlays placed on X-ray films of bones to determine the size of the implants needed in the operation.


==See also==
==See also==
Line 39: Line 33:
[[pl:Szablon]]
[[pl:Szablon]]
[[ru:Шаблон (программирование)]]
[[ru:Шаблон (программирование)]]
[[simple:Template]]What is a template
[[simple:Template]]

Revision as of 03:48, 31 March 2006

Template:Selfref A template is some form of device to provide a separation of form or structure from content.

  • In publishing for example, a template may be a predefined layout to give you an idea what to write where with boxes and lines; a single-page newsletter template (for instance), might have a few columns, space for a picture and gaps for the headline and name of the newsletter.
  • Templates can be used by humans or by automated systems; many web-based software packages now use a templating system to separate the logic of the program from the displayed formatting. Typically, these templates will include variables (often denoted {VARIABLE} ), and possibly a few logical operators to allow better adaptability of the template. Examples of template engines are Cheetah, Smarty, Template::Toolkit and XSL Transformations.
  • In generic programming, templates allow the programmer to save time and space in source code by simplifying code through overloading functions with an arbitrary type parameter.
  • In genetics, a strand of DNA or RNA may serve as a template by specifying the base sequence of a newly synthesized strand of DNA or RNA.
  • In planning orthopedic surgery procedures, templates are overlays placed on X-ray films of bones to determine the size of the implants needed in the operation.

See also

Template:Publish-stub Template:Web-stub Template:Comp-sci-stub Template:Genetics-stub Template:Treatment-stub

de:Template da:Skabelon es:Plantilla fr:Template nl:Sjabloon pl:Szablon ru:Шаблон (программирование) simple:Template