Please remember that WiKirby contains spoilers, which you read at your own risk! See our general disclaimer for details.

Help:Templates: Difference between revisions

From WiKirby, your independent source of Kirby knowledge.
Jump to navigationJump to search
*>Aphelocoma Mario
(→‎Types of Templates: I don't know why this isn't listed here.)
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{HelpNav}}
'''Templates''' are a handy way of plopping down complicated pieces of wiki magic into articles using simple text commands. They are essential for practically all articles, and any editor who wants to get serious will need to become familiar with many of them. The best way to learn how templates work is to see how they are used on existing pages, and then go to the template page itself to read the documentation.
'''Templates''' are just that: templates that can be used on any page to standardize some element. There are many kinds of templates, each serving a different goal.
 
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 of Templates ==
The following is a brief overview of all the basic template types an editor should expect to manipulate:
=== 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, as can be seen with templates such as the {{[[Template:Navbox-Games|Navbox-Games]]}} or {{[[Template:Glitches|gitches]]}} templates. These contain no extra parameters to modify.
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, as can be seen with templates such as the {{[[Template:Navbox-Games|Navbox-Games]]}} or {{[[Template:Navbox-Glitches|Navbox-Glitches]]}} templates. These contain no extra parameters to modify.


=== Infobox Templates ===
=== Infobox Templates ===
:''See all [[:Category:Infobox Templates|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 {{[[Template:Game|game]]}} or {{[[Template:System|system]]}}. 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 {{[[Template:Infobox-Game|game]]}} or {{[[Template:Infobox-Console|system]]}}. These contain extra parameters to modify in order to display the necessary information.
 
For more information about how to use these templates, see [[Help:Using infoboxes|this help page]].


=== Formatting Templates ===
=== Formatting Templates ===
:''See all [[:Category:Formatting Templates|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. An excellent example would be the {{[[Template:Cite|cite]]}} template; it ensures that all in-game citations in references appear the same throughout the entire site. These contain extra parameters to modify.
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. An excellent example would be the {{[[Template:Cite|cite]]}} template; it ensures that all in-game citations in references appear the same throughout the entire site. These contain extra parameters to modify.


=== Notice Templates ===
=== Notice Templates ===
:''See all [[:Category:Notice Templates|notice templates]]''
:''See all [[:Category:Notice templates|notice templates]]''
Notice templates are typically placed in an article as a flag for improving the article or telling users details. They are also used in user pages to notify users (such as welcoming, warning, and others.) Some templates may contain other parameters to modify.
Notice templates are typically placed in an article as a flag for improving the article or telling users details. They are also used in user pages to notify users (such as welcoming, warning, and others.) Some templates may contain other parameters to modify.


== Making a Template ==
== See also ==
The easiest way is to add '''<nowiki>{</nowiki>{your template name}}''' to the [[WiKirby: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.
*'''[[Help:Creating templates|Creating templates]]''' - A guide for more advanced editors on how to build new templates.


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 to add the necessary category for that template. '''Do not''' finish the template, create a new line, and ''then'' add the <nowiki><noinclude></nowiki> tag.
{{clear}}


Use this to begin any new template.
{{Navbox-Help}}
<nowiki><noinclude>
[[Category:Wiki help pages]]
{{doc}}
[[Category:Basic help]]
[[Category:Something|{{PAGENAME}}]]
</noinclude></nowiki>

Latest revision as of 01:17, 28 January 2021

Templates are a handy way of plopping down complicated pieces of wiki magic into articles using simple text commands. They are essential for practically all articles, and any editor who wants to get serious will need to become familiar with many of them. The best way to learn how templates work is to see how they are used on existing pages, and then go to the template page itself to read the documentation.

Types of Templates

The following is a brief overview of all the basic template types an editor should expect to manipulate:

Navigation Templates

See all 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, as can be seen with templates such as the {{Navbox-Games}} or {{Navbox-Glitches}} templates. These contain no extra parameters to modify.

Infobox Templates

See all infobox templates

Infobox templates have specific fields relating to particular topics depending on what the infobox's intended purpose is, such as {{game}} or {{system}}. These contain extra parameters to modify in order to display the necessary information.

For more information about how to use these templates, see this help page.

Formatting Templates

See all 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. An excellent example would be the {{cite}} template; it ensures that all in-game citations in references appear the same throughout the entire site. These contain extra parameters to modify.

Notice Templates

See all notice templates

Notice templates are typically placed in an article as a flag for improving the article or telling users details. They are also used in user pages to notify users (such as welcoming, warning, and others.) Some templates may contain other parameters to modify.

See also

KSA Parasol Waddle Dee Pause Screen Artwork.png