Anonymous
Not logged in
English
Log in
Request account
BrineRIS Dataspace
Search
Changes
From BrineRIS Dataspace
Namespaces
Module
Discussion
More
More
Languages
Page actions
Read
View source
History
Create page
Create subpage
Purge
← 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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
More information
OK
Navigation
Navigation
Main page
Recent changes
Random page
Editor-Tutorial
New
Page
Subpage
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
Userpage tools
More
Printable version