Module:Itemgroup/list
Cuma
Documentation for this module may be created at Module:Itemgroup/list/doc
--[[
This module is a data table used by function "list" of module:itemgroup.
It contains "values" associated with a ["my group"] that actually gives "name" to the value.
It allows templates to avoid using "constant values" within the code,
allowing platform-level customization of template operation.
For example: a default value, an icon name, or a value that must be met in a condition,
can be changed without having to modify the template code, if its value is outsourced within this table.
To avoid conflicts with the same name (["my group"]) used in different templates,
the list of ["my group"] ↔ values, is grouped within several ["mytable"]s
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
-- Commons values used in several infoboxes: Infobox event, infotaula competició esportiva, et al. TODO: Gaeilge
["CommonUses"] = {
["1 dia"] = {'diari'}, -- freq. adjectives
["1 setmana"] = {'setmanal'},
["1 mes"] = {'mensual'},
["1 any"] = {'anual'},
["2 setmanes"] = {'quinzenal'},
["2 mesos"] = {'bimestral'},
["2 anys"] = {'biennal'},
["3 mesos"] = {'trimestral'},
["3 anys"] = {'triennal'},
["4 mesos"] = {'quadrimestral'},
["4 anys"] = {'quadriennal'},
["5 anys"] = {'quinquennal'},
["6 mesos"] = {'semestral'}
},
-- Values to filter images by its P407 language.
-- Infoboxes select image by our language (P407) before the one marked as preferenced
["PriorityImages"] = {
["Accepted_lang"] = {'Q9142'} -- Gaeilge
},
["PriorityWebs"] = {
["Accepted_lang"] = {'Q9142'} -- Gaeilge
},
-- Values used in template:infobox person
["IBperson"] = {
["WL_valid_image_in_P6802"] = {'Q482919/'}, -- Whitelist values for P3831 qualif. in P6802
["WL_tennis"] = {'Q847/Q1153025/'}, -- P641 values that show "tennis block" results.
["WL_national_team"] = {'Q6979593/Q1194951/Q23905105'}, -- P31 or P279 from P54 player value that point to a national team to breakdown in infobox person/pointsgoals.
["WL_pen_name"] = {'Q36180/Q18844224/Q15980158/Q10297252/Q1930187/Q6051619/Q6625963/Q11774202/Q49757/'}, -- P106 values that show P742 with label "pen name" instead of "pseudonym".
["WL_extravehicular activity_in_P793"] = {'Q182020/'}, -- Whitelist values for eva in P793
["BL_illnes_in_P1196"] = {'Q3739104/Q12136/Q1364787/Q18123741/'}, -- Blacklist values for natural causes, illness..., to skip in "cause of death"
["no_image_categ"] = {'Articles de persones que necessiten una imatge'}, -- category for articles without image. The absence of this value means "do not categorize"
["childs_with_progenitors"] = {'y'}, -- show the other progenitor in list of child when +1 couple for subject. The absence of this value means "show plain list"
["childs_with_progenitors_icon"] = {'OOjs_UI-like_kinship-progressive-black.svg'}, -- icon for child-progenitor link.
["extern_entitree"] = {'y'}, -- show Entitree external link. The absence of this value means "do not show"
["P54_team_flag"] = {''}, -- show played team flag in sport trajectory. The absence of this value means "do not show"
["P54_nationalteam_flag"] = {'y'}, -- show national team flag in sport trajectory. The absence of this value means "do not show"
["P54_coachedteam_flag"] = {''}, -- show coached team flag in sport trajectory. The absence of this value means "do not show"
["icon_person"] = {'Simpleicons Interface user-outline.svg'}, -- title default icon used in /formatglobal
["img_sport_match"] = {'Feather-media-controls-shuffle.svg|15px|class=skin-invert'}, -- matchs played icon in header of /pointsgoals (include size and class for dark-mode)
["img_goalspoint"] = {'Feather-core-target.svg|15px|class=skin-invert'}, -- point-goals icon used in header of /pointsgoals (include size and class for dark-mode)
["img_matcheswon"] = {'Feather-core-thumbs-up.svg|15px|class=skin-invert'}, -- career matches won icon used in header of /tennis (include size and class for dark-mode)
["img_matcheslost"] = {'Feather-core-thumbs-down.svg|15px|class=skin-invert'}, -- career matches lost icon used in header of /tennis (include size and class for dark-mode)
["img_champshipwon"] = {'Simple gold cup.svg|20px|class=skin-invert'}, -- career championship won icon used in header of /tennis (include size and class for dark-mode)
["alive_categ"] = {'Catagóir:Daoine beo'} -- category for alive people articles. NO value means Not categorize"
},
-- Values used in template:Infotaula d'organització
["IBorganisation"] = {
["WL_human_group"] = {'Q16334295/Q14073567/Q16979650/Q13417114/'},
["WL_human_group_type"] = {'Q14073567/Q16979650/Q13417114/'}, -- P31 values to show them as "group_type".
-- It's USED by Infobox person, too.
["WL_edifici"] = {'Q41176/Q55488/Q483110/Q7540126/Q16560/Q644371/Q1021645/Q1244442'} -- Used in embedded infobox building procedure - might be WL_is_building
},
-- Values used in template:Infotaula competició esportiva
["IBsport_competition"] = {
["blacklist_P2670"] = {'Q7856'}, -- blacklist for P2670. It's, not usefull for this infobox
-- Medal images or similar to replace order (1st., 2nd., 3th. ) with an image
-- last parameter of file statement, MUST BE TRANSLATED to WP language
["Q406039img"] = {'[[file:Noto Emoji Oreo 1f947.svg|20px|Medalla Or]]'}, -- Keys are medal Qid + "img" suffix.
["Q847956img"] = {'[[file:Noto Emoji Oreo 1f948.svg|20px|Medalla Argent]]'}, -- Using just the Qid may cause collisions
["Q873364img"] = {'[[file:Noto Emoji Oreo 1f949.svg|20px|Medalla Bronze]]'}, -- with other values within this list..
-- ---- Olympic medal icon
["Q15243387img"] = {'[[file:Gold medal olympic.svg|20px|Medalla olímpica d'Or]]'}, -- Keys are medal Qid + "img" suffix.
["Q15889641img"] = {'[[file:Silver medal olympic.svg|20px|Medalla olímpica d'Argent]]'}, -- Using just the Qid may cause collisions
["Q15889643img"] = {'[[file:Bronze medal olympic.svg|20px|Medalla olímpica de Bronze]]'}, -- with other values within this list..
-- ---------------
["show_records"] = {'Q688615', 'Q1432032'}, -- whitelist of records (P1000) to show in results
["Q1432032img"] = {'[[file:Icona rècord olímpic.svg|18px|Rècord olímpic]]'}, -- Same as medals, but for records.
["Q688615img"] = {'[[file:Icona rècord mundial.svg|18px|Rècord mundial]]'}, -- New kind of records may be added.
["title_above"] = {'title'}, -- What is the top line for article name
["no_image_categ"] = {'Articles de competicions esportives que necessiten una imatge'}, -- category for articles without image. The absence of this value means "do not categorize"
["icon_current_season"] = {'IEC 60417 - Ref-No 5880.svg'}, -- icon special row with current season link
["icon_default"] = {'Steren-Laurel.svg'} -- default icon infobox title when no sport icon exists.
},
-- Values used in template:Infotaula esdeveniment (infobox event)
["IBevent"] = {
["no_image_categ"] = {'Leathanaigh imeacht ina bhfuil íomhá de dhíth orthu'}, -- category for articles without image. The absence of this value means "do not categorize"
["img_event"] = {'Simpleicons Business calendar-with-a-clock-time-tools.svg'}, -- title default icon used in /formatglobal
["default_color_map_1"] = {'#339933'}, -- default color for participant 1 in bi-lateral relationship
["default_color_map_2"] = {'#E08020'}, -- default color for participant 2 in bi-lateral relationship
["bilateral_relation"] = {'Q15221623'}, -- Qid for bilateral_relation
["WM_list"] = {'Q13406463'}, -- Qid for Wikimedia list
["title_above"] = {'title'}, -- What is the top line for article name
["str_end_date_format"] = {'dmy'}, -- kind of range date for {{FormatData_inici_fi}}. Use NONE to show full format in both
["hurricane_et_al"] = {'Q18650988', 'Q63106470', 'Q63106482', 'Q63170811', 'Q3157041', 'Q63106520',
'Q63170831', 'Q63171248', 'Q63100559', 'Q63108234', 'Q16172167', 'Q63183653', 'Q63100584', 'Q63100595',
'Q63183392', 'Q63182478', 'Q63183687', 'Q63100601', 'Q63100611', 'Q15941028', 'Q63183538', 'Q63182937',
'Q63183721', 'Q11069306', 'Q63106574', 'Q11069306', 'Q63183636', 'Q140588'} -- blacklist in ', 'infobox event
},
-- Values used in template:Infotaula edifici - this might be changed to IBbuilding - check it
["IBconstruction"] = {
["no_image_categ"] = {'Leathanaigh foirgnimh ina bhfuil íomhá de dhíth orthu'}, -- category for articles without image. The absence of this value means "do not categorize"
["is_reservoir"] = {'Q131681'}, -- Used in black/whitelist to handle dam vs reservoir info
["is_reservoir-or-water_surface"] = {'Q131681/Q1929501'}, -- Used as a blacklist in dam dimensions
["is_lap_record"] = {'Q55692878'}, -- Used in motorsport racing track best time
["is_water_turbine"] = {'Q644997'}, -- Used in power production dam
["is_wind_turbine"] = {'Q49833'}, -- Used in power production by wind
["is_telescope"] = {'Q4213'}, -- to select values from generic P2670 units
["is_telescope_mount"] = {'Q1205231'}, -- to select values from generic P2670 units
["is_telescope_lens"] = {'Q613628/Q1395645/Q29531156/Q40782571'}, -- Used in lens & mirror telescope dimensions
["is_primari_mirror"] = {'Q613628'}, -- Used in mirror telescope dimensions
["img_construction"] = {'Organization icon.svg'}, -- title default icon used in /formatglobal
["img_station"] = {'Aiga_railtransportation_25.svg'} -- title default icon used in /formatstation
},
-- Values used in template:Infotaula composició (musical)
["IBmusic"] = {
["is_anthem"] = {'Q541947', 'Q1802243', 'Q23691', 'Q484692', 'Q48727903', 'Q1137588'}, -- whitelist in infotaula obra musical
["img_album"] = {'Linecons_vynil.svg'}, -- title default icon used in infotaula composició
["img_anthem"] = {'Anthem icon from game-icons.net.png'}, -- title default icon used in infotaula composició
["img_composition"] = {'Musical note nicu bucule 01.svg'} -- title default icon used in infotaula composició
},
-- Values used in template:Infotaula geografia política
["IBgeopoli"] = {
["no_image_categ"] = {'Articles de geografia política sense foto'}, -- category for articles without image. The absence of this value means "do not categorize"
["img_geopoli"] = {'Globe icon.svg'}, -- title default icon used in /formatglobal
["no_coord_categ"] = {'Articles mancats de coordenades'}, -- category for articles without coord. The absence of this value means "do not categorize"
["unable_coord_categ"] = {'Articles amb coordenades no localitzables'}, -- category for articles with impossible to found coord. The absence of this value means "categorize as no_coord_categ"
["area_unit"] = {'Q712226'}, -- Qid of unit of area to calculate density results (Q712226 = km2)
["popul_density_unit"] = {'Q111010600'}, -- Qid of density results (Q111010600 = pers/km2)
["elevation_over_sea_unit"] = {'Q11573'}, -- Qid of density results (Q11573 = meter)
["top_level_for_P131"] = {'Q7275', 'Q3624078'}, -- Qid of top level of P131 Getparentvalues for upper_admin_structure. (state, sovereign state,..).
["disappeared_entity"] = {'Q3024240', 'Q19953632'}, -- Qid of disapeared states, city, etc. for use in P6 & P35
["blacklist_motto"] = {'Q96036107'} -- Qid of P3831 qualif of P1451 or P1546 to avoid non-official motto
},
["IBgeophysical"] = {
["no_image_categ"] = {'Articles de geografia que necessiten una imatge'}, -- category for articles without image. The absence of this value means "do not categorize"
["img_geophysical"] = {'Simpleicons Places placeholder-tool.svg|20px|class=skin-invert'}, -- title default icon used in /formatglobal (include size and class for dark-mode)
["img_walkway"] = {'Tapis roulant sign inv v2.svg|20px|class=skin-invert'}, -- moving_walkway icon used in /formatglobal (include size and class for dark-mode)
["img_aerial_tramway"] = {'Pictograms-nps-services-tramway.svg|20px|class=skin-invert'}, -- aerial_walkway icon used in /formatglobal (include size and class for dark-mode)
["img_gondola_lift"] = {'Icona_gondola_skilift.svg|20px|class=skin-invert'}, -- gondola_lift icon used in /formatglobal (include size and class for dark-mode)
["img_chairlift"] = {'Italian_traffic_signs_-_icona_seggiovia.svg|20px|class=skin-invert'}, -- chairlift icon used in /formatglobal (include size and class for dark-mode)
["img_surface_lift"] = {'Italian_traffic_signs_-_icona_skilift.svg|20px|class=skin-invert'}, -- surface_lift icon used in /formatglobal (include size and class for dark-mode)
["img_snow_cannon"] = {'Snow_cannon_icona.svg|20px|class=skin-invert'}, -- snow_cannon icon used in /formatglobal (include size and class for dark-mode)
["img_rope_tow"] = {'Ski_rope_tow_icon.svg|20px|class=skin-invert'}, -- rope_tow icon used in /formatglobal (include size and class for dark-mode)
["img_funicular"] = {'Icon Funicular.svg|20px|class=skin-invert'}, -- funicular icon used in /formatglobal (include size and class for dark-mode)
["is_start_spot_height"] = {'Q7376362/Q529711/Q124714'}, -- determine when P2044 is refered to a starting point of river, track,..
["is_end_spot_height"] = {'Q1233637/Q723748/Q12769393'}, -- determine when P2044 is refered to a ending point of river, track,..
["is_archaeological_site"] = {'Q1291195/Q839954/Q9096832/Q93342462/Q21752084/Q1708422/Q100268926/Q20102367/Q56320584'}, -- determine when P31 is archaeological/antropological site to assign place for information in IB,..
-- List of Qid values used to select (WL) / unselect (BL) in P2670 invoke for different
["is_round"] = {'Q18131152'}, -- determine P2670 values for round/etapa
["is_canal_lock"] = {'Q105731'}, -- determine P2670 values for dam lock/canal lock/resclosa/esclusa
["is_cascade"] = {'Q46867411/Q34038'}, -- determine P2670 values for a cascade/fall
["ski_lift_number"] = {'Q891302'}, -- determine P2670 values for a quantity of ski lift on ski station
["ski_trail_colors"] = {'Q2057442/Q13440111/Q2551526/Q1923663'}, -- determine P2670 values for kind of color type
["is_crosscountry_skiing_trail"] = {'Q1754598'}, -- determine P2670 values for crosscountry_skiing trail
["is_alpine_skiing_trail"] = {'Q56827195'}, -- determine P2670 values for alpine skiing trail
["is_ski_lift_type"] = {'Q6730907/Q13409250/Q498002/Q1576693/Q850767/Q17136481/Q720493/Q1975677/Q142031'} -- determine P2670 values for devices that carries skiers up a hill
},
-- Values used in template:infobox elections and its subtemplates
["IBelection"] = {
["title_above"] = {'above'}, -- What is the top line for article name
["top_end"] = {'top'}, -- Where is the succession line?. top=after title; end=at bottom
["logo_election"] = {'yes'}, -- any value allows to show P154-logo of election on title instead default icon used in /formatglobal
["img_election"] = {'Q189760 noun 84860 ccReJeanSoo vote.svg'}, -- title default icon used in /formatglobal
["is_group_elections"] = {'Q76853179'}, -- Qid for P31=group elections. whitelist in /prepare + /type_election
["is_referendum"]= {'Q43109', 'Q1214249'}, -- Qid for P31=referendum. whitelist in /prepare + /type_election
["is_round_elections"] = {'Q24097670'}, -- Qid for P31=round_elections. whitelist in /prepare + /type_election
["is_ballot"] = {'Q905151'}, -- Qid for P18 +qualif.P180 (allowed images) = default: ballot image. in /core
["is_electoral_result"] = {'Q19571328'}, -- Qid for P1846 +qualif.P180 (allowed map/draw for electoral result image). in /core
["is_election_campaign"] = {'Q11642595'}, -- Qid for qualif. for P2047=election campaign. whitelist in /moment
["is_investit_appointm"] = {'Q1318578', 'Q167407'}, -- Qid for qualif.P1536=investiture or appointment in /core
["yes_in_referendum"] = {'Q41216873', 'Q231043', 'Q24759380'}, -- whitelist in /core
["no_in_referendum"] = {'Q41216897', 'Q19358049', 'Q24759450'}, -- whitelist in /core
["basicbarcolor"] = {'#C0C0C0'}, -- bar of candidate votes in /showblocks
["roundcolor_1"] = {'#6fc0f2'}, -- bar of participation in /showblocks + election/
["roundcolor_2"] = {'#ff7f0e'}, -- bar of participation in round 2 in /showblocks + election/
["id_position1"] = {'A'}, -- letter or sign for 1st round in infobox election/
["id_position2"] = {'B'}, -- letter or sign for 2n round in infobox election/
["yes_color"] = {'#68ff79'}, -- bar of "yes" option for referendum in /prepare
["not_color"] = {'#FF7D6F'}, -- bar of "no" option for referendum in /prepare
["text_party_equivalent"] = {'Comparació amb: '}, -- text as label for the equivalent party for comparision
["img_electorate"] = {'Community Noun project 2280.svg'}, -- icon in /showblocks
["img_voter"] = {'Q189760 noun 84860 ccReJeanSoo vote.svg'}, -- icon in /showblocks
["img_valid"] = {'Ballot Box Silhouette OK-green.svg'}, -- icon in /showblocks
["img_blank"] = {'Ballot_box-Blank.svg'}, -- icon in /showblocks
["img_void"] = {'Ballot Box Silhouette null-red.svg'}, -- icon in /showblocks
["no_img_candidate"] = {'Linearicons user.svg'}, -- icon in /showblocks
-- ["img_winner"] = {'Gnome-bookmark-new2.svg'} -- icon in /showblocks (previous used icon)
["img_winner"] = {'Breezeicons-actions-22-games-achievements.svg'} -- icon in /showblocks
}
-- end of tables, do not edit below
}
return data