Difference between revisions of "Template:Template Explanation/doc"

From Krafties
Jump to navigation Jump to search
(Keeping things for demonstration purposes. This template content is obsolete.)
 
Line 40: Line 40:
 
==See Also==
 
==See Also==
 
{{Useful Templates}}
 
{{Useful Templates}}
|}
 

Revision as of 05:01, 2 May 2017

This template does NOT automatically include the <noinclude>
And a reminder to myself and others why this template is as it is. It is so we can use | in the template explanation without needing to use {{!}} constantly (normally it can break a template when used within template parameters).

The Template Explanation is for creating a obvious explanation section on the template page itself which is easy to identify. Within it should be the details about the specific template and how to use it.

There are various ways the include tags are used to direct what content displays when templates are used, thats why it has not been automatically included on this template. That is why you need to be sure that the Template Explanation is located in the appropriate place so it wont also appear when template is used.

How to use "Template Explanation" template

  • You need to create the normal Table parameters yourself though, {| and |}, and insert this template within it at the top.
  • Also remember to have the template explanation tags within <noinclude> tags so it wont appear outside of the template-page itself.
{| {{Template Explanation}}
The information about specific template
|}
Optional commands for the Template Explanation
  • title= will let you change the text in the header
  • style= lets you customize the styling of the content cell (to change padding and such).

Using the "help templates" for repeating information

When multiple templates function identically, then it can be tedious to fill in repeating information. Thats why I have made a few help-templates

  • Please add any template specific information before the help template
  • Insert the appropriate help template at the end, within the Explanation section
Help Templates and info
Tag/help General information about Tag templates
Table Cell Templates/help General information about Table Cell Templates
Multi-template directions
Navbox/help how to use the Navbox templates together
LearnSpell/help how to use the LearnSpell templates together

See Also