Kiterjesztés:GetUserName

From mediawiki.org
This page is a translated version of the page Extension:GetUserName and the translation is 56% complete.
MediaWiki-kiterjesztések kézikönyve
GetUserName
Kiadási állapot: stabil
Megvalósítás Változó
Leírás Lehetővé teszi az aktuális felhasználó nevének közzétételét a lapon.
Szerző(k)
Legfrissebb verzió 2.1 (2022-01-02)
Kompatibilitási irányelv Snapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki 1.35+
Licenc GNU General Public License 2.0
Letöltés
README

The GetUserName extension allows to obtain the current user's name from wgUser and insert it on a page.

Használat

When {{#USERNAME:}} is found in the page, it will replace it with the current user name.

The cache is invalidated for pages using this extension.
In the visual editor, {{#USERNAME}} will evaluate to your current IP address because session information is not preserved when Parsoid parses pages. This also mean template substitution does not work with this tag.

Telepítés

  • Download a kiterjesztés fájljait, és mentsd el az extensions/ mappán belüli GetUserName könyvtárba.
  • Add hozzá az alábbi kódot a LocalSettings.php fájlod aljára:
    wfLoadExtension( 'GetUserName' );
    
  • Yes Kész – A Special:Version oldalon ellenőrizheted, hogy a kiterjesztés ténylegesen feltelepült-e.

Lásd még