Templates Wiki

Editing

Template layout

1
  • The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit. If you are undoing an edit that is …
Latest revision Your text
Line 1: Line 1:
 
{{tocright}}
 
{{tocright}}
   
This article covers the '''general layout for a standard template page on FANDOM wikis'''.
+
This article covers the '''general layout for a standard template page on Fandom wikis'''.
   
 
==Procedure==
 
==Procedure==
Line 12: Line 12:
 
:If you want to use a documentation page (<tt>/doc</tt>)
 
:If you want to use a documentation page (<tt>/doc</tt>)
 
<pre>
 
<pre>
<onlyinclude><!-- Template code
+
<onlyinclude><!-- Template code --><includeonly><!-- Any categories to be inserted into articles by the template -->[[Category:Added by template]]</includeonly></onlyinclude>
--><includeonly><!-- Any categories to be inserted into articles by the template
 
-->[[Category:Added by template]]</includeonly></onlyinclude>
 
 
{{documentation}}
 
{{documentation}}
<!-- After documentation, optionally add any categories to organize the template itself
+
<!-- After documentation, optionally add any categories to organize the template itself --><noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>
-->[[Category:Templates|{{PAGENAME}}]]
 
 
</pre>
 
</pre>
   
Line 39: Line 39:
 
----
 
----
 
;Template
 
;Template
<onlyinclude>Template code<includeonly>
+
<onlyinclude>Template code<includeonly>Any categories to be inserted into articles by the template</includeonly></onlyinclude>
Any categories to be inserted into articles by the template</includeonly></onlyinclude>
 
 
<!-- Optionally -->{{documentation}}
 
<!-- Optionally -->{{documentation}}
 
<!-- Any categories to organize the template itself -->[[Category:Templates|{{PAGENAME}}]]
 
<!-- Any categories to organize the template itself -->[[Category:Templates|{{PAGENAME}}]]
Line 69: Line 69:
 
:{{templatename|foo}}
 
:{{templatename|foo}}
   
<includeonly><!-- Any categories to organize the template itself
+
<includeonly><!-- Any categories to organize the template itself -->[[Category:Templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
-->[[Category:Templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 
 
</pre>
 
</pre>
   
  Loading editor