Difference between revisions of "Template:Template Explanation"

From Krafties
Jump to navigation Jump to search
m
m (Replaced content with "#REDIRECT Template:Documentation")
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
{|<onlyinclude>class=pinktable style="width:100%;background:white;"
+
#REDIRECT [[Template:Documentation]]
!{{{title|Template Explanation}}}
 
|-
 
|style="{{{style|padding-left:10px;}}}"|</onlyinclude>
 
|}
 
 
 
{|{{Template Explanation}}[[Category:Templates]]
 
 
 
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.
 
*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.
 
*If you run into a template with a ''broken explanation box'', then it would be nice if you could help me fix it. Remember that table parameters only work at the beginning of a line.
 
*#just find the beginning of the template, <code><nowiki>{{Template Explanation|...</nowiki></code> and change it into <code><nowiki>{|{{Template Explanation}}... </nowiki></code>
 
*#finish it by closing the table by finding the end of it, <code><nowiki>}}</nowiki></code> needs to become <code><nowiki>|}</nowiki></code>, then the box will look as intended.
 
===How to Use===
 
<pre>
 
{| {{Template Explanation}}
 
The content
 
|}
 
</pre>
 
 
 
===Optional commands you can use===
 
*'''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).
 
 
 
==Notes==
 
:Be careful to close all <code><nowiki>{{ }}</nowiki></code> tags within the explanation area, else it can cause this template not to work.
 
*Any open tags can cause the template to not work below that point, even the use of <nowiki>=</nowiki> can be enough. Use the <code><nowiki><nowiki></nowiki></code> tags to prevent the template breaking
 
 
 
|}
 

Latest revision as of 06:59, 2 May 2017