Open main menu
Home
Random
Log in
Settings
About BrineRIS Dataspace
Disclaimers
BrineRIS Dataspace
Search
Changes
← Older edit
Newer edit →
Module:MwJson
(view source)
Revision as of 19:34, 12 March 2023
128 bytes added
,
19:34, 12 March 2023
Update package: OSW Core
Line 255:
Line 255:
local display_label = p.defaultArgPath(jsondata, {p.keys.name}, "")
local display_label = p.defaultArgPath(jsondata, {p.keys.name}, "")
−
if (display_label == "") then display_label = p.defaultArgPath(jsondata, {p.keys.label, 1, p.keys.text}, "") end
+
if (display_label == "
" or (title.nsText ~= "Category" and title.nsText ~= "Property
"
)
) then
+
display_label = p.defaultArgPath(jsondata, {p.keys.label, 1, p.keys.text}, "")
--prefere label for all non-category and non-property pages
+
end
local jsonld = p.copy(jsondata)
local jsonld = p.copy(jsondata)
Maintenance script
631
edits