Manual:Wg variable/hu

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:Wg variable and the translation is 50% complete.

Other languages:
Deutsch • ‎English • ‎dansk • ‎español • ‎magyar • ‎polski • ‎português do Brasil • ‎čeština • ‎日本語

A wg a MediaWiki által használt fontos, nem konstans változókra utal, ami a „Wikipedia Global” rövidítése (a változók bevezetésekor a többi projekt még nem létezett; lásd: Wikipédia).

Az egyszerűség kedvéért minden globális hatókörrel rendelkező globális változó rendelkezik ezzel az előtaggal. However, a casual hacker will mainly come across such variables in the files includes/DefaultSettings.php and LocalSettings.php , which define variables to control the behavior of the software in various ways.

The DefaultSettings.php file stores the defaults for these values and should not be edited; the LocalSettings file is used to override these values for a specific site — if a particular variable is not mentioned in your LocalSettings file, copy the entry from DefaultSettings and amend as appropriate.

Confusingly, MediaWiki code (mainly in OutputPage.php) and extensions set a different (though overlapping) set of configuration variables in browser JavaScript, and many of these variables also have a wg prefix (without PHP's $ sign). See Manual:Interface/JavaScript#mw.config for a list.

Starting with the introduction of the Config class in MediaWiki 1.23, the "wg" prefix for PHP global variables is being phased out as configuration settings are moving away from global scope.

Lásd még