Difference between revisions of "Help:Templates"

15 bytes added ,  00:50, 4 January 2019
updated
m (Text replace - 'Formatting Template' to 'Formatting Templates')
(updated)
 
(7 intermediate revisions by 3 users not shown)
Line 3: Line 3:
Essentially, a template is a separate page, and by including the name of  that page enclosed in <nowiki>{</nowiki>{two curly brackets}} in a page, the entire contents of that  template page will be displayed on the page you've posted it on. Many  templates have extra parameters that will form the actual content of the  template.
Essentially, a template is a separate page, and by including the name of  that page enclosed in <nowiki>{</nowiki>{two curly brackets}} in a page, the entire contents of that  template page will be displayed on the page you've posted it on. Many  templates have extra parameters that will form the actual content of the  template.


== Types of Templates ==
== Types ==
=== Navigation Templates ===
=== Navigation Templates ===
:''See all [[:Category:Navigation Templates|navigation  templates]]''
:''See all [[:Category:Navigation Templates|Navigation templates]]''
The simplest kind of  template, navigation templates are simple templates that list several  pages and facilitate page navigation. They are placed on pages of  similar types.
The simplest kind of  template, navigation templates are simple templates that list several  pages and facilitate page navigation. They are placed on pages of  similar types.


=== Infobox Templates ===
=== Infobox Templates ===
:''See all [[:Category:InfoBox Template|infobox  templates]]''
:''See all [[:Category:Infobox Templates|Infobox templates]]''
Infobox templates have  specific fields relating to particular topics depending on what the  infobox's intended purpose is, such as {{tl|games v2.0|games}} or {{tl|consoles v2.0|consoles}}.  These contain extra parameters to modify in order to display the  necessary information.
Infobox templates have  specific fields relating to particular topics depending on what the  infobox's intended purpose is, such as {{t|games|games}} or {{t|consoles|consoles}}.  These contain extra parameters to modify in order to display the  necessary information.


=== Formatting Templatess ===
=== Formatting Templates ===
:''See all [[Help:Template List|formatting  templates]]''
:''See all [[:Category:Formatting Templates|Formatting templates]]''
Formatting templates exist  to help with the standardization of formatting across the Wiki - they essentially mold what you've written to appear a certain way.
Formatting templates exist  to help with the standardization of formatting across the Wiki - they essentially mold what you've written to appear a certain way.


== Making a Template ==
== Making a Template ==
The easiest way is to add '''<nowiki>{</nowiki>{your template name}}'''  to the [[Lylat Wiki:Sandbox|Sandbox]], and click on the red link that  appears. From there you can create your template, which is most easily  done by copying and pasting the code from a similar template; then you  can just modify it.
The easiest way is to add '''<nowiki>{</nowiki>{your template name}}'''  to the [[Lylat Wiki:Sandbox|Sandbox]], and click on the red link that  appears. From there you can create your template, which is most easily  done by copying and pasting the code from a similar template; then you  can just modify it.


Make sure that at the end of the last line of  the ACTUAL TEMPLATE you add <nowiki><noinclude></nowiki> to begin any  section detailing how to use the template, and also the add the necessary category for that template. '''Do not'''  finish the template, create a new line, and ''then''  add the <nowiki><noinclude></nowiki> tag.
Make sure that at the end of the last line of  the ACTUAL TEMPLATE you add <nowiki><noinclude></nowiki> to begin any  section detailing how to use the template, and also the add the necessary category for that template. '''Do not'''  finish the template, create a new line, and ''then''  add the <nowiki><noinclude></nowiki> tag.
 
[[Category:Templates|{{PAGENAME}}]]
8,161

edits