Modulo:European and national party data/config: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
Update following module deployment |
Nessun oggetto della modifica |
||
Riga 6:
local settings_t = {
template_name = '
err_category = '
help = '
}
Riga 19:
local error_messages_t = {
thisparty = '
inst_unknown_party = '
missing_inst = '
party_req = '
party_req_share = '
ind_only_euco = '
all_none_unavailable = '
unknown_inst = '
unknown_party = '
unknown_house_type = '
unknown_param = '
parameter_invalid = '
percentage_invalid = '
reference_invalid = '
no_qid = '
not_a_member_party = '
no_data = '
no_data_short = 'nessun dato disponibile su Wikidata', --if no data
not_member_state = 'the qID does not belong to a member state or there is no data available on Wikidata, see https://www.wikidata.org/wiki/$1', --if not member state qID or no data▼
▲
unknown_data_type = '
not_valid_eupp_parameter = '
unknown_party_type = 'tipo di partito sconosciuto: $1'
}
Riga 76 ⟶ 77:
VOLT = 'Q55229798', -- Volt Europa
DIEM25 = 'Q22674451', -- Democracy in Movement 2025
PPEU = 'Q15081858', -- European Pirate Party
APEU = 'Q22079847', -- Animal Politics EU
ECA = 'Q123785828', -- European Communist Action
}
Riga 126 ⟶ 127:
UPPER_HOUSE = true,
}
--[[--------------------------< T R A N S L A T I O N >--------------------------------------------------
translate these (except this_project_language).
]]
local this_project_language = mw.language.getContentLanguage():getCode(); -- get local language
local xlate_t = {
it = { -- translations for Portuguese (pt)
-- party type
entita_europea = 'european_entity',
partito_nazionale = 'national_party',
-- data type
seggi = 'seats',
quota_di_seggi = 'seat share',
barra_di_composizione_di_seggi = 'seat composition bar',
acronimo = 'acronym',
colore = 'color',
paese = 'country',
data_fondazione = 'foundation date',
membri_individuali = 'individual members',
data_membri_individuali = 'individual members date',
etichetta = 'label',
nome_ufficiale = 'official name',
gruppo_parlamentare = 'parliamentary group',
finanziamento_pubblico = 'public funding',
sito_web = 'website',
-- yes
si = 'yes',
-- special parameters
IND = 'IND',
TUTTI = 'ALL',
NESSUNO = 'NONE',
QUESTOPARTITO = 'THISPARTY',
-- institutions
CDR = 'COR',
CE = 'EC',
PE = 'EP', -- European Parliament; translated from pt language to default (en)
EUCO = 'EUCO',
CAMARA_BASSA = 'LOWER_HOUSE',
CAMERA_ALTA = 'UPPER_HOUSE',
-- extra parameters
referenza = 'reference',
circoscrizione = 'constituency',
larghezza = 'width',
per_cento = 'percent',
barra_colore = 'bar-color',
colore_di_sfondo = 'background-color',
bordo = 'border',
verboso = 'verbose',
},
}
local xlate_param_t = {
it = { -- translations for Portuguese (pt)
-- extra parameters
reference = 'referenza',
constituency = 'circoscrizione',
width = 'larghezza',
percent = 'per_cento',
["bar-color"] = 'barra colore',
["background-color"] = 'colore di sfondo',
border = 'bordo',
verbose = 'verboso',
},
}
--[[--------------------------< B U I L D _ T A B _ D A T A >--------------------------------------------------
Riga 234 ⟶ 310:
rev_parties_t = invert_qid_map (parties_t),
rev_alliances_t = invert_qid_map (alliances_t),
this_project_language = this_project_language,
xlate_t = xlate_t,
xlate_param_t = xlate_param_t,
tab_data_t = tab_data_t;
|