Jump to content

Extension:Examples/pl: Difference between revisions

From mediawiki.org
Content deleted Content added
FuzzyBot (talk | contribs)
Updating to match new version of source page
FuzzyBot (talk | contribs)
Updating to match new version of source page
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{notice|1=Page needs to be updated after finishing the [[phab:T156568]] ticket as it's a major refactor of the extension to a more recent architecture MediaWiki extensions and use of MediaWiki 1.25+.}}
{{Extension|templatemode=
{{Extension|templatemode=
|status = stable
|status = stable
|type1 = example
|type1 = example
|type2 =
|type2 = contenthandler
|hook1 = <!-- default / custom hooks used, see [[Template:Extension]] for details -->
|hook2 =
|author = [[User:Krinkle|Krinkle]], [[User:Kaldari|Kaldari]]
|author = [[User:Krinkle|Krinkle]], [[User:Kaldari|Kaldari]]
|description =
|description =
|image = Example extension screenshot.png
|image = Example extension screenshot.png
|imagesize = 400px
|imagesize = 400
|version =
|version =
|update =
|update =
Line 16: Line 13:
|php =
|php =
|license = GPL-2.0+
|license = GPL-2.0+
|download = {{WikimediaDownload|examples|nosnapshot=1}}
|download = {{WikimediaDownload|examples|phab=EXAM|nosnapshot=1}}
|readme =
|readme =
|changelog =
|changelog =
Line 24: Line 21:
|example =
|example =
|compatibility =
|compatibility =
|phabricator = Mediawiki-extensions-Examples
|phabricator = MediaWiki-extensions-Examples
}}
}}
<span lang="en" dir="ltr" class="mw-content-ltr">The '''Example''' extension is a collection of small extensions that extend the {{ll|Extension:BoilerPlate|BoilerPlate}} extension, implementing some common features.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">The '''Examples''' extension is a collection of small extensions that extend the {{ll|Extension:BoilerPlate|BoilerPlate}} extension, implementing some common features.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">It has many additional annotations and inline comments explaining how it all works.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">It has many additional annotations and inline comments explaining how it all works.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">''Read'' the Example extension, ''base your own code on'' the BoilerPlate extension.</span>
<span lang="en" dir="ltr" class="mw-content-ltr">''Read'' the Examples extension, ''base your own code on'' the BoilerPlate extension.</span>


<span id="Installation"></span>
==Instalacja==
==Instalacja==
{{ExtensionInstall|examples|registration=required}}

<div lang="en" dir="ltr" class="mw-content-ltr">
* [[Special:ExtensionDistributor/examples|Download]] and extract the files in a directory called <code>examples</code> in your <code>extensions/</code> folder.
</div> <span lang="en" dir="ltr" class="mw-content-ltr">If you're a developer then instead you should use <kbd>[[git]] clone</kbd> to clone the mediawiki/extensions/examples repository in your <code>extensions/</code> folder.</span>
<div lang="en" dir="ltr" class="mw-content-ltr">
* Add the following code at the bottom of your LocalSettings.php:
</div>
{{#tag:syntaxhighlight|
wfLoadExtension( 'examples' );
|lang="php"
}}

* {{done}} – <span lang="en" dir="ltr" class="mw-content-ltr">Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.</span>


<!--
<!--
Line 51: Line 37:
-->
-->


<span id="See_also"></span>
==Zobacz też==
==Zobacz też==
* {{ll|Extension:BoilerPlate}}
* {{ll|Extension:BoilerPlate}}

{{Extension development}}

Latest revision as of 10:54, 30 May 2025

Podręcznik rozszerzeń MediaWiki
Examples
Status wydania: stabilne
Realizacja Przykład, ContentHandler
Autor(zy) Krinkle, Kaldari
MediaWiki 1.32
Licence Licencja GNU General Public License 2.0 lub późniejsza
Pobieranie
Przetłumacz rozszerzenie Examples jeżeli jest dostępne na translatewiki.net
Problemy Otwarte zadania · Zgłoś błąd

The Examples extension is a collection of small extensions that extend the BoilerPlate extension, implementing some common features. It has many additional annotations and inline comments explaining how it all works. Read the Examples extension, base your own code on the BoilerPlate extension.

Instalacja

  • Pobierz i umieść plik(i) w katalogu o nazwie examples w folderze extensions/.
    Developers and code contributors should install the extension from Git instead, using:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/examples
    
  • Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
    wfLoadExtension( 'examples' );
    
  • Yes Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.


Zobacz też