Module:Sandbox/Dipsacus fullonum/elections/configuration
Jump to navigation
Jump to search
Documentation for this module may be created at Module:Sandbox/Dipsacus fullonum/elections/configuration/doc
Code
-- Local conficuration including translation of messages for the Elections module
return {
messages = {
-- These are table headers:
['Year'] = 'Year',
['Electorate'] = 'Electo­rate',
['Valid votes'] = 'Valid votes',
['Parties'] = 'Parties',
['Participation'] = 'Partici­pation',
['Total seats'] = 'Total',
--[[ Text for Wikidata logo in table header with link to Wikidata. ]]
['Wikidata logo'] = 'Data retrieved from Wikidata',
--[[ Text for pencil image in table cell with link to actual Wikidata item. ]]
['Wikidata pencil'] = 'See or edit this Wikidata item',
},
-- Configuration variables:
--[[ Set this to true to ignore P991 statements (successful candidate)
with a P1114 qualifier (quantity) of 0 ]]
ignore_zero_elected = true,
--[[ How to present political parties. ]]
party_text = {
{ method = 'P1813', lang = 'ca', tooltip='label' },
{ method = 'label', lang = 'ca' },
{ method = 'qid' },
},
--[[ What should party texts be linked to?
Use globalSiteId for an interwikilink or nil for a local link]]
party_link = 'cawiki',
--[[ Height in pixels of party color bar. Use 0 for no color bar. ]]
party_color_bar = 10,
--[[ What should election year be linked to?
Use globalSiteId for an interwikilink or nil for a local link]]
year_link = 'cawiki',
--[[ Language code for language dependent formating.
Used for number grouping and decimal separators. ]]
language_code = 'ca',
--[[ Number of decimals in percentages. ]]
percentage_decimals = 1,
--[[ Format of pertentage strings. $1 is replaced by the actual number. ]]
percentage_format = '$1 %',
--[[ How to sort to patry columns. This is a table with the sort keys
in priotized order. ]]
party_column_order = { 'most_elected', 'most_elections', 'name' },
}