Module:Itemgroup/list
Jump to navigation
Jump to search
Documentation for this module may be created at Module:Itemgroup/list/doc
Code
-- Version from cawiki. 2021-10-18
--[[
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 this point
-- 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