Template:MWheader
Template:MWheader forms part of the MediaWiki interface and can only be edited by administrators, stewards and interface editors. To request a change to Template:MWheader, add {{Edit request}} to this talk page, followed by a description of your request. This interface message or skin may be documented on mediawiki.org or translatewiki.net. |
Goes at the top of MediaWiki talk pages. It has several optional features. Some of these can be either the parameter name or as an unnamed parameter value. The order doesn't matter.
Usage
{{MWheader}}
- To add a bunch of interwiki links, use {{MWheader|iw}}, which creates:
Template:MWheader forms part of the MediaWiki interface and can only be edited by administrators, stewards and interface editors. To request a change to Template:MWheader, add {{Edit request}} to this talk page, followed by a description of your request. This interface message or skin may be documented on mediawiki.org or translatewiki.net. |
Parameter value | As parameter name | What it does | Notes |
---|---|---|---|
- | description=description | adds a description box | - |
subpages | subpages=base page | links to all existing subpages and sub-talkpages (collapsible) | the root[1] page name is the default (example) |
lang links | lang links=base page | creates a box of links to translations | the base page name is the default; unlike subpages , this only lists pages matching a known language code (example)
|
- | lang links=0 | turns off the box of links to translations, which is shown by default | |
talk links | [inherits from lang links] | use with lang links to also list any talk pages | usually not useful, unless some exist with actual discussion and not just old translations |
- | keyword=subpage suffix | use with lang links to add a "suffix" to the links | for special cases where the subpages follow a different naming convention[2] (example) |
- | doc=pagename or doc=no | adds/changes/overrides a message about a documentation page | this only needs to be entered manually if the doc page is not the expected subpage.[3] (example) |
- | mw-link=page | changes the link to MediaWiki's manual page | page refers to the full pagename, don't include the interwiki prefix ("mw:") |
iw | - | creates links to 150+ other Wikimedia projects | see example above |
js | - | adds a message about Commons:Javascript styleguide | replaces {{JS styleguide}} (example) |
selectskin | - | inserts {{Selectskin}} | - |
msg | msg=title | allows you to create a collapsed table of related system messages | uses {{Msgx}} (partial example) |
- | m1, m2,...m6=pagename | shows the pagename as one of the "related system messages" | for use with msg |
gadget | - | adds page to Category:Gadget scripts | These last two simply categorize the page. |
user script | - | adds page to Category:User scripts | It's usually better to categorize this way on talk pages where categories tend to get removed or archived. |
- ↑ This means {{#titleparts:{{PAGENAME}}|1}}, not {{BASEPAGENAME}}, so sometimes this will list a lot more pages than you want. In that case, set it equal to the desired base page or use
lang links
. - ↑ For example, the German (de) translation of MediaWiki:Uploadtext/ownwork is MediaWiki:Uploadtext/deownwork, so
ownwork
is the keyword. If not set, it will look for something ending in "/de". - ↑ In the MediaWiki namespace, documentation pages were titled "/Documentation" (not "/doc"), and some still are, so this is what it looks for, however many now reside in the Help namespace. Language link subpages are titled "/lang" (same as templates).
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information Goes at the top of MediaWiki talk pages. It has several optional features. Some of these can be either the parameter name or as an unnamed parameter value. The order doesn't matter.
|
The template takes no parameters.
Additional information
The template is intended to be used in the following namespaces: the MediaWiki talk namespace
The template is intended to be used by the following user groups: no user group specified
Placement: At the top of the page
Localization
العربية ∙ български ∙ català ∙ dansk ∙ Deutsch ∙ English ∙ español ∙ فارسی ∙ français ∙ magyar ∙ Bahasa Indonesia ∙ italiano ∙ 日本語 ∙ latviešu ∙ македонски ∙ മലയാളം ∙ မြန်မာဘာသာ ∙ Nederlands ∙ polski ∙ português ∙ português do Brasil ∙ русский ∙ slovenščina ∙ svenska ∙ українська ∙ Tiếng Việt ∙ 中文
This template makes use of {{Autotranslate}} and the translate extension.
This template is autotranslated a little differently than others. Only the text is switched out based on the user's interface, not the whole template. Keep in mind this is still a work in progress and new text fields may be added in the future.