“ARM裸机加强版”的版本间的差异
来自百问网嵌入式Linux wiki
Baiwen root(讨论 | 贡献) (创建页面,内容为“File:TREE-OF-LIFE-VIII.jpg”) |
Baiwen root(讨论 | 贡献) |
||
| 第1行: | 第1行: | ||
| − | [[ | + | <languages/> |
| + | {{TNT|Extension|templatemode= | ||
| + | |name = Example | ||
| + | |status = stable | ||
| + | |type1 = example | ||
| + | |type2 = | ||
| + | |hook1 = <!-- default / custom hooks used, see [[Template:Extension]] for details --> | ||
| + | |hook2 = | ||
| + | |author = [[User:Krinkle|Krinkle]], [[User:Kaldari|Kaldari]] | ||
| + | |description = | ||
| + | |image = Example extension screenshot.png | ||
| + | |imagesize = 400px | ||
| + | |version = | ||
| + | |update = | ||
| + | |mediawiki = 1.19 | ||
| + | |php = | ||
| + | |license = GPL-2.0+ | ||
| + | |download = {{TNT|WikimediaDownload|examples|nosnapshot=1}} | ||
| + | |readme = | ||
| + | |changelog = | ||
| + | |parameters = | ||
| + | |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}} | ||
2018年1月11日 (四) 16:11的版本
<languages/>
<translate> The Example extension extends the <tvar|BoilerPlate>模板:Ll</> extension, implementing some common extension features.</translate> <translate> It has many additional annotations and inline comments explaining how it all works.</translate> <translate> Read the Example extension, base your own code on the BoilerPlate extension.
Installation
- [[<tvar|special>Special:ExtensionDistributor/examples</>|Download]] and extract the files in a directory called <tvar|examples>
examples</> in your <tvar|extensions>extensions/</> folder.</translate> <translate> If you're a developer then instead you should use git clone to clone the mediawiki/extensions/examples repository in your <tvar|extensions>extensions/</> folder.</translate>
<translate>
- Add the following code at the bottom of your LocalSettings.php:
</translate>
require_once __DIR__ . "/extensions/examples/Example/Example.php";
- 模板:Done – <translate> Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.</translate>
<translate>