Template:Format title/doc: Difference between revisions
Jump to navigation
Jump to search
(create) |
(cat, info link) |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
There is only one parameter, which is unnamed and required: the correct formatting to use. Note that this must be the same as the name that occurs in the page title, except for the above corrections. | There is only one parameter, which is unnamed and required: the correct formatting to use. Note that this must be the same as the name that occurs in the page title, except for the above corrections. | ||
This template should only be used by other templates, as it suppresses any errors. It is included in | This template should only be used by other templates, as it suppresses any errors. It is included in most [[:Category:Infobox templates|infoboxes]]. | ||
<includeonly></includeonly> | Common usage: <code><nowiki>{{Format title|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}</nowiki></code> | ||
See [[mw:Help:Magic words#DISPLAYTITLE]] for more information on how to do this manually when needed. | |||
<includeonly>[[Category:Templates]]</includeonly> |
Latest revision as of 05:36, 21 August 2020
This page contains the documentation for Template:Format title. It includes information about the template, such as usage and categories, and is not displayed when using the template itself.
This template is used to automatically correct the display of page titles that are incorrectly formatted by the wiki software:
- First letter should be lowercase
- Some or all spaces should be underscores
There is only one parameter, which is unnamed and required: the correct formatting to use. Note that this must be the same as the name that occurs in the page title, except for the above corrections.
This template should only be used by other templates, as it suppresses any errors. It is included in most infoboxes.
Common usage: {{Format title|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}
See mw:Help:Magic words#DISPLAYTITLE for more information on how to do this manually when needed.