Template:Extension/en: Difference between revisions
More actions
Updating to match new version of source page |
m 1 revision imported |
||
(No difference)
| |||
Latest revision as of 14:02, 9 February 2024
<languages/> Lua error: bad argument #1 to "get" (not a valid title).{{#if:Template:Intricate template Lua error: bad argument #1 to "get" (not a valid title). Template:Uses TemplateStyles This template should be added to all extension pages on this wiki (but only the main page). It will add a useful infobox (see below) and will automatically add the extension to {{#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|
|
}}, along with the appropriate {{#ifeq:Category:Extensions by status|
|
}}{{#if:status |status |status}}{{#ifeq:Category:Extensions by status|
|
}} and {{#ifeq:Category:Extensions by implementation type|
|
}}{{#if:implementation type |implementation type |implementation type}}{{#ifeq:Category:Extensions by implementation type|
|
}} categories.
Usage
|
Copy and paste: {{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 =
}}
For help with parameter values, see below. |
{{#switch:<translate></translate>
| = {{#ifeq:{{{status}}}|unmaintained|{{#ifeq:Template|Extension|Lua error: callParserFunction: function "#translation" was not found.}}}} {{#if: {{{phabricator}}} | Template:Ptag }} {{#if:Placeholder.svg| |{{#ifeq:nocats|nocats||{{#if:{{#translation:}}||}}}} }} {{#if:{{{type1}}}| }} {{#if:{{{description}}}| }} {{#if:SomeAuthorSomeUser | }} {{#if: | }} {{#if:Lua error: callParserFunction: function "#translation" was not found.| }} {{#if:{{{version preview}}}| }} {{#if:{{{compatibility policy}}}| |{{#ifeq:nocats|nocats||{{#if:{{#translation:}}||}}}} }} {{#if:Lua error: callParserFunction: function "#translation" was not found.| }} {{#if:{{{needs-updatephp}}}| }} {{#if:Lua error: callParserFunction: function "#translation" was not found.| }} {{#if:{{{table1}}}| }} {{#ifeq:nocats|nocats||Lua error: callParserFunction: function "#translation" was not found.}} {{#if: {{{help}}}{{#ifexist:Help:Template:Extension/en|yes}} | }} {{#if:{{{example}}}| }} {{#if:{{{namespace}}}| }} {{#if:{{#if:{{{parameters}}}|y|Lua error: callParserFunction: function "#translation" was not found.}}| }} {{#if:{{{tags}}}| }} {{#if:{{#if:{{{rights}}}|y|Lua error: callParserFunction: function "#translation" was not found.}}| }} {{#if:| }} Lua error: callParserFunction: function "#translation" was not found. {{#if:newhook1| }} {{#if:{{{compatibility}}}| }} {{#if:Lua error: callParserFunction: function "#translation" was not found.| <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:Lua error: callParserFunction: function "#translation" was not found.| }} {{#if:{{#if:Lua error: callParserFunction: function "#translation" was not found.{{{translate}}}||n}}|| }}{{#if:{{#ifeq:nocats|nocats |no usage |{{#ifeq:Template| | |no usage }} {{#ifeq:nocats|nousage |no usage }} }} || }} {{#if:{{{vagrant-role}}}| }} {{#if: {{{phabricator}}} | }} {{#if: | }}
| #default= {{#switch:
| = {{#ifeq:{{{status}}}|unmaintained|{{#ifeq:Template|Extension|Lua error: callParserFunction: function "#translation" was not found.}}}} {{#if: {{{phabricator}}} | Template:Ptag }} {{#if:Placeholder.svg| |{{#ifeq:nocats|nocats||{{#if:{{#translation:}}||}}}} }} {{#if:{{{type1}}}| }} {{#if:{{{description}}}| }} {{#if:SomeAuthorSomeUser | }} {{#if: | }} {{#if:Lua error: callParserFunction: function "#translation" was not found.| }} {{#if:{{{version preview}}}| }} {{#if:{{{compatibility policy}}}| |{{#ifeq:nocats|nocats||{{#if:{{#translation:}}||}}}} }} {{#if:Lua error: callParserFunction: function "#translation" was not found.| }} {{#if:{{{needs-updatephp}}}| }} {{#if:Lua error: callParserFunction: function "#translation" was not found.| }} {{#if:{{{table1}}}| }} {{#ifeq:nocats|nocats||Lua error: callParserFunction: function "#translation" was not found.}} {{#if: {{{help}}}{{#ifexist:Help:Template:Extension/en|yes}} | }} {{#if:{{{example}}}| }} {{#if:{{{namespace}}}| }} {{#if:{{#if:{{{parameters}}}|y|Lua error: callParserFunction: function "#translation" was not found.}}| }} {{#if:{{{tags}}}| }} {{#if:{{#if:{{{rights}}}|y|Lua error: callParserFunction: function "#translation" was not found.}}| }} {{#if:| }} Lua error: callParserFunction: function "#translation" was not found. {{#if:newhook1| }} {{#if:{{{compatibility}}}| }} {{#if:Lua error: callParserFunction: function "#translation" was not found.| }} {{#if:Lua error: callParserFunction: function "#translation" was not found.| }} {{#if:{{#if:Lua error: callParserFunction: function "#translation" was not found.{{{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.
}} }} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Content parameters
This section describes parameters that govern infobox content. For help with templatemode and other control parameters, please see Control parameters.
| Parameter | Description |
|---|---|
| name | name of the extension |
| status |
current release status One of:
| }}{{#if:unstable |unstable |unstable}}{{#ifeq:Category:Unstable extensions| | }} - broken - do not use this extension
| }}{{#if:experimental |experimental |experimental}}{{#ifeq:Category:Experimental extensions| | }} - early stages of development, may change drastically
| }}{{#if:beta |beta |beta}}{{#ifeq:Category:Beta status extensions| | }} - stable but not fully tested
| }}{{#if:stable |stable |stable}}{{#ifeq:Category:Stable extensions| | }} - stable version
| }}{{#if:unmaintained |unmaintained |unmaintained}}{{#ifeq:Category:Unmaintained extensions| | }} - unmaintained - previously claimed to be stable, now unmaintained
| }}{{#if:unknown |unknown |unknown}}{{#ifeq:Category:Extensions with unknown status| | }} - default 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. In cases where the value is omitted, it will be categorised as unknown. In cases where the value is invalid, it will be placed in a special category so that the error can be caught and fixed. |
| type1 type2 type3 type4 type5 type6 | implementation type
The implementation strategy(s) employed in building this extension. This parameter is used to create categories that help programmers find examples of various MediaWiki specific implementation strategies or patterns. Although the values of this parameter sometimes coincide with the use case or purpose of an extension, that is not reason for this parameter. If the values you have chosen for this parameter do not adequately identify the purpose or possible use cases, we recommend you add additional category links as needed. Allowed values for the type1, type2, ... parameters are:
| }}{{#if:parser |parser |parser}}{{#ifeq:Category:Parser extensions| | }} - catchall for uncategorised parser extensions. If you have written a parser extension, please use one of the following more specific types:
| }}{{#if:contenthandler |contenthandler |contenthandler}}{{#ifeq:Category:ContentHandler extensions| | }} - extensions using {{#ifeq:Manual:ContentHandler| | }}{{#if:ContentHandler |ContentHandler |ContentHandler}}{{#ifeq:Manual:ContentHandler| | }}.
| }}{{#if:link |link |link}}{{#ifeq:Category:Link markup extensions| | }} - customised link markup, e.g.
| }}{{#if:parser function |parser function |parser function}}{{#ifeq:Category:Parser function extensions| | }} - custom parameterised template markup, e.g.
| }}{{#if:tag |tag |tag}}{{#ifeq:Category:Tag extensions| | }} - custom XML tag markup, e.g. {{#if:| |
}}
| }}{{#if:variable |variable |variable}}{{#ifeq:Category:Variable extensions| | }} - custom unparameterised template markup, e.g.
| }}{{#if:extended syntax |extended syntax |extended syntax}}{{#ifeq:Category:Extended syntax extensions| | }} - extensions that add non-standard wiki syntax (i.e. not tags, parser functions, or variables).
| }}{{#if:access |access |access}}{{#ifeq:Category:User access extensions| | }} - catchall for {{#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| | }}, 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:
| }}{{#if:user activity |user activity |user activity}}{{#ifeq:Category:User activity extensions| | }} - extensions that monitor user activity (logins, logouts, new user creation, etc.)
| }}{{#if:user identity |user identity |user identity}}{{#ifeq:Category:User identity extensions| | }} - extensions that create and delete users, and/or verify the identity of a user
| }}{{#if:user rights |user rights |user rights}}{{#ifeq:Category:User rights extensions| | }} - 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 rights parameter)
| }}{{#if:interface |interface |interface}}{{#ifeq:Category:User interface extensions| | }} - catchall for uncategorised user interface extensions.
| }}{{#if:media |media |media}}{{#ifeq:Category:Media handling extensions| | }} - extensions that permit the embedding of multimedia content on wiki pages by registering a file extension with {{#ifeq:Manual:$wgMediaHandlers| | }}{{#if:$wgMediaHandlers |$wgMediaHandlers |$wgMediaHandlers}}{{#ifeq:Manual:$wgMediaHandlers| | }}.
| }}{{#if:mywiki |mywiki |mywiki}}{{#ifeq:Category:Personalization extensions| | }} - extensions that provide infrastructure so that users may personalise their MediaWiki experience and/or assist in the management of that infrastructure
| }}{{#if:notify |notify |notify}}{{#ifeq:Category:Notification extensions| | }} - extensions that email users, broadcast messages and provide other forms of community notification
| }}{{#if:page action |page action |page action}}{{#ifeq:Category:Page action extensions| | }} - extensions that enhance or modify {{#ifeq:Manual:Page action| | }}{{#if:page actions |page actions |page actions}}{{#ifeq:Manual:Page action| | }}. This includes anything that implements an action that reads, writes, searches for, creates, renames, deletes, redirects or discusses a page. It does not include rights (use user rights) or logs (use user activity).
| }}{{#if:search |search |search}}{{#ifeq:Category:Search extensions| | }} - extensions that search through and select pages for users.
| }}{{#if:skin |skin |skin}}{{#ifeq:Category:Skin extensions| | }} - extensions adding CSS or JavaScript, or implementing hook functions to change the look and feel of MediaWiki via the skins framework.
| }}{{#if:ajax |ajax |ajax}}{{#ifeq:Category:Ajax extensions| | }} - extensions that use Ajax programming techniques.
| }}{{#if:special |special |special}}{{#ifeq:Category:Special page extensions| | }} - extensions that subclass the Template:Class doclink class, use one of its hooks, or patch one or more functions in Template:Git file. See {{#ifeq:Manual:Special pages| | }}{{#if:Special pages |Special pages |Special pages}}{{#ifeq:Manual:Special pages| | }} for more information.
| }}{{#if:api |api |api}}{{#ifeq:Category:API extensions| | }} - extensions that add a new API module or extend a core API module.
| }}{{#if:hook |hook |hook}}{{#ifeq:Category:Hook extensions| | }} - hook extension - defines a new hook - see hook1, etc. below if you want to define hooks used by your extension
| }}{{#if:database |database |database}}{{#ifeq:Category:Database extensions| | }} - adds tables and/or fields to the database backing a MediaWiki installation
| }}{{#if:data extraction |data extraction |data extraction}}{{#ifeq:Category:Data extraction extensions| | }} - data extraction
| }}{{#if:filerepo |filerepo |filerepo}}{{#ifeq:Category:File repository extensions| | }} - extension that adds new file repository types as file backend
| }}{{#if:example |example |example}}{{#ifeq:Category:Extension examples| | }} - not a real extension, but an example of how to write one
| }}{{#if:beta features |beta features |beta features}}{{#ifeq:Category:Beta Feature extensions| | }} - extensions that new {{#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| | }}.
| }}{{#if:php |php |php}}{{#ifeq:Category:PHP extensions| | }} - extensions to the underlying {{#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| | }} programming language.
| }}{{#if:locale |locale |locale}}{{#ifeq:Category:Internationalization extensions| | }} - extensions associated with localisation Any other value for 'type' is invalid, and will cause the extension to be placed in [[:Category:Extensions with invalid or missing type{{#translation:}}]]. Note: Many extensions have more than one type, if this applies to yours, replace|type= with |type1=|type2=|type3=.... You may define up to six types for an extension. |
| hook1 hook2 hook3 hook4 ... |
name of each hook used by the extension
Entering values in this field is a good way to get exposure for your extension and help other developers. Each documented hook will automatically add the extension to a category listing extensions that use that hook. This category is autolinked to each hook page so that programmers can easily find examples of extensions that use a particular hook. For built-in hooks:
| }}{{#if:Manual:Hooks |Manual:Hooks |Manual:Hooks}}{{#ifeq:Manual:Hooks| | }} for values (but omit introductory '/'). For custom hooks defined by extensions:
|
| newhook1 newhook2 newhook3 newhook4 ... newhook90 |
name of each hook provided by the extension You might also want to add the hooks to Extension hook registry. |
| username | The author's username on MediaWiki.org (if they have one). May be omitted, but if present it will be used to link to the author's user & user_talk page. It should be provided without namespace and without [[]]s. |
| Template:Visible anchor | The extension author's name, if different from their MediaWiki.org username. Free text. If omitted then the 'username' field will be used (if present). |
| description | short description |
| Template:Visible anchor | Screenshot or logo of extension. It should be provided without namespace and without [[]]s. |
| Template:Visible anchor | Facultative, size of the image without adding px, e.g. 360 (default size is 300px) |
| Template:Visible anchor | Last version |
| Template:Visible anchor | Date of the last update |
| Template:Visible anchor | Preview version |
| Template:Visible anchor | Date of the last update to the preview version |
| compatibility policy | {{#ifeq:Compatibility|
| }}{{#if:Compatibility policy |Compatibility policy |Compatibility policy}}{{#ifeq:Compatibility| | }} (accepted values: master, main, rel, ltsrel). ({{#ifeq:Category:Extensions without a compatibility policy| | }}{{#if:backlog |backlog |backlog}}{{#ifeq:Category:Extensions without a compatibility policy| |}}) |
| Template:Visible anchor | Required version of MediaWiki. Most extensions should not need to use this — it defaults to the value of the Template:Manual property of Template:Manual. See also {{#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| | }} and {{#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| |}}. |
| Template:Visible anchor | Required version of PHP |
| Template:Visible anchor |
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 <syntaxhighlight lang=php inline>$IP/extensions/ExtensionName</syntaxhighlight> and inserted <syntaxhighlight lang=php inline>wfLoadExtension( "ExtensionName" );</syntaxhighlight> into "LocalSettings.php", run from the command line:
|
| composer | The extension's Composer package name, in the standard format. It will be automatically included if set in an extension's "composer.json" file (i.e. this parameter is not required in that case). It will be linked to the extension's page on Packagist. |
| table1 table2 table3 table4 ... table30 | name of each non-core table used by the extension
Links to a subpage of your extension page. For instance, "table1 = cu_changes" at {{#ifeq:Extension:CheckUser| | }}{{#if:Extension:CheckUser |Extension:CheckUser |Extension:CheckUser}}{{#ifeq:Extension:CheckUser| | }} will link to {{#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| | }}. Don't list core tables such as {{#ifeq:Manual:Page table| | }}{{#if:page |page |page}}{{#ifeq:Manual:Page table| | }} or {{#ifeq:Manual:Revision table| | }}{{#if:revision |revision |revision}}{{#ifeq:Manual:Revision table| |}}; only list tables that are added by extensions. |
| Template:Visible anchor | License governing use of this extension, as one of the codes found in https://spdx.org/licenses/, e.g. GPL-2.0-or-later, GPL-2.0-only or GPL-3.0-or-later, etc. |
| download | link to the download : Git, Template:Tl. |
| repo | Name of the Gerrit repository the extension's code is stored in, if different from the page name. Setting this automatically sets Template:Para, and allows the template to automatically load data from the appropriate extension.json file. |
| Template:Visible anchor | External link to the readme file, e.g. https://phabricator.wikimedia.org/r/browse/mediawiki/extensions/Flow;master;README |
| Template:Visible anchor | External link to the changelog file, e.g. Extension:GeoGebra/Changelog |
| Template:Visible anchor | Link to user-help for the extension. If not provided, will look for Help:Extension:ExtensionName. If provided, full wikitext link should be given (because you may want to link to e.g. an external page). |
| Template:Visible anchor | Example, website or screenshot of working extension |
| Template:Visible anchor | namespace in which this extension is used |
| Template:Visible anchor | Available parameters for LocalSettings.php |
| Template:Visible anchor | Any tags your extension uses (e.g. <tag1>, <tag2>). |
| Template:Visible anchor | Rights added by the extension. Not to be confused with the license! Rights are such as {{#ifeq:Extension:MakeBot|
| }}{{#if:makebot |makebot |makebot}}{{#ifeq:Extension:MakeBot| | }} or {{#ifeq:Extension:Desysop| | }}{{#if:desysop |desysop |desysop}}{{#ifeq:Extension:Desysop| |}}, not such as GFDL or LGPL or GPL - those are licenses! |
| Template:Visible anchor | Additional compatibility information, for instance compatibility charts. It's encouraged to add any client-side compatibility information here too, especially when diverging from expectations of full support for a browser. |
| Template:Visible anchor | Bugzilla MediaWiki extension component name |
| Template:Visible anchor | Phabricator project name |
| Template:Visible anchor |
Optional parameter to link the exact page where (message group id with which) the extension will be translatable on translatewiki.net if enabled. If the default link is incorrect, manually set it to:
|
| Template:Visible anchor | {{#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| |}} role |
| Template:Visible anchor | Override the page name used for the check usage link. |
Control parameters
| Parameter | Description |
|---|---|
| templatemode |
Controls auto-categorisation of host page. Normally left blank. Alternate values are:
|
Using the infobox
Existing extension pages
If you want to add the infobox to an existing page, copy and paste the code at the top of this page.
Create a new extension page
If you want to create a new extension page, enter the name below and click the button. A new page will be created with the infobox template already in place.
Template:Extension/CreateExtensionInputBox
Enhancing this template
If you would like to improve on this template, thanks! This is a complicated template so here is some help along the way:
The Create extension button
To improve the create extension button behavior:
- {{#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|
|
}}: The boilerplate extension that is preloaded into newly-created pages.
- {{#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|
|
}}: An input box that can be inserted wherever you want users to easily create extensions. For documentation on the {{#if:|
|
}}{{#switch:open
|c|close =
|s|single
|o|open
|p|pair = <inputbox{{#if:| {{{params}}}}}
}}{{#switch:open
|c|close =
|s|single = />
|o|open = >
|p|pair = >...
}}{{#switch:open
|s|single
|o|open =
|c|close
|p|pair = </inputbox>
}}{{#if:|
|
}} tag, please see {{#ifeq:Extension:InputBox|
|
}}{{#if:Extension:InputBox |Extension:InputBox |Extension:InputBox}}{{#ifeq:Extension:InputBox|
|
}}.
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 content parameter documentation and link its label to that documentation.
To change/correct/add to the implementation type parameters:
- Check the talk page - there have been some extensive discussions about this field.
- The valid types and what they link to are defined at Module:Extension
To change the behavior of the hook parameters:
- Template:Extension/HookInUse: Adds links and categories for a hook in use. Multiple hooks in use are implemented by calling this template with Template:Foreach.
- Template:Extension/HookInUseNoCats: Used instead of Template:Extension/HookInUse when this template is used in
templatemode=nocats. Templates used with Template:Foreach can only take one parameter so we need to wrap the call to Template:Extension/HookInUse with another template that sets the mode.
Test case
See if the following pages are still ok, after edited this template.
Template:Extension/doc| [[Category:Template documentation pages{{#translation:}}]] }} Maintenance: vulnerabilities, archived
[[Category:Infobox templates{{#translation:}}|Extension/en]]