Template:Extension
<languages/> Page Template:Infobox/styles.css has no content.Page Template:Extension/styles.css has no content.Page Template:Extension/status.css has no content.Lua error: Module:TNT:172: '''Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates'''.{{#if:{{#switch:
|editnotice = Template:Editnotice
|#default =
File:Ambox warning yellow.svg | This {{#switch: Template
| = article | Holocaustmap = Wikipedia page | User | Help = template page | #default = template }} employs intricate features of template syntax. You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either [[{{#ifexist:Template:Extension/Sandbox|/Sandbox|{{#ifexist:Template:Extension/test sandbox|/test sandbox|{{#ifexist:Template:Extension/Test sandbox|/Test sandbox|{{#ifexist:Template:Extension/test|/test|{{#ifexist:Template:Extension/Test|/Test|/sandbox}}}}}}}}}}|this template's sandbox]], the general template sandbox, or your user space before changing anything here. |
}}{{#ifeq: Extension | Extension | {{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template|Template | template | other }} }}
| template = | other | #default = }} }} Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value). Lua error: callParserFunction: function "#translation" was not found. <translate> This template should be added to all extension pages on this wiki (but only the main page).</translate> <translate> It will add a useful infobox (see below) and will automatically add the extension to <tvar name=1>{{#ifeq:Category:All extensions|
|
}}[[Special:MyLanguage/Category:All extensions|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Category|Category:}}All extensions/Page display title/en
|{{#if: |{{#if: | |{{ Template:TNTN | nsp = 0 }} }} |{{ Template:TNTN }} }} |{{#if: |{{#if:All extensions |All extensions |Category:All extensions }} |Category:All extensions }}
}}}}]]{{#ifeq:Category:All extensions|
|
}}
</tvar>, along with the appropriate {{<tvar name=2>ll|Category:Extensions by status</tvar>|status}} and {{<tvar name=3>ll|Category:Extensions by implementation type</tvar>|implementation type}} categories.</translate><translate>
Usage
</translate>
<translate> Copy and paste:</translate> {{Extension |templatemode = |name = |status = |type1 = |type2 = |hook1 = |hook2 = |newhook1 = |newhook2 = |username = |author = |description = |image = |imagesize = |version = |update = |version preview = |update preview = |compatibility policy = |mediawiki = |php = |needs-updatephp = |composer = |table1 = |table2 = |license = |download = |repo = |readme = |changelog = |help = |example = |namespace = |parameters = |tags = |rights = |compatibility = |phabricator = |translate = |vagrant-role = }}<translate> For help with parameter values, see [[<tvar name=1>#Content parameters</tvar>|below]].</translate> |
Page Template:Infobox/styles.css has no content.Page Template:Extension/styles.css has no content.Page Template:Extension/status.css has no content.{{#switch:<translate></translate>
| = {{#ifeq:{{{status}}}|unmaintained|{{#ifeq:Template|Extension|Script error: No such module "Extension".}}}} {{#if: {{{phabricator}}} | Template:Ptag }} {{#if:Placeholder.svg| |{{#ifeq:nocats|nocats||{{#if:{{#translation:}}||}}}} }} {{#if:{{{type1}}}| }} {{#if:{{{description}}}| }} {{#if:Script error: No such module "extension".SomeUser | }} {{#if: | }} {{#if:Script error: No such module "extension".| }} {{#if:{{{version preview}}}| }} {{#if:{{{compatibility policy}}}| |{{#ifeq:nocats|nocats||{{#if:{{#translation:}}||}}}} }} {{#if:Script error: No such module "Extension".| }} {{#if:{{{needs-updatephp}}}| }} {{#if:Script error: No such module "Extension".| }} {{#if:{{{table1}}}| }} {{#ifeq:nocats|nocats||Script error: No such module "Extension".}} {{#if: {{{help}}}{{#ifexist:Help:Template:Extension|yes}} | }} {{#if:{{{example}}}| }} {{#if:{{{namespace}}}| }} {{#if:{{#if:{{{parameters}}}|y|Script error: No such module "Extension".}}| }} {{#if:{{{tags}}}| }} {{#if:{{#if:{{{rights}}}|y|Script error: No such module "Extension".}}| }} {{#if:| }} Script error: No such module "Extension". {{#if:newhook1| }} {{#if:{{{compatibility}}}| }} {{#if:Script error: No such module "Extension".| <td title="<translate nowrap> This only includes downloads from Special:ExtensionDistributor. Other download methods such as git or bundled extensions are not included.</translate>"><translate> Quarterly downloads</translate> }} {{#if:Script error: No such module "Extension".| }} {{#if:{{#if:Script error: No such module "Extension".{{{translate}}}||n}}|| }}{{#if:{{#ifeq:nocats|nocats |no usage |{{#ifeq:Template| | |no usage }} {{#ifeq:nocats|nousage |no usage }} }} || }} {{#if:{{{vagrant-role}}}| }} {{#if: {{{phabricator}}} | }} {{#if: | }}
| #default= Lua error: expandTemplate: template loop detected.
}} |
<translate>
Content parameters
</translate> <translate> This section describes parameters that govern infobox content.</translate> <translate> For help with <tvar name=1>templatemode</tvar> and other control parameters, please see [[<tvar name=2>#Control parameters</tvar>|Control parameters]].</translate>
<translate> Parameter</translate> | <translate> Description</translate> |
---|---|
name | <translate> name of the extension</translate> |
status |
<translate> current release status</translate> <translate> One of:</translate>
| }}{{#if:unstable |unstable |unstable}}{{#ifeq:Category:Unstable extensions| | }} - <translate> broken - do not use this extension</translate>
| }}{{#if:experimental |experimental |experimental}}{{#ifeq:Category:Experimental extensions| | }} - <translate> early stages of development, may change drastically</translate>
| }}{{#if:beta |beta |beta}}{{#ifeq:Category:Beta status extensions| | }} - <translate> stable but not fully tested</translate>
| }}{{#if:stable |stable |stable}}{{#ifeq:Category:Stable extensions| | }} - <translate> stable version</translate>
| }}{{#if:unmaintained |unmaintained |unmaintained}}{{#ifeq:Category:Unmaintained extensions| | }} - <translate> unmaintained - previously claimed to be stable, now unmaintained</translate>
| }}{{#if:unknown |unknown |unknown}}{{#ifeq:Category:Extensions with unknown status| | }} - <translate> default</translate><translate> If the status is anything other than the above, it will be ignored and the default value of 'Unknown' will be displayed in the template instead.</translate> <translate> In cases where the value is omitted, it will be categorised as [[<tvar name=1>Special:MyLanguage/Category:extensions with unknown status</tvar>|unknown]].</translate> <translate> In cases where the value is invalid, it will be placed in a [[<tvar name=1>Special:MyLanguage/Category:extensions with invalid status</tvar>|special category]] so that the error can be caught and fixed.</translate> <translate>
|
type1 type2 type3 type4 type5 type6 | <translate> implementation type</translate>
<translate> The implementation strategy(s) employed in building this extension.</translate> <translate> This parameter is used to create categories that help programmers find examples of various MediaWiki specific implementation strategies or patterns.</translate> <translate> Although the values of this parameter sometimes coincide with the use case or purpose of an extension, that is not reason for this parameter.</translate> <translate> If the values you have chosen for this parameter do not adequately identify the purpose or possible use cases, we recommend you add additional [[<tvar name=1>Special:MyLanguage/Help:Categories</tvar>|category links]] as needed.</translate> <translate> Allowed values for the type1, type2, ... parameters are:</translate>
| }}{{#if:parser |parser |parser}}{{#ifeq:Category:Parser extensions| | }} - <translate> catchall for uncategorised [[<tvar name=1>Special:MyLanguage/Manual:Extending wiki markup</tvar>|parser extensions]].</translate> <translate> If you have written a parser extension, please use one of the following more specific types:</translate>
| }}{{#if:contenthandler |contenthandler |contenthandler}}{{#ifeq:Category:ContentHandler extensions| | }} - <translate> extensions using <tvar name=1>{{#ifeq:Manual:ContentHandler|| }}{{#if:ContentHandler |ContentHandler |ContentHandler}}{{#ifeq:Manual:ContentHandler| | }} </tvar>.</translate>
| }}{{#if:link |link |link}}{{#ifeq:Category:Link markup extensions| | }}
| }}{{#if:parser function |parser function |parser function}}{{#ifeq:Category:Parser function extensions| | }}
| }}{{#if:tag |tag |tag}}{{#ifeq:Category:Tag extensions| | }}
| }}{{#if:variable |variable |variable}}{{#ifeq:Category:Variable extensions| | }}
| }}{{#if:extended syntax |extended syntax |extended syntax}}{{#ifeq:Category:Extended syntax extensions| | }} - <translate> extensions that add non-standard wiki syntax (i.e. not [[<tvar name=1>Special:MyLanguage/Manual:Tag extensions</tvar>|tags]], [[<tvar name=2>Special:MyLanguage/Manual:Parser functions</tvar>|parser functions]], or [[<tvar name=3>Special:MyLanguage/Manual:Variables</tvar>|variables]]).</translate>
| }}{{#if:access |access |access}}{{#ifeq:Category:User access extensions| | }} - <translate> catchall for <tvar name=1>{{#ifeq:Manual:User access extensions|| }}[[Special:MyLanguage/Manual:User access extensions|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:|:}}Manual:User access extensions/Page display title/en |{{#if:0 |{{#if: | |{{ Template:TNTN | nsp = 0 }} }} |{{ Template:TNTN }} }} |{{#if:0 |{{#if:Manual:User access extensions |Manual:User access extensions |Manual:User access extensions }} |Manual:User access extensions }} }}}}]]{{#ifeq:Manual:User access extensions| | }} </tvar>, that is, extensions that create, authenticate, grant permissions, revoke permissions, or monitor the activity of users. If you have written an access extension, please use one of the following more specific types:</translate>
| }}{{#if:user activity |user activity |user activity}}{{#ifeq:Category:User activity extensions| | }} - <translate> extensions that monitor user activity (logins, logouts, new user creation, etc.)</translate>
| }}{{#if:user identity |user identity |user identity}}{{#ifeq:Category:User identity extensions| | }} - <translate> extensions that create and delete users, and/or verify the identity of a user</translate>
| }}{{#if:user rights |user rights |user rights}}{{#ifeq:Category:User rights extensions| | }} - <translate> extensions to the rights management system, e.g. changes to the way rights are assigned, API, maintenance tools (does not include extensions that merely name the rights needed to use the features of that extension; for this purpose use the [[<tvar name=1>#rights</tvar>|rights parameter]])</translate>
| }}{{#if:interface |interface |interface}}{{#ifeq:Category:User interface extensions| | }} - <translate> catchall for uncategorised user interface extensions.</translate>
| }}{{#if:media |media |media}}{{#ifeq:Category:Media handling extensions| | }} - <translate> extensions that permit the embedding of multimedia content on wiki pages by registering a file extension with <tvar name=1>{{#ifeq:Manual:$wgMediaHandlers|| }}{{#if:$wgMediaHandlers |$wgMediaHandlers |$wgMediaHandlers}}{{#ifeq:Manual:$wgMediaHandlers| | }} </tvar>.</translate>
| }}{{#if:mywiki |mywiki |mywiki}}{{#ifeq:Category:Personalization extensions| | }} - <translate> extensions that provide infrastructure so that users may personalise their MediaWiki experience and/or assist in the management of that infrastructure</translate>
| }}{{#if:notify |notify |notify}}{{#ifeq:Category:Notification extensions| | }} - <translate> extensions that email users, broadcast messages and provide other forms of community notification</translate>
| }}{{#if:page action |page action |page action}}{{#ifeq:Category:Page action extensions| | }} - <translate> extensions that enhance or modify {{<tvar name=1>ll|Manual:Page action</tvar>|page actions}}.</translate> <translate> This includes anything that implements an action that reads, writes, searches for, creates, renames, deletes, redirects or discusses a page.</translate> <translate> It does not include rights (use <tvar name=1>user rights</tvar>) or logs (use <tvar name=2>user activity</tvar>).</translate>
| }}{{#if:search |search |search}}{{#ifeq:Category:Search extensions| | }} - <translate> extensions that search through and select pages for users.</translate>
| }}{{#if:skin |skin |skin}}{{#ifeq:Category:Skin extensions| | }}CSS or JavaScript, or implementing hook functions to change the look and feel of MediaWiki via the skins framework.</translate> - <translate> extensions adding
| }}{{#if:ajax |ajax |ajax}}{{#ifeq:Category:Ajax extensions| | }}Ajax programming techniques.</translate> - <translate> extensions that use
| }}{{#if:special |special |special}}{{#ifeq:Category:Special page extensions| | }}Template:Class doclink</tvar> class, use one of its hooks, or patch one or more functions in <tvar name=filephp>Template:Git file</tvar>. See <tvar name=manual>{{#ifeq:Manual:Special pages| - <translate> extensions that subclass the <tvar name=specialpage>| }}{{#if:Special pages |Special pages |Special pages}}{{#ifeq:Manual:Special pages| | }} </tvar> for more information.</translate>
| }}{{#if:api |api |api}}{{#ifeq:Category:API extensions| | }} - <translate> extensions that add a new API module or extend a core API module.</translate>
| }}{{#if:hook |hook |hook}}{{#ifeq:Category:Hook extensions| | }} - <translate> hook extension - defines a new hook - see hook1, etc. below if you want to define hooks used by your extension</translate>
| }}{{#if:database |database |database}}{{#ifeq:Category:Database extensions| | }} - <translate> adds tables and/or fields to the database backing a MediaWiki installation</translate>
| }}{{#if:data extraction |data extraction |data extraction}}{{#ifeq:Category:Data extraction extensions| | }} - <translate> data extraction</translate>
| }}{{#if:filerepo |filerepo |filerepo}}{{#ifeq:Category:File repository extensions| | }} - <translate> extension that adds new file repository types as file backend</translate>
| }}{{#if:example |example |example}}{{#ifeq:Category:Extension examples| | }} - <translate> not a real extension, but an example of how to write one</translate>
| }}{{#if:beta features |beta features |beta features}}{{#ifeq:Category:Beta Feature extensions| | }} - <translate> extensions that new <tvar name="1">{{#ifeq:Beta Features|| }}[[Special:MyLanguage/Beta Features|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:|:}}Beta Features/Page display title/en |{{#if: |{{#if: | |{{ Template:TNTN | nsp = 0 }} }} |{{ Template:TNTN }} }} |{{#if: |{{#if:Beta Features |Beta Features |Beta Features }} |Beta Features }} }}}}]]{{#ifeq:Beta Features| | }} </tvar>.</translate>
| }}{{#if:php |php |php}}{{#ifeq:Category:PHP extensions| | }} - <translate> extensions to the underlying <tvar name=1>{{#ifeq:PHP|| }}[[Special:MyLanguage/PHP|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:|:}}PHP/Page display title/en |{{#if: |{{#if: | |{{ Template:TNTN | nsp = 0 }} }} |{{ Template:TNTN }} }} |{{#if: |{{#if:PHP |PHP |PHP }} |PHP }} }}}}]]{{#ifeq:PHP| | }} </tvar> programming language.</translate>
| }}{{#if:locale |locale |locale}}{{#ifeq:Category:Internationalization extensions| | }} <translate> Note: Many extensions have more than one type, if this applies to yours, replace <tvar name=type> - <translate> extensions associated with [[<tvar name=1>Special:MyLanguage/Manual:Localization</tvar>|localisation]]</translate> <translate> Any other value for 'type' is invalid, and will cause the extension to be placed in <tvar name=typemissingcat>[[:Category:Extensions with invalid or missing type{{#translation:}}]]</tvar>.</translate>|type= </tvar> with <tvar name=value>|type1=|type2=|type3=... </tvar>. You may define up to six types for an extension.</translate> |
hook1 hook2 hook3 hook4 ... |
<translate> name of each hook used by the extension</translate>
<translate> Entering values in this field is a good way to get exposure for your extension and help other developers.</translate> <translate> Each documented hook will automatically add the extension to a category listing extensions that use that hook.</translate> <translate> This category is autolinked to each hook page so that programmers can easily find examples of extensions that use a particular hook.</translate> <translate> For built-in hooks:
| }}{{#if:Manual:Hooks |Manual:Hooks |Manual:Hooks}}{{#ifeq:Manual:Hooks| | }} </tvar> for values (but omit introductory '/').For custom hooks defined by extensions:
|
newhook1 newhook2 newhook3 newhook4 ... newhook90 |
<translate> name of each hook provided by the extension You might also want to add the hooks to <tvar name=exthooks>Extension hook registry</tvar>. </translate> |
username | <translate> The author's username on MediaWiki.org (if they have one).</translate> <translate> May be omitted, but if present it will be used to link to the author's user & user_talk page.</translate> <translate> It should be provided without namespace and without <tvar name=1>[[]]</tvar>s.</translate> |
Template:Visible anchor | <translate> The extension author's name, if different from their MediaWiki.org username.</translate> <translate> Free text.</translate> <translate> If omitted then the 'username' field will be used (if present).</translate> |
description | <translate> short description</translate> |
Template:Visible anchor | <translate> Screenshot or logo of extension.</translate> <translate> It should be provided without namespace and without <tvar name=1>[[]]</tvar>s.</translate> |
Template:Visible anchor | <translate> Facultative, size of the image without adding px, e.g. 360 (default size is 300px)</translate> |
Template:Visible anchor | <translate> Last version</translate> |
Template:Visible anchor | <translate> Date of the last update</translate> |
Template:Visible anchor | <translate> Preview version</translate> |
Template:Visible anchor | <translate> Date of the last update to the preview version</translate> |
compatibility policy | <translate> {{<tvar name=1>ll|Compatibility#mediawiki_extensions</tvar>|Compatibility policy}} (accepted values: <tvar name=4>master, main, rel, ltsrel</tvar>).</translate> ({{#ifeq:Category:Extensions without a compatibility policy|
| }}{{#if:<translate> backlog</translate> |<translate> backlog</translate> |<translate> backlog</translate>}}{{#ifeq:Category:Extensions without a compatibility policy| |}} ) |
Template:Visible anchor | <translate> Required version of MediaWiki.</translate> <translate> Most extensions should not need to use this — it defaults to the value of the <tvar name=1>Template:Manual</tvar> property of <tvar name=2>Template:Manual</tvar>.</translate> <translate> See also <tvar name=1>{{#ifeq:Category:Extensions without MediaWiki version|
| }}[[Special:MyLanguage/Category:Extensions without MediaWiki version|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Category|Category:}}Extensions without MediaWiki version/Page display title/en |{{#if: |{{#if: | |{{ Template:TNTN | nsp = 0 }} }} |{{ Template:TNTN }} }} |{{#if: |{{#if:Extensions without MediaWiki version |Extensions without MediaWiki version |Category:Extensions without MediaWiki version }} |Category:Extensions without MediaWiki version }} }}}}]]{{#ifeq:Category:Extensions without MediaWiki version| | }} </tvar> and <tvar name=2>{{#ifeq:Category:Extensions with manual MediaWiki version|| }}[[Special:MyLanguage/Category:Extensions with manual MediaWiki version|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Category|Category:}}Extensions with manual MediaWiki version/Page display title/en |{{#if: |{{#if: | |{{ Template:TNTN | nsp = 0 }} }} |{{ Template:TNTN }} }} |{{#if: |{{#if:Extensions with manual MediaWiki version |Extensions with manual MediaWiki version |Category:Extensions with manual MediaWiki version }} |Category:Extensions with manual MediaWiki version }} }}}}]]{{#ifeq:Category:Extensions with manual MediaWiki version| |}} </tvar>.</translate> |
Template:Visible anchor | <translate> Required version of PHP</translate> |
Template:Visible anchor |
<translate>
<tvar name=yes> Extensions which conform to MediaWiki extension standards come with a schema change script which you need to start manually (once) before starting and accessing the MediaWiki through your browser, and after you copied all the extension files to <tvar name=target><syntaxhighlight lang=php inline>$IP/extensions/ExtensionName</syntaxhighlight></tvar> and inserted <tvar name=code><syntaxhighlight lang=php inline>wfLoadExtension( "ExtensionName" );</syntaxhighlight></tvar> into "LocalSettings.php", run from the command line: </translate>
|
composer | <translate> The extension's Composer package name, in the [<tvar name=url>https://getcomposer.org/doc/04-schema.md#name</tvar> standard format].</translate> <translate> It will be automatically included if set in an extension's "<tvar name=1>composer.json</tvar>" file (i.e. this parameter is not required in that case).</translate> <translate> It will be linked to the extension's page on [<tvar name=url>https://packagist.org/</tvar> Packagist].</translate> |
table1 table2 table3 table4 ... table30 | <translate> name of each non-core table used by the extension</translate>
<translate> Links to a subpage of your extension page. For instance, "<tvar name=table1>table1 = cu_changes</tvar>" at <tvar name=url1>{{#ifeq:Extension:CheckUser| | }}{{#if:Extension:CheckUser |Extension:CheckUser |Extension:CheckUser}}{{#ifeq:Extension:CheckUser| | }} </tvar> will link to <tvar name=url2>{{#ifeq:Extension:CheckUser/cu changes table|| }}{{#if:Extension:CheckUser/cu_changes table |Extension:CheckUser/cu_changes table |Extension:CheckUser/cu_changes table}}{{#ifeq:Extension:CheckUser/cu changes table| | }} </tvar>. Don't list core tables such as <tvar name=page>{{#ifeq:Manual:Page table|| }}{{#if:page |page |page}}{{#ifeq:Manual:Page table| | }} </tvar> or <tvar name=revision>{{#ifeq:Manual:Revision table|| }}{{#if:revision |revision |revision}}{{#ifeq:Manual:Revision table| |}} </tvar>; only list tables that are added by extensions.</translate> |
Template:Visible anchor | <translate> License governing use of this extension, as one of the codes found in <tvar name=url>https://spdx.org/licenses/</tvar>, e.g. <tvar name=later2>GPL-2.0-or-later </tvar>, <tvar name=only2>GPL-2.0-only </tvar> or <tvar name=later3>GPL-3.0-or-later </tvar>, etc.</translate> |
download | <translate> link to the download : <tvar name=url>Git</tvar>, <tvar name=wikimediadownload>{{[[Template:WikimediaDownload{{#translation:}}|WikimediaDownload{{#translation:}}]]}}</tvar>. </translate> |
repo | <translate> Name of the Gerrit repository the extension's code is stored in, if different from the page name. Setting this automatically sets |{{SAFESUBST:#if:download|download=}} , and allows the template to automatically load data from the appropriate <tvar name=1>extension.json </tvar> file.</translate> |
Template:Visible anchor | <translate> External link to the <tvar name=readme>readme</tvar> file, e.g. <tvar name=url>https://phabricator.wikimedia.org/r/browse/mediawiki/extensions/Flow;master;README</tvar></translate> |
Template:Visible anchor | <translate> External link to the changelog file, e.g. <tvar name=url>Extension:GeoGebra/Changelog</tvar></translate> |
Template:Visible anchor | <translate> Link to user-help for the extension.</translate> If not provided, will look for Help:Extension:ExtensionName . <translate> If provided, full wikitext link should be given (because you may want to link to e.g. an external page).</translate> |
Template:Visible anchor | <translate> Example, website or screenshot of working extension</translate> |
Template:Visible anchor | <translate> [[<tvar name=1>Special:MyLanguage/Manual:Namespace</tvar>|namespace]] in which this extension is used</translate> |
Template:Visible anchor | <translate> Available parameters for LocalSettings.php</translate> |
Template:Visible anchor | <translate> Any tags your extension uses (e.g. <tvar name=tags><tag1>, <tag2></tvar>).</translate> |
Template:Visible anchor | <translate> [[<tvar name=1>Special:MyLanguage/Manual:User rights</tvar>|Rights]] added by the extension. Not to be confused with the license! Rights are such as <tvar name=makebot>{{#ifeq:Extension:MakeBot|
| }}{{#if:makebot |makebot |makebot}}{{#ifeq:Extension:MakeBot| | }} </tvar> or <tvar name=desysop>{{#ifeq:Extension:Desysop|| }}{{#if:desysop |desysop |desysop}}{{#ifeq:Extension:Desysop| |}} </tvar>, not such as GFDL or LGPL or GPL - those are licenses!</translate> |
Template:Visible anchor | <translate> Additional compatibility information, for instance compatibility charts. It's encouraged to add any client-side compatibility information here too, especially when diverging from [[<tvar name=1>Special:MyLanguage/Compatibility#Browsers</tvar>|expectations of full support for a browser]].</translate> |
Template:Visible anchor | <translate> Bugzilla MediaWiki extension component name</translate> |
Template:Visible anchor | <translate> Phabricator project name</translate> |
Template:Visible anchor |
<translate> Optional parameter to link the exact page where ([[<tvar name=1>Special:MyLanguage/Help:Extension:Translate/Glossary</tvar>|message group id]] with which) the extension will be translatable on <tvar name=translatewiki>translatewiki.net</tvar> if enabled. If the default link is incorrect, manually set it to:
</translate> |
Template:Visible anchor | <translate> <tvar name=1>{{#ifeq:MediaWiki-Vagrant|
| }}[[Special:MyLanguage/MediaWiki-Vagrant|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:|:}}MediaWiki-Vagrant/Page display title/en |{{#if: |{{#if: | |{{ Template:TNTN | nsp = 0 }} }} |{{ Template:TNTN }} }} |{{#if: |{{#if:MediaWiki-Vagrant |MediaWiki-Vagrant |MediaWiki-Vagrant }} |MediaWiki-Vagrant }} }}}}]]{{#ifeq:MediaWiki-Vagrant| |}} </tvar> role</translate> |
Template:Visible anchor | <translate> Override the page name used for the check usage link.</translate> |
<translate>
Control parameters
</translate>
<translate> Parameter</translate> | <translate> Description</translate> |
---|---|
templatemode |
<translate> Controls auto-categorisation of host page. Normally left blank. Alternate values are: </translate>
|
<translate>
Using the infobox
Existing extension pages
If you want to add the infobox to an existing page, copy and paste the code at the [[<tvar name=1>#CutAndPaste</tvar>|top of this page]]. </translate>
<translate>
Create a new extension page
</translate> <translate> If you want to create a new extension page, enter the name below and click the button.</translate> <translate> A new page will be created with the infobox template already in place.</translate>
Template:Extension/CreateExtensionInputBox
<translate>
Enhancing this template
</translate> <translate> If you would like to improve on this template, thanks!</translate> <translate> This is a complicated template so here is some help along the way:</translate>
<translate>
The Create extension button
To improve the create extension button behavior:
- <tvar name=extsample>{{#ifeq:Template:Extension/Sample|
|
}}[[Special:MyLanguage/Template:Extension/Sample|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Template|Template:}}Extension/Sample/Page display title/en
|{{#if: |{{#if: | |{{ Template:TNTN | nsp = 0 }} }} |{{ Template:TNTN }} }} |{{#if: |{{#if:Extension/Sample |Extension/Sample |Template:Extension/Sample }} |Template:Extension/Sample }}
}}}}]]{{#ifeq:Template:Extension/Sample|
|
}}
</tvar>: The boilerplate extension that is preloaded into newly-created pages.- <tvar name=extinpbox>{{#ifeq:Template:Extension/CreateExtensionInputBox|
|
}}[[Special:MyLanguage/Template:Extension/CreateExtensionInputBox|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Template|Template:}}Extension/CreateExtensionInputBox/Page display title/en
|{{#if: |{{#if: | |{{ Template:TNTN | nsp = 0 }} }} |{{ Template:TNTN }} }} |{{#if: |{{#if:Extension/CreateExtensionInputBox |Extension/CreateExtensionInputBox |Template:Extension/CreateExtensionInputBox }} |Template:Extension/CreateExtensionInputBox }}
}}}}]]{{#ifeq:Template:Extension/CreateExtensionInputBox|
|
}}{{#switch:open
|c|close =
|e|empty|s|single|v|void
|o|open
|p|pair = <{{#if:|inputbox|inputbox}}{{#if:| {{{attribs}}}}}
}}{{#switch:open
|c|close =
|e|empty|s|single|v|void = />
|o|open = >
|p|pair = {{#ifeq:inputbox|!--||>}}...
}}{{#switch:open
|e|empty|s|single|v|void
|o|open =
|c|close
|p|pair = {{#ifeq:inputbox|!--|-->|</inputbox>}}
}}
</tvar> tag, please see <tvar name=url>{{#ifeq:Extension:InputBox|
|
}}{{#if:Extension:InputBox |Extension:InputBox |Extension:InputBox}}{{#ifeq:Extension:InputBox|
|
}}
</tvar>.Infobox parameters
In general:
- To make this template easy to use, each label in the infobox is linked to documentation on the template parameter(s) it displays. If you add a parameter, please be sure to also add it to the [[<tvar name=1>Special:MyLanguage/Template:Extension#Content parameters</tvar>|content parameter documentation]] and link its label to that documentation.
To change/correct/add to the implementation type parameters:
- Check the [[<tvar name=url>Template_talk:Extension</tvar>|talk page]] - there have been some extensive discussions about this field.</translate>
<translate>
- The valid types and what they link to are defined at <tvar name=1>Module:Extension</tvar>
To change the behavior of the hook parameters:
- <tvar name=hookinuse>Template:Extension/HookInUse</tvar>: Adds links and categories for a hook in use. Multiple hooks in use are implemented by calling this template with <tvar name=foreach>Template:Foreach</tvar>.
- <tvar name=hookinusenocats>Template:Extension/HookInUseNoCats</tvar>: Used instead of <tvar name=hookinuse>Template:Extension/HookInUse</tvar> when this template is used in <tvar name=nocats>
templatemode=nocats
</tvar>. Templates used with <tvar name=feach>Template:Foreach</tvar> can only take one parameter so we need to wrap the call to <tvar name=hookuse>Template:Extension/HookInUse</tvar> with another template that sets the mode.
Test case
See if the following pages are still ok, after edited this template.</translate>
Template:Extension/doc| [[Category:Template documentation pages{{#translation:}}]] }} Maintenance: vulnerabilities, archived
[[Category:Infobox templates{{#translation:}}|Extension]]