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

From blackwiki
Jump to navigation Jump to search
imported>Amalthea
(Can be substituted)
imported>Amalthea
(Adaption from Template:File title/doc)
Line 9: Line 9:
 
=== Usage ===
 
=== Usage ===
  
* "<nowiki>{{File title| Example.svg }}</nowiki>" → "<code>{{File title| Example.svg }}</code>"
+
* "<nowiki>{{Category title| Example.svg }}</nowiki>" → "<code>{{Category title| Food }}</code>"
* "<nowiki>{{File title| File:Example.svg }}</nowiki>" → "<code>{{File title| File:Example.svg }}</code>"
+
* "<nowiki>{{Category title| File:Example.svg }}</nowiki>" → "<code>{{Category title| Category:Food }}</code>"
* "<nowiki>{{File title| :File:Example.svg }}</nowiki>" → "<code>{{File title| :File:Example.svg }}</code>"
+
* "<nowiki>{{Category title| :Category:Food }}</nowiki>" → "<code>{{Category title| :Category:Food }}</code>"
  
 
=== To Do ===
 
=== To Do ===
This template could be expanded to a series of "Namespace title" templates, if needed.
+
This template could be expanded to a series of "Namespace title" templates, if needed (hopefully sharing the same code).
  
 
=== See also ===
 
=== See also ===
 +
* {{tl|File title}}
 +
* {{tl|Template title}}
 
* {{tl|Image}}
 
* {{tl|Image}}
 
* {{tl|Linked}}
 
* {{tl|Linked}}
Line 24: Line 26:
 
[[Category:Wikipedia metatemplates]]
 
[[Category:Wikipedia metatemplates]]
  
[[es:Plantilla:Título de archivo]]
 
 
</includeonly>
 
</includeonly>

Revision as of 14:45, 23 April 2010

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| Example.svg }}" → "Category:Food"
  • "{{Category title| File:Example.svg }}" → "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