Difference between revisions of "Template:Extension/doc"
Jump to navigation
Jump to search
document newhook parameters
>Matiia m (Reverted edits by 66.87.97.29 (talk) to last revision by Stemoc) |
>Tgr (WMF) (document newhook parameters) |
||
Line 20: | Line 20: | ||
|hook1 = | |hook1 = | ||
|hook2 = | |hook2 = | ||
|newhook1 = | |||
|newhook2 = | |||
|username = | |username = | ||
|author = | |author = | ||
Line 59: | Line 61: | ||
|hook1 = hook1 | |hook1 = hook1 | ||
|hook2 = hook2 | |hook2 = hook2 | ||
|newhook1 = newhook1 | |||
|newhook2 = newhook2 | |||
|username = SomeUser | |username = SomeUser | ||
|author = SomeAuthor | |author = SomeAuthor | ||
Line 85: | Line 89: | ||
|compatibility = {{{compatibility}}} | |compatibility = {{{compatibility}}} | ||
|bugzilla = {{{bugzilla}}} | |bugzilla = {{{bugzilla}}} | ||
|phabricator | |phabricator = {{{phabricator}}} | ||
|vagrant-role = {{{vagrant-role}}} | |vagrant-role = {{{vagrant-role}}} | ||
|pagedrive1 = true | |pagedrive1 = true | ||
Line 172: | Line 176: | ||
For multiple hooks, assign the first hook to '''hook1''', the second to '''hook2''' and so on. | For multiple hooks, assign the first hook to '''hook1''', the second to '''hook2''' and so on. | ||
|- | |||
| <span id="newhook">'''newhook1'''</span><br/>''newhook2''<br/>''newhook3''<br/>''newhook4''<br/>...<br/>''newhook30'' | |||
|valign="top"| '''name of each hook provided by the extension''' | |||
You might also want to add the hooks to [[Extension hook registry]]. | |||
|- | |- | ||
| <span id="username">'''username'''</span> || 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 <nowiki>[[]]</nowiki>s. | | <span id="username">'''username'''</span> || 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 <nowiki>[[]]</nowiki>s. | ||
Line 597: | Line 606: | ||
"hook48": { | "hook48": { | ||
"description": "Name of a hook used by the extension." | "description": "Name of a hook used by the extension." | ||
}, | |||
"newhook1": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook2": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook3": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook4": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook5": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook6": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook7": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook8": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook9": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook10": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook11": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook12": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook13": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook14": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook15": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook16": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook17": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook18": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook19": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook20": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook21": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook22": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook23": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook24": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook25": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook26": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook27": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook28": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook29": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook30": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook31": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook32": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook33": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook34": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook35": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook36": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook37": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook38": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook39": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook40": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook41": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook42": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook43": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook44": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook45": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook46": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook47": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | |||
"newhook48": { | |||
"description": "Name of a hook provided by the extension." | |||
}, | }, | ||
"compatibility": { | "compatibility": { |