Difference between revisions of "Template:Category title/doc"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
 
(One intermediate revision by one other user not shown)
Line 7: Line 7:
 
This template can be substituted.
 
This template can be substituted.
  
ki>{{Category title| Food  }}</nowiki>" → "<code>{{Category title| Food }}</code>"
+
=== Usage ===
 +
 
 +
* "<nowiki>{{Category title| Food  }}</nowiki>" → "<code>{{Category title| Food }}</code>"
 
* "<nowiki>{{Category title| Category:Food }}</nowiki>" → "<code>{{Category title| Category:Food }}</code>"
 
* "<nowiki>{{Category title| Category:Food }}</nowiki>" → "<code>{{Category title| Category:Food }}</code>"
 
* "<nowiki>{{Category title| :Category:Food }}</nowiki>" → "<code>{{Category title| :Category:Food }}</code>"
 
* "<nowiki>{{Category title| :Category:Food }}</nowiki>" → "<code>{{Category title| :Category:Food }}</code>"
Line 17: Line 19:
 
* {{tl|File title}}
 
* {{tl|File title}}
 
* {{tl|Transclude}}
 
* {{tl|Transclude}}
* {{tl|Image}}
 
 
* {{tl|Linked}}
 
* {{tl|Linked}}
  
<includeonly>
+
<includeonly>{{basepage subpage|
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!-- CATEGORIES HERE, THANKS -->
 
[[Category:Wikipedia metatemplates]]
 
[[Category:Wikipedia metatemplates]]
 
+
}}</includeonly>
</includeonly>
 

Latest revision as of 18:25, 29 March 2015

This template can be used to create proper file titles, both if the name space was omitted or supplied by the user.

It is primarily of use in templates and should not be used in articles directly.

This template can be substituted.

Usage

  • "{{Category title| Food }}" → "Category:Food"
  • "{{Category title| Category:Food }}" → "Category:Food"
  • "{{Category title| :Category:Food }}" → "Category:Food"

To Do

This template could be expanded to a series of "Namespace title" templates, if needed (hopefully sharing the same code).

See also