Módulo:Itemgroup/groups
Aparencia
[ máis información | ver o historial | | | ver as instrucións ]
Aínda non se redactaron as instrucións sobre como usar este módulo.
[ máis información | ver o historial | | | ver as instrucións ]
Os editores poden probar cambios no mesmo en Módulo:Itemgroup/groups/probas.
Por favor, engade as categorías na subpáxina de documentación e os interwikis no Wikidata. Ver as subpáxinas deste módulo.
Por favor, engade as categorías na subpáxina de documentación e os interwikis no Wikidata. Ver as subpáxinas deste módulo.
-- Versión de cawiki 20231112
--[[
This module is a data table used by function "group" of module:itemgroup.
It contains a list of "values" associated with a ["my group"],
which will be returned if the Qid in {{{item|}}} matches any of the values in the list.
It allows templates to simulate a multivalue "if" or "switch" asking by the ["my group"],
instead having the Qid target within code. In fact, it sinonimize different Qid to be processed in the same way.
It allows platform-level customization of template operation.
To have different collections of series linked to one (["my group"]), them may be gather under ["mytable"] subtable.
When invoked, the value of {{{item|}}} is searched within all ["mytable"] values
and returns the corresponding ["my group"], or null if none match.
The name assigned to ["mytable"] and ["my group"] is free, but is determined by the template's use.
]]
local data = {
--["mytable"] = {
-- ["mygroup"] = {'Qid1', 'Qid2'},
--}
-- tables and groups, edit below
-- Values used in template infobox person
["IBperson_subtemplate_P54"] = { -- it allows to determine which sub-template using to show person's sportive activity
-- sports with goals
["pointsgoals"] = {'Q2736','Q5849','Q1748406', 'Q7707', 'Q8418', 'Q41466', 'Q171401', 'Q41323',
'Q50776', 'Q606060', 'Q946171', 'Q16534667', 'Q31930761','Q134211', 'Q1402543', 'Q204632', 'Q134211', 'Q3440462',
-- sports with points
'Q5372','Q5369','Q171038', 'Q1734', 'Q3930', 'Q41323', 'Q50776', 'Q5378', 'Q10962','Q5849', 'Q5375'},
-- motorsports
["motorsport"] = {'Q608003', 'Q328716', 'Q850292', 'Q965550', 'Q5386'}
},
-- Values used in template infobox political geography
["IBgeopoli_header"] = { -- it allows to determine which intermediate headers to show
["header_to_show"] = {'localization', 'population', 'geography', 'history',
'organization', 'indicative', 'final'} -- prefix NO to avoid showing (ex: 'NO_geography')
},
-- Values used in template infobox elections and its subtemplates
["IBelection_yesorno"] = {
["yes_in_referendum"] = {'Q41216873', 'Q231043', 'Q24759380'}, -- /prepare
["no_in_referendum"] = {'Q41216897', 'Q19358049', 'Q24759450'} -- /prepare
},
["IBelection_type_election"] = {
-- <!--direct --><!-- indirect --> <!-- first-past-the-post -->
["direct"] = {'Q1196727', 'Q877353', 'Q5557375', 'Q1211577', 'Q2746726', 'Q205759', 'Q31467', 'Q1307208', 'Q60788298', 'direct', 'directa', 'indirect'},
["two_rounds"] = {'Q615255', 'two_rounds', 'two rounds', 'dues rondes', 'dues voltes', 'dos rondas'},
["proportional"] = {'Q31764', 'Q13365595', 'Q133', 'proportional', 'proporcional'}, -- party-list proportional representation
["referendum"] = {'Q43109', 'Q1458216', 'referendum'},
["limited"] = {'Q3786779', 'limited'}, --vot limitat
["double"] = {'double', 'double election', 'doble', 'doble elecció', 'doble elección'}
},
-- Values used in template infobox event
["IBevent_Storm_color"] = {
-- Color for tropical storms background depending on category
-- 5ebaff (blue): Tropical depression
["5ebaff"] = {'Q18650988', 'Q63106470', 'Q63106482', 'Q63170811'},
-- ccffff (light blue): severe tropical storm
["ccffff"] = {'Q11069306', 'Q63106574', 'Q11069306', 'Q63183636'},
-- 00faf4 (cyan): Tropical storm / cyclone cat 1
["00faf4"] = {'Q3157041', 'Q63106520', 'Q63170831', 'Q63171248'},
-- ffffcc (lemon): hurricane cat 1 / trop.cyclone / cyclone cat 3
["ffffcc"] = {'Q63100559', 'Q63108234', 'Q16172167', 'Q63183653'},
-- ffe775 (golden): hurricane cat 2 /cyclone sever
["ffe775"] = {'Q63100584'},
-- ffc140 (orange): hurricane cat 3 / cyclone sever cat 4 /
["ffc140"] = {'Q63100595', 'Q63183392', 'Q63182478', 'Q63183687'},
-- ff8f20 (brown): hurricane cat 4 / typhoon cat 4
["ff8f20"] = {'Q63100601'},
-- fdaf9a (coral): typhoon
["fdaf9a"] = {'Q140588'},
-- ff6060 (salmon): Category 5
["ff6060"] = {'Q63100611', 'Q15941028', 'Q63183538', 'Q63182937', 'Q63183721'}
},
-- Values used to handle heritage status
["heritage_status"] = {
["world_heritage"] = {'Q9259','Q43113623'},
["cultural_heritage"] = {'Q23038972', 'Q23038976', 'Q23038977', 'Q23038978', 'Q23038979','Q23038980'},
["natural_heritage"] = {'Q23038981', 'Q23038983', 'Q23038985', 'Q23038986'},
["intangible_heritage"] = {'Q59544'}
},
["heritage_status_full"] = {
["world-natural_heritage"] = {'Q9259','Q43113623', 'Q59544'}
},
-- Values used in template infobox organisation
["infobox organisation"] = {
["esport"] = {'Q847017','Q4438121'},
["edifici"] = {'Q411761', 'Q55488', 'Q483110', 'Q7540126', 'Q16560', 'Q644371', 'Q1021645'}
},
-- Values used in template infobox sport competition
["infobox competition pointsgoals"] = {
["sports_with_goals"] = {'Q2736','Q5849','Q1748406', 'Q7707', 'Q8418', 'Q41466', 'Q171401', 'Q41323', 'Q5378','Q50776', 'Q606060', 'Q946171', 'Q16534667', 'Q31930761', 'Q134211', 'Q1402543', 'Q204632', 'Q134211', 'Q3440462'}
},
["infobox competition matchrace"] = {
["partidos"] -- <<<< Must be translated to a WP language
= {'Q2736','Q5849','Q1734', 'Q5375', 'Q1748406', 'Q5372', 'Q171401', 'Q41323', 'Q8418','Q213711', 'Q41466', 'Q7707', 'Q5369',
'Q5378', 'Q10962','Q270102', 'Q718', 'Q3440462', 'Q847', 'Q1455', 'Q50776', 'Q210778', 'Q963312', 'Q3930','Q1622659', 'Q248534',
'Q204632','Q3915070','Q55841593','Q206763','Q606060', 'Q4543', 'Q192937', 'Q33107434', 'Q647559', 'Q185851', 'Q136851', 'Q28954',
'Q300920', 'Q1050588', 'Q659707', 'Q990637','Q1551265', 'Q4851253','Q212845', 'Q478659','Q171038', 'Q210550','Q1628688', 'Q2887217',
'Q183018', 'Q1358545','Q3003786', 'Q7291', 'Q946171', 'Q2250158', 'Q2483334' },
["carreires"] -- <<<< Must be translated to a WP language
= {'Q5386','Q1758324', 'Q15732689', 'Q5367', 'Q17163326', 'Q853890', 'Q1968', 'Q1805420', 'Q1902630', 'Q7856', 'Q371804',
'Q43080', 'Q14085739', 'Q506749', 'Q1777054', 'Q774176', 'Q1199515', 'Q3609', 'Q2705092','Q820141', 'Q319565', 'Q328716','Q22940089',
'Q624161' },
["competicións"] -- <<<< Must be translated to a WP language
= {'Q32112', 'Q148636', 'Q2701632', 'Q11413', 'Q223341' }
}
-- end of tables, do not edit below
}
return data