模板:Configuration list entry/doc
外观
| 文件:Codex icon book color-base.svg | This is a documentation subpage for 模板:Configuration list entry. It contains usage information, categories and other content that is not part of the original 模板 page. |
| Lua标志 | 使用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 模块:Configuration_list_entry第32行Lua错误:Bogus configuration variable: $wgParserCacheUseJson
- {{Configuration list entry|wgVersion}} -> $wgVersion 模块:Configuration_list_entry第32行Lua错误:Bogus configuration variable: $wgVersion
- {{Configuration list entry|wgRedirectScript}} -> $wgRedirectScript 模块:Configuration_list_entry第32行Lua错误:Bogus configuration variable: $wgRedirectScript
- {{Configuration list entry|IP}} -> $IP 模块:Configuration_list_entry第32行Lua错误:Bogus configuration variable: $IP