Template:File title

From blackwiki
Revision as of 13:37, 27 November 2009 by imported>Amalthea (Protected Template:File title: Highly visible page: about to be used in other protected templates ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
Jump to navigation Jump to search
50px Template documentation[view] [edit] [history] [purge]

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:Template:Str trim"
  • "{{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