Difference between revisions of "Help:Templates"

From Pangaea Wiki
Jump to: navigation, search
(Created page with " Templates explained for generic understanding of how templates work, how to use them. All templates are special to each wiki because they h...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
__NOTOC__
 +
Templates are pretty simple to use once you get the hang of it. They insert content to pages without cluttering it, which is useful for repetitive items. Complex templates can be forms which you can easily fill out when following the directions displayed on the template's page.
  
[[mediawikiwiki:Help:Templates|Templates explained]] for generic understanding of how templates work, how to use them.  
+
==What are Templates?==
 +
*Templates make formatting the wiki easier
 +
*They can contain table codes, layouts and plain information which is easy to insert wherever needed
 +
*They add whatever is in the template onto the pages which you place the <code><nowiki>{{Template}}</nowiki></code> tag
 +
*They can also be used like fill-in forms, placing the details into complex tables without the mess
 +
*Templates are important, in order to have control over layouts and information that are being repeated alot, by simply editing the template and it updates every page which uses that very template.
 +
*they clear away alot of the clutter which table codes can become
  
All templates are special to each wiki because they have to be implemented. They might be derived from other wikis, gain from shared knowledge, but they are in most cases adjusted to suit the needs of each wiki.
+
===How do I use them===
 
+
:When you view the template page itself, you will see a '''Template Documentation''' at the bottom of the page which will explain to you what the specific template is for and what commands work with it
;Creating templates
+
[[File:EditingWiki.png|This is how it is when ''editing'' the wiki. Notice the "Templates Used" on the bottom]]
:It is best to contact [[User:MyraMidnight|MyraMidnight]] if you think we require new templates, but if you are confident in your template skills, then feel free to try your hand at it.
+
==How can I see what templates are being used?==
 
+
:You can always find what templates are currently in use on a page when editing.
;Protected templates
+
:*If you are editing a section (instead of entire page at once) all you need to do is press ''"Show Preview"''' and the list of templates will appear if any
:[[User:MyraMidnight|MyraMidnight]] has dominion over the core templates that set the foundation of our wiki. Do not worry about adjusting them though, because if the template is deemed essential and might cause a chain reaction of broken templates if changed incorrectly, then they are simply locked and only admins can edit them.
+
:*Just press the link to the template you wish to view, there you should be able to find a guide on how to use the more complex templates
 
+
:*Be aware that even if only a single template is being used, the tempate list can appear longer. This is because it will also count the templates within the template being used.
{{Template:Help}}
+
==How can I tell if any page is using the template?==
 +
:You can see what pages are using a template the same way as you can see if any page is being linked to
 +
:*In the sidebar here on the left you can see a link "What links here"
 +
:*When on template pages, it will list what pages are using that very template.

Latest revision as of 21:03, 20 October 2020

Templates are pretty simple to use once you get the hang of it. They insert content to pages without cluttering it, which is useful for repetitive items. Complex templates can be forms which you can easily fill out when following the directions displayed on the template's page.

What are Templates?

  • Templates make formatting the wiki easier
  • They can contain table codes, layouts and plain information which is easy to insert wherever needed
  • They add whatever is in the template onto the pages which you place the {{Template}} tag
  • They can also be used like fill-in forms, placing the details into complex tables without the mess
  • Templates are important, in order to have control over layouts and information that are being repeated alot, by simply editing the template and it updates every page which uses that very template.
  • they clear away alot of the clutter which table codes can become

How do I use them

When you view the template page itself, you will see a Template Documentation at the bottom of the page which will explain to you what the specific template is for and what commands work with it

This is how it is when editing the wiki. Notice the "Templates Used" on the bottom

How can I see what templates are being used?

You can always find what templates are currently in use on a page when editing.
  • If you are editing a section (instead of entire page at once) all you need to do is press "Show Preview"' and the list of templates will appear if any
  • Just press the link to the template you wish to view, there you should be able to find a guide on how to use the more complex templates
  • Be aware that even if only a single template is being used, the tempate list can appear longer. This is because it will also count the templates within the template being used.

How can I tell if any page is using the template?

You can see what pages are using a template the same way as you can see if any page is being linked to
  • In the sidebar here on the left you can see a link "What links here"
  • When on template pages, it will list what pages are using that very template.