Difference between revisions of "Template:Template Explanation"

From Krafties
Jump to navigation Jump to search
m
m
Line 7: Line 7:
  
 
{|{{Template Explanation}}[[Category:Templates]]
 
{|{{Template Explanation}}[[Category:Templates]]
*You need to create the normal Table parameters yourself though, <code><nowiki>{|</nowiki></code> and <code><nowiki>|}</nowiki></code>, and insert this template within it at the top.
+
:;This template does NOT automatically include the <code><nowiki><noinclude></nowiki></code>
This template will help unify the overall look of the "Template Explanation" box, by inserting the header and styling for you. Because of easy breaking of template when filling it with examples of template use, I had to alter it so you have to insert it within table parameters instead of it including the table.
+
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.
===How to Use===
+
 
 +
There are various ways the <code>include</code> 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, <code><nowiki>{|</nowiki></code> and <code><nowiki>|}</nowiki></code>, and insert this template within it at the top.
 +
*Also remember to have the ''template explanation'' tags within <code><nowiki><noinclude></nowiki></code> tags so it wont appear outside of the template-page itself.
 
<pre>
 
<pre>
 
{| {{Template Explanation}}
 
{| {{Template Explanation}}
Line 16: Line 21:
 
</pre>
 
</pre>
  
===Optional commands you can use===
+
:;Optional commands for the ''Template Explanation''
*'''title=''' will let you change the text in the header
+
:*'''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).
+
:*'''style=''' lets you customize the styling of the content cell (to change padding and such).
  
==Using the "help templates" for repeating information==
+
===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''
 
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''
 
*Please add any template specific information before the ''help template''

Revision as of 07:21, 25 June 2015

Template Explanation

contents

Template Explanation
This template does NOT automatically include the <noinclude>

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