Template:Templatecategory: Difference between revisions

From Rhythm Heaven Wiki
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
 
Line 2: Line 2:
To put a template in '''Category:{{PAGENAME}}''':
To put a template in '''Category:{{PAGENAME}}''':


* Use <code><nowiki><includeonly>[[Category:</nowiki>{{PAGENAME}}<nowiki>|{{PAGENAME}}]]</includeonly></nowiki></code> on the documentation page (see [[Template:Documentation]] for more info). The "&lt;includeonly&gt;" tags are necessary to prevent categorizing all pages using the template (and the documentation page) in the template category! Please also note the <tt style="border-bottom: 1px dotted; cursor: help;" title="Makes it sort on the actual template name rather than 'T' as in 'Template:'."><nowiki>|{{PAGENAME}}</nowiki></tt>.
*Use <code><nowiki><includeonly>[[Category:</nowiki>{{PAGENAME}}<nowiki>|{{PAGENAME}}]]</includeonly></nowiki></code> on the template's page. The "&lt;includeonly&gt;" tags are necessary to prevent categorizing all pages using the template in the template category! Please also note the <tt style="border-bottom: 1px dotted; cursor: help;" title="Makes it sort on the actual template name rather than 'T' as in 'Template:'."><nowiki>|{{PAGENAME}}</nowiki></tt>.
* If your template is meant to be '''used in-line''', try and make sure that there are as few line feeds (breaks, whitespace, etc.) as possible.
*If your template is meant to be '''used in-line''', try and make sure that there are as few line feeds (breaks, whitespace, etc.) as possible.
* Remember that a template can be put in multiple categories if it belongs to them all!
*Remember that a template can be put in multiple categories if it belongs to them all!
* Or, if this is not quite the right category, go back to [[:Category:Templates]] and try to find a better suited subcategory.<noinclude>
*Or, if this is not quite the right category, go back to [[:Category:Templates]] and try to find a better suited subcategory.<noinclude>[[Category:Templates]]</noinclude>
{{documentation}}</noinclude>

Latest revision as of 13:58, 13 August 2021

Using this category

To put a template in Category:Templatecategory:

  • Use <includeonly>[[Category:Templatecategory|{{PAGENAME}}]]</includeonly> on the template's page. The "<includeonly>" tags are necessary to prevent categorizing all pages using the template in the template category! Please also note the |{{PAGENAME}}.
  • If your template is meant to be used in-line, try and make sure that there are as few line feeds (breaks, whitespace, etc.) as possible.
  • Remember that a template can be put in multiple categories if it belongs to them all!
  • Or, if this is not quite the right category, go back to Category:Templates and try to find a better suited subcategory.