Changes
Jump to navigation
Jump to search
Template:Extension/Sample (view source)
Revision as of 10:34, 13 October 2019
, 10:34, 13 October 2019extension articles should not contain parameters (i.e. the ones that would be expanded if the article itself is transcluded, as it’s never); all templates have {{TNT}} built-in
<!--
**************************************************************
Usage instructions:
1. Fill in the template. For help, see [[Template:Extension]].
2. Remove any HTML comments from the infobox after you are finished.
3. Remove this comment when you no longer need it.
**************************************************************
-->
<languages/>
{{Extension|templatemode = <noinclude>nocats</noinclude>
|name = <includeonly>{{subst:SUBPAGENAME}}</includeonly><noinclude>MyExtension</noinclude>
|status = beta
|type1 = <!-- implementation type, see [[Template:Extension]] for details -->
|type2 =
|hook1 = <!-- default / custom hooks used, see [[Template:Extension]] for details -->
|hook2 =
|newhook1 = <!-- hooks added by the extension, see [[Template:Extension]] for details -->
|newhook2 =
|username = <!-- optional, but strongly recommended -->
|author = <!-- add only if different from user name -->
|description = <!-- brief description of purpose / use case -->
|image =
|imagesize =
|version =
|update =
|version preview =
|update preview =
|compatibility policy =
|mediawiki =
|php =
|needs-updatephp =
|composer =
|table1 =
|table2 =
|license = <!-- what license your extension is released under -->
|download = <includeonly>{{WikimediaDownload|{{subst:SUBPAGENAME}}}}</includeonly>
|readme = <includeonly>{{git file|project=mediawiki/extensions/{{subst:SUBPAGENAME}}|file=README|branch=HEAD|text=README}}</includeonly>
|changelog =
|example =
|namespace =
|parameters = <!-- configuration parameters, for use in LocalSettings.php -->
|tags =
|rights = <!-- user rights, for use with $wgGroupPermissions -->
|compatibility =
|phabricator =
|vagrant-role =
}}
The '''<includeonly>{{subst:SUBPAGENAME}}</includeonly><noinclude>MyExtension</noinclude>''' extension does foo.
==Installation==
{{ExtensionInstall}}
==Configuration parameters==
<!--
Explain the purpose of each configuration parameter provided to Template:Extension.
;$wgMyExtensionFoo: Some description.
;$wgMyExtensionBar: Some description.
-->
==User rights==
<!--
Explain the meaning of each user right provided to Template:Extension.
-->
==See also==
<!-- Add other related extensions here, if applicable. If not, just delete this comment and the "See also" header. -->
**************************************************************
Usage instructions:
1. Fill in the template. For help, see [[Template:Extension]].
2. Remove any HTML comments from the infobox after you are finished.
3. Remove this comment when you no longer need it.
**************************************************************
-->
<languages/>
{{Extension|templatemode = <noinclude>nocats</noinclude>
|name = <includeonly>{{subst:SUBPAGENAME}}</includeonly><noinclude>MyExtension</noinclude>
|status = beta
|type1 = <!-- implementation type, see [[Template:Extension]] for details -->
|type2 =
|hook1 = <!-- default / custom hooks used, see [[Template:Extension]] for details -->
|hook2 =
|newhook1 = <!-- hooks added by the extension, see [[Template:Extension]] for details -->
|newhook2 =
|username = <!-- optional, but strongly recommended -->
|author = <!-- add only if different from user name -->
|description = <!-- brief description of purpose / use case -->
|image =
|imagesize =
|version =
|update =
|version preview =
|update preview =
|compatibility policy =
|mediawiki =
|php =
|needs-updatephp =
|composer =
|table1 =
|table2 =
|license = <!-- what license your extension is released under -->
|download = <includeonly>{{WikimediaDownload|{{subst:SUBPAGENAME}}}}</includeonly>
|readme = <includeonly>{{git file|project=mediawiki/extensions/{{subst:SUBPAGENAME}}|file=README|branch=HEAD|text=README}}</includeonly>
|changelog =
|example =
|namespace =
|parameters = <!-- configuration parameters, for use in LocalSettings.php -->
|tags =
|rights = <!-- user rights, for use with $wgGroupPermissions -->
|compatibility =
|phabricator =
|vagrant-role =
}}
The '''<includeonly>{{subst:SUBPAGENAME}}</includeonly><noinclude>MyExtension</noinclude>''' extension does foo.
==Installation==
{{ExtensionInstall}}
==Configuration parameters==
<!--
Explain the purpose of each configuration parameter provided to Template:Extension.
;$wgMyExtensionFoo: Some description.
;$wgMyExtensionBar: Some description.
-->
==User rights==
<!--
Explain the meaning of each user right provided to Template:Extension.
-->
==See also==
<!-- Add other related extensions here, if applicable. If not, just delete this comment and the "See also" header. -->