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

From blackwiki
Jump to navigation Jump to search
imported>Amalthea
(Adaption from Template:File title/doc)
imported>Zyxw
(removing {{High-use}} for template with less than 1000 transclusions)
 
(11 intermediate revisions by 10 users not shown)
Line 9: Line 9:
 
=== Usage ===
 
=== Usage ===
  
* "<nowiki>{{Category title| Example.svg }}</nowiki>" → "<code>{{Category title| Food }}</code>"
+
* "<nowiki>{{File title| Example.svg }}</nowiki>" → "<code>{{File title| 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>"
+
* "<nowiki>{{File title| :File:Example.svg }}</nowiki>" → "<code>{{File title| :File:Example.svg }}</code>"
  
 
=== To Do ===
 
=== To Do ===
Line 17: Line 17:
  
 
=== See also ===
 
=== See also ===
* {{tl|File title}}
+
* {{tl|Category title}}
* {{tl|Template title}}
+
* {{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 03:16, 2 November 2018

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

  • "{{File title| Example.svg }}" → "File:Example.svg"
  • "{{File title| File:Example.svg }}" → "File:Example.svg"
  • "{{File title| :File:Example.svg }}" → "File:Example.svg"

To Do

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

See also