Module:data/magic words: Difference between revisions
Jump to navigation
Jump to search
Add #interlanguagelink and #interwikilink, and update some links.
(Created page with "local next = next local date_and_time = "mw:Help:Magic words#Date and time" local formatting = "mw:Help:Magic words#Formatting" local labeled_section_transclusion = "mw:Extension:Labeled Section Transclusion" local liquidthreads = "mw:Extension:LiquidThreads" local localization = "mw:Help:Magic words#Localization" local miscellaneous = "mw:Help:Magic words#Miscellaneous" local namespaces = "mw:Help:Magic words#Namespaces" local namespaces_2 = "mw:Help:Magic words#Namesp...") |
(Add #interlanguagelink and #interwikilink, and update some links.) |
||
| Line 2: | Line 2: | ||
local date_and_time = "mw:Help:Magic words#Date and time" | local date_and_time = "mw:Help:Magic words#Date and time" | ||
local escaped_characters = "mw:Help:Magic words#Escaped characters" | |||
local formatting = "mw:Help:Magic words#Formatting" | local formatting = "mw:Help:Magic words#Formatting" | ||
local labeled_section_transclusion = "mw:Extension:Labeled Section Transclusion" | local labeled_section_transclusion = "mw:Extension:Labeled Section Transclusion" | ||
local liquidthreads = "mw:Extension:LiquidThreads" | local liquidthreads = "mw:Extension:LiquidThreads" | ||
local | local localization_functions = "mw:Help:Magic words#Localization functions" | ||
local localization_variables = "mw:Help:Magic words#Localization variables" | |||
local miscellaneous = "mw:Help:Magic words#Miscellaneous" | local miscellaneous = "mw:Help:Magic words#Miscellaneous" | ||
local namespaces = "mw:Help:Magic words#Namespaces" | local namespaces = "mw:Help:Magic words#Namespaces" | ||
local namespaces_2 = "mw:Help:Magic words#Namespaces 2" | local namespaces_2 = "mw:Help:Magic words#Namespaces 2" | ||
local noexternallanglinks = "mw:Wikibase/Installation/Advanced configuration#noexternallanglinks" | local noexternallanglinks = "mw:Wikibase/Installation/Advanced configuration#noexternallanglinks" | ||
local page_names = "mw:Help:Magic words#Page names" | local page_names = "mw:Help:Magic words#Page names" | ||
local parser_functions_ext = "mw:Help:Extension:ParserFunctions##" -- ## is not a typo | local parser_functions_ext = "mw:Help:Extension:ParserFunctions##" -- ## is not a typo | ||
| Line 24: | Line 25: | ||
for k, v in next, { | for k, v in next, { | ||
["!"] = { | ["!"] = { | ||
parser_variable = | parser_variable = escaped_characters, | ||
case_sensitive = false | case_sensitive = false | ||
}, | }, | ||
| Line 31: | Line 32: | ||
parser_function = "mw:Extension:Babel#Usage", | parser_function = "mw:Extension:Babel#Usage", | ||
case_sensitive = false | case_sensitive = false | ||
}, | |||
["#bcp47"] = { -- Case-sensitive lowercase. | |||
parser_function = localization_functions, | |||
parser_variable = localization_functions, -- Not a typo. | |||
case_sensitive = true | |||
}, | }, | ||
| Line 41: | Line 48: | ||
parser_function = formatting, | parser_function = formatting, | ||
case_sensitive = false | case_sensitive = false | ||
}, | |||
["#dir"] = { -- Case-sensitive lowercase. | |||
parser_function = localization_functions, | |||
parser_variable = localization_functions, -- Not a typo. | |||
case_sensitive = true | |||
}, | }, | ||
| Line 46: | Line 59: | ||
parser_function = parser_functions_ext .. "expr", | parser_function = parser_functions_ext .. "expr", | ||
case_sensitive = false | case_sensitive = false | ||
}, | |||
["#FORMAL"] = { | |||
parser_function = localization_functions, | |||
case_sensitive = true | |||
}, | }, | ||
| Line 77: | Line 95: | ||
parser_function = parser_functions_ext .. "ifexpr", | parser_function = parser_functions_ext .. "ifexpr", | ||
case_sensitive = false | case_sensitive = false | ||
}, | |||
["#interlanguagelink"] = { -- Case-sensitive lowercase. | |||
parser_function = miscellaneous, | |||
case_sensitive = true | |||
}, | |||
["#interwikilink"] = { -- Case-sensitive lowercase. | |||
parser_function = miscellaneous, | |||
case_sensitive = true | |||
}, | }, | ||
| Line 85: | Line 113: | ||
["#LANGUAGE"] = { | ["#LANGUAGE"] = { | ||
parser_function = | parser_function = localization_functions, | ||
parser_variable = localization_functions, -- Not a typo. | |||
case_sensitive = false | case_sensitive = false | ||
}, | }, | ||
| Line 155: | Line 184: | ||
parser_function = parser_functions_ext .. "time", | parser_function = parser_functions_ext .. "time", | ||
case_sensitive = false | case_sensitive = false | ||
}, | |||
["#timef"] = { -- Case-sensitive lowercase. | |||
parser_function = parser_functions_ext, | |||
case_sensitive = true | |||
}, | |||
["#timefl"] = { -- Case-sensitive lowercase. | |||
parser_function = parser_functions_ext, | |||
case_sensitive = true | |||
}, | }, | ||
| Line 173: | Line 212: | ||
["="] = { | ["="] = { | ||
parser_variable = | parser_variable = escaped_characters, | ||
case_sensitive = false | case_sensitive = false | ||
}, | }, | ||
| Line 352: | Line 391: | ||
["GENDER"] = { | ["GENDER"] = { | ||
parser_function = | parser_function = localization_functions, | ||
case_sensitive = false | case_sensitive = false | ||
}, | }, | ||
["GRAMMAR"] = { | ["GRAMMAR"] = { | ||
parser_function = | parser_function = localization_functions, | ||
case_sensitive = false | case_sensitive = false | ||
}, | }, | ||
["INT"] = { | ["INT"] = { | ||
parser_function = | parser_function = localization_functions, | ||
case_sensitive = false | case_sensitive = false | ||
}, | }, | ||
| Line 596: | Line 635: | ||
["PLURAL"] = { | ["PLURAL"] = { | ||
parser_function = | parser_function = localization_functions, | ||
case_sensitive = false | case_sensitive = false | ||
}, | }, | ||
| Line 602: | Line 641: | ||
["PROTECTIONEXPIRY"] = { | ["PROTECTIONEXPIRY"] = { | ||
parser_function = { | parser_function = { | ||
technical_metadata, | |||
technical_metadata_of_another_page | |||
}, | }, | ||
case_sensitive = true | case_sensitive = true | ||
| Line 610: | Line 649: | ||
["PROTECTIONLEVEL"] = { | ["PROTECTIONLEVEL"] = { | ||
parser_function = { | parser_function = { | ||
technical_metadata, | |||
technical_metadata_of_another_page | |||
}, | }, | ||
case_sensitive = true | case_sensitive = true | ||
| Line 801: | Line 840: | ||
parser_function = url_data, | parser_function = url_data, | ||
case_sensitive = false | case_sensitive = false | ||
}, | |||
["USERLANGUAGE"] = { | |||
parser_variable = localization_variables, | |||
case_sensitive = true | |||
}, | }, | ||
} do | } do | ||