Module:Louvre rooms
oops
← Older revision
Revision as of 11:35, 22 March 2013
Line 4,420:
Line 4,420:
numbering_unit = { -- maps each thematic unit to a numbering system (and a category
numbering_unit = { -- maps each thematic unit to a numbering system (and a category
["Peintures italiennes"] = "Louvre by room - Italian, Spanish and English Paintings",
["Peintures italiennes"] = "Louvre by room - Italian, Spanish and English Paintings",
−
["Peintures espagnoles"] = "Louvre by room - Italian, Spanish and English Paintings",
["Peinture française"] = "Louvre by room - French Paintings",
["Peinture française"] = "Louvre by room - French Paintings",
−
["Egypte pharaonique"] = "Louvre by room - Egyptian antiquities",
+
["Egypte pharaonique"] = "Louvre by room Egyptian antiquities",
}
}
Line 4,470:
Line 4,469:
function p.main(frame)
function p.main(frame)
−
return tonumber("A")
+
ID = tonumber(frame.args[1])
+
query = frame.args[2]
+
if pcall(p.getinfo, ID, query) then
+
result = p.getinfo(ID, query)
+
else
+
result = nil
+
end
+
return result
end
end
Line 4,494:
Line 4,493:
return wikilist
return wikilist
end
end
+
function sort_rooms(a, b) -- should sort this way 1, 2, 11, A, Abis, C
function sort_rooms(a, b) -- should sort this way 1, 2, 11, A, Abis, C
http://commons.wikimedia.org/w/index.php?title=Module:Louvre_rooms&diff=93080220&oldid=93080102