|
|
第1行: |
第1行: |
− | <languages/>
| + | {{TNT|Extension |
− | {{TNT|Extension|templatemode= | + | | name = MultiBoilerplate |
− | |name = Example | + | | status = stable |
− | |status = stable | + | | type = interface |
− | |type1 = example | + | | hook1 = EditPage::showEditForm:initial |
− | |type2 = | + | | author = [[User:RobertL|Robert Leverington]], [[User:FreedomFighterSparrow|Dror S. [FFS] ]], [[User:Jhf2442|Jhf2442]] |
− | |hook1 = <!-- default / custom hooks used, see [[Template:Extension]] for details --> | + | | image = MultiBoilerplate Screenshot.png |
− | |hook2 =
| + | | version = 2.1.1 |
− | |author = [[User:Krinkle|Krinkle]], [[User:Kaldari|Kaldari]]
| + | | update = 2016-05-22 |
− | |description =
| + | | mediawiki = 1.25+ (see [[#MediaWiki compatibility]]) |
− | |image = Example extension screenshot.png | + | | parameters = |
− | |imagesize = 400px
| + | * $wgMultiBoilerplateOptions |
− | |version = | + | * $wgMultiBoilerplateOverwrite |
− | |update = | + | * $wgMultiBoilerplateDiplaySpecialPage |
− | |mediawiki = 1.19 | + | | license = GPL-2.0+ |
− | |php = | + | | readme = {{git file|project=mediawiki/extensions/MultiBoilerplate|file=README.md|branch=HEAD|text=README.md}} |
− | |license = GPL-2.0+ | + | | download = {{TNT|WikimediaDownload|MultiBoilerplate}} |
− | |download = {{TNT|WikimediaDownload|examples|nosnapshot=1}} | + | | needs-updatephp = no |
− | |readme = | + | | changelog = {{git file|project=mediawiki/extensions/MultiBoilerplate|file=CHANGELOG.md|branch=HEAD|text=CHANGELOG}} |
− | |changelog = | + | | description = Allows a boilerplate to be selected from a drop down box located above the edit form when editing pages. |
− | |parameters = | + | | phabricator = MediaWiki-extensions-MultiBoilerplate |
− | |tags = | |
− | |rights = | |
− | |example = | |
− | |compatibility = | |
− | |phabricator = Example | |
| }} | | }} |
− | <translate>
| |
− | <!--T:1-->
| |
− | The '''Example''' extension extends the <tvar|BoilerPlate>{{ll|Extension:BoilerPlate|BoilerPlate}}</> extension, implementing some common extension features.</translate>
| |
− | <translate>
| |
− | <!--T:2-->
| |
− | It has many additional annotations and inline comments explaining how it all works.</translate>
| |
− | <translate>
| |
− | <!--T:3-->
| |
− | ''Read'' the Example extension, ''base your own code on'' the BoilerPlate extension.
| |
− |
| |
− | ==Installation== <!--T:4-->
| |
− |
| |
− | <!--T:5-->
| |
− | * [[<tvar|special>Special:ExtensionDistributor/examples</>|Download]] and extract the files in a directory called <tvar|examples><code>examples</code></> in your <tvar|extensions><code>extensions/</code></> folder.</translate> <translate><!--T:6--> If you're a developer then instead you should use <kbd>[[git]] clone</kbd> to clone the mediawiki/extensions/examples repository in your <tvar|extensions><code>extensions/</code></> folder.</translate>
| |
− | <translate>
| |
− | <!--T:7-->
| |
− | * Add the following code at the bottom of your LocalSettings.php:
| |
− | </translate>
| |
− | {{#tag:source|
| |
− | require_once __DIR__ . "/extensions/examples/Example/Example.php";
| |
− | |lang="php"
| |
− | }}
| |
− | * {{done}} – <translate><!--T:8--> Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.</translate>
| |
− |
| |
− | <!--
| |
− | ===Configuration parameters===
| |
− | ;$wgMyExtensionFoo: Some description.
| |
− | ;$wgMyExtensionBar: Some description.
| |
− | -->
| |
− |
| |
− | <translate>
| |
− | ==See also== <!--T:9-->
| |
− | </translate>
| |
− | * {{ll|Extension:BoilerPlate}}
| |