<translate> [[<tvar|1>Special:MyLanguage/Phabricator</>|Issue tracker]]:</translate> [[phab:tag/{{{phabricator}}}/|#{{{phabricator}}}]]
Difference between revisions of "Template:Extension/en"
Jump to navigation
Jump to search
>FuzzyBot (Updating to match new version of source page) |
>FuzzyBot (Updating to match new version of source page) |
||
Line 741: | Line 741: | ||
To improve the create extension button behavior: | To improve the create extension button behavior: | ||
* '''[[Template:Extension/Sample]]:''' The boilerplate extension that is preloaded into newly-created pages. | * '''[[Template:Extension/Sample]]:''' The boilerplate extension that is preloaded into newly-created pages. | ||
* '''[[Template:Extension/CreateExtensionInputBox]]:''' An input box that can be inserted wherever you want users to easily create extensions. For documentation on the <code><nowiki><inputbox></nowiki></code> tag, please see | * '''[[Template:Extension/CreateExtensionInputBox]]:''' An input box that can be inserted wherever you want users to easily create extensions. For documentation on the <code><nowiki><inputbox></nowiki></code> tag, please see {{ll|Extension:InputBox|Extension:InputBox}}. | ||
=== Infobox parameters === | === Infobox parameters === | ||
In general: | 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 | |||
* 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 {{ll|Template:Extension#Content parameters|content parameter documentation}} and link its label to that documentation. | |||
To change/correct/add to the implementation type parameters: | To change/correct/add to the implementation type parameters: | ||
* Check the [[Template_talk:Extension|talk page]] - there have been some extensive discussions about this field. | * Check the [[Template_talk:Extension|talk page]] - there have been some extensive discussions about this field. | ||
* ''' | * '''{{ll|Template:Extension/TypeSwitch|Template:Extension/TypeSwitch}}:''' Stores the possible values for the type field. Multiple values are implemented by calling this template with [[Template:Foreach]]. | ||
* ''' | * '''{{ll|Template:Extension/TypeSwitchNoCats|Template:Extension/TypeSwitchNoCats}}:''' Does not need to be modified when adding a new type. Used instead of {{ll|Template:Extension/TypeSwitch|Template:Extension/TypeSwitch}} when this template is used in <code>templatemode=nocats</code>. Templates used with [[Template:Foreach]] can only take one parameter so we need to wrap the call to {{ll|Template:Extension/TypeSwitch|Template:Extension/TypeSwitch}} with another template that sets the mode. | ||
To change the behavior of the hook parameters: | 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/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 <code>templatemode=nocats</code>. 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. | * '''[[Template:Extension/HookInUseNoCats]]:''' Used instead of [[Template:Extension/HookInUse]] when this template is used in <code>templatemode=nocats</code>. 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 == | == Test case == | ||
See if the following pages are still ok, after edited this template. | See if the following pages are still ok, after edited this template. | ||
* [[Extension:Description2]] | * [[Extension:Description2]] |
Revision as of 20:56, 17 November 2019
<languages/> Lua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab.[[Category:Template documentation pages{{#translation:}}]] Maintenance: vulnerabilities, archived
[[Category:Info templates{{#translation:}}|Extension/en]] [[Category:Extension creation{{#translation:}}]] [[Category:Categorizing templates{{#translation:}}|Extension/en]] [[Category:Extension templates{{#translation:}}]]