Extension:MsInsert/pl

Category:GPL licensed extensions/pl
Podręcznik rozszerzeń MediaWiki
MsInsert
Status wydania: stabilneCategory:Stable extensions/pl
Realizacja Interfejs użytkownikaCategory:User interface extensions/pl
Opis Adds a dropdown menu for inserting into the editor the content of certain pages
Autor(zy) Martin Schwindl, Martin Keyler
Opiekun(owie) Sophivorus
Ostatnia wersja 4.0 (2024-06-17)
MediaWiki 1.39+Category:Extensions with manual MediaWiki version
PHP 8.2+
Licencja Licencja GNU General Public License 2.0 lub nowsza
Pobieranie Category:Extensions in Wikimedia version control/pl
  • $wgTemplates
Quarterly downloads 4 (Ranked 106th)
Przetłumacz rozszerzenie MsInsert jeżeli jest dostępne na translatewiki.net
Category:All extensions/pl

The MsInsert extension adds a dropdown menu to the editor (both the WikiEditor and the regular editor) that allows you to insert into the wikitext the content of any wiki page listed in the dropdown menu.

The wiki pages are added to the dropdown menu from LocalSettings.php.

Instalacja

  • Pobierz i umieść plik(i) w katalogu o nazwie MsInsert 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/MsInsert
  • Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
    wfLoadExtension( 'MsInsert' );
    
  • Yes Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.

Konfiguracja

To add a page to the dropdown menu, add it to the $wgTemplates array in your LocalSettings.php, like so:

$wgTemplates = [ 'Template:Test', 'Main Page', 'Talk:Main Page' ];

Or alternatively:

$wgTemplates[] = 'Template:Test';
$wgTemplates[] = 'Main Page';
$wgTemplates[] = 'Talk:Main Page';

If the page does not exist yet, then it will not be added to the dropdown menu, even if it's listed in the $wgTemplates array. By default, the array is empty.

Użycie

Once a page has been added to the $wgTemplates, it will appear listed in the dropdown menu whenever you edit a page. By selecting it in the dropdown menu, the extension will fetch its contents and insert them into the wikitext, wherever you had the cursor.

Zobacz też

Category:All extensions/pl Category:EditPage::showEditForm:initial extensions/pl Category:Extensions in Wikimedia version control/pl Category:Extensions with manual MediaWiki version Category:GPL licensed extensions/pl Category:ResourceLoaderGetConfigVars extensions/pl Category:Stable extensions/pl Category:User interface extensions/pl