Open main menu

Extension:MyVariables/da

This page is a translated version of the page Extension:MyVariables and the translation is 22% complete.

Other languages:
English • ‎dansk • ‎español • ‎polski • ‎русский • ‎हिन्दी • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
MyVariables
Release status: stabil
Implementation Variable
Beskrivelse Adds new built-in variables
Forfatter(e)
Latest version 3.5.1 (2019-05-04)
MediaWiki 1.28+
PHP 5.4+
Database changes Nej
Licens GNU General Public License 2.0 or later
Download
Translate the MyVariables extension if it is available at translatewiki.net
Check usage and version matrix.

The MyVariables extension adds new built-in variables:

Variable Beskrivelse Sample
{{CURRENTUSER}} Login of current user or the IP for anonymous users "Pastakhov" or "x.x.x.x"
{{CURRENTLOGGEDUSER}} Login of current user or empty for anonymous users "Pastakhov" eller ""
{{CURRENTUSERREALNAME}} Real name of current user "Pavel Astakhov"
{{LOGO}} Path to wiki logo "/w/skins/common/images/wiki.png"
{{UUID}} Random (v4) UUID "65ba1a51-c723-4b9d-b1f3-13148d628322"
{{USERLANGUAGECODE}} Language that the user specified in the preferences "en", "en-ca", "ru", osv.

Installation

  • Download and place the file(s) in a directory called MyVariables in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'MyVariables' );
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Note

  • This extension should not be confused with the Variables extension, which allows the use of variables in the computer programming sense.

Se også