Template:Configuration list entry: Difference between revisions
From Bonkipedia
[[mw:]]>Tacsipacsi (move documentation to subpage) |
ManfredoDo (talk | contribs) m (1 revision imported: Workaround and Utility Templates) |
(No difference)
|
Latest revision as of 17:53, 12 November 2022
Uses Lua: |
This template is used on Manual:Configuration settings to extract the description of each configuration variable from the corresponding manual page, allowing it to only be stored, and translated, in one place. It also automatically detects when a configuration setting was deprecated or removed. It takes one unnamed parameter: the name of a configuration variable, without the leading $, but with wg if applicable.
Examples:
- {{Configuration list entry|wgParserCacheUseJson}} -> $wgParserCacheUseJson Lua error in Module:Configuration_list_entry at line 32: Bogus configuration variable: $wgParserCacheUseJson.
- {{Configuration list entry|wgVersion}} -> $wgVersion Lua error in Module:Configuration_list_entry at line 32: Bogus configuration variable: $wgVersion.
- {{Configuration list entry|wgRedirectScript}} -> $wgRedirectScript Lua error in Module:Configuration_list_entry at line 32: Bogus configuration variable: $wgRedirectScript.
- {{Configuration list entry|IP}} -> $IP Lua error in Module:Configuration_list_entry at line 32: Bogus configuration variable: $IP.