Extension:GetUserName/de-formal
GetUserName Release status: stable |
|
---|---|
Implementation | Variable |
Description | Allows the current user's name to be put in a page |
Author(s) | |
Latest version | 2.1 (2022-01-02) |
Compatibility policy | Snapshots releases along with MediaWiki. Master is not backward compatible. |
MediaWiki | 1.35+ |
License | GNU General Public License 2.0 |
Download | GitHub: Note: README |
The GetUserName extension allows to obtain the current user's name from wgUser
and insert it on a page.
Usage
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.
Installation
- Die Download und die Datei(en) in ein Verzeichnis namens
GetUserName
im Ordnerextensions/
ablegen. - Folgenden Code am Ende Ihrer LocalSettings.php -Datei hinzufügen:
wfLoadExtension( 'GetUserName' );
- Done – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.