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 = 'EUPPEuropean seatsand national party data', -- name of the template that #invokes this module
err_category = 'ArticlesArticoli withcon EUPPEuropean seatsand errorsnational party data errori', -- name of category that lists article with EUPP seats errors
help = 'helpaiuto' -- help link display text for error messages
}
 
Riga 19:
 
local error_messages_t = {
thisparty = 'notnon calledchiamato fromdalla thepagina pagedi ofun apartito European partyeuropeo', -- misapplied 'thisparty' keyword
inst_unknown_party = 'institutionistituzione $1 hasha unknownun partypartito sconosciuto: $2', -- $1 is institution; $2 is party
missing_inst = 'institutionistituzione is requirednecessaria', -- first positional parameter is always required
party_req = 'partypartito is requirednecessario', -- for those cases when party is missing when required
party_req_share = 'partypartito is required for sharenecessario', -- for those cases when party is missing when required because share is called
ind_only_euco = 'theil INDparametro parameterIND isè onlydisponibile availablesolo forper EUCO',
all_none_unavailable = 'theil parameterparametro $1 isnon notè availabledisponibile forper nationalle legislatureslegislature nazionali',
unknown_inst = 'unknownistituzione institutionsconosciuta: $1', -- $1 is content of first positional parameter (should be institution abbrev)
unknown_party = 'unknownpartito partysconosciuto: $1', -- $1 is content of second positional parameter (should be party abbrev)
unknown_house_type = 'unknowntipo housede typecamera sconosciuto: $1', -- $1 is content of second positional parameter (should be accepted house types)
unknown_param = 'unknownparametro parametersconosciuto: $1', -- $1 is content of third positional parameter; not '%' or 'share'
parameter_invalid = 'parameterparametro invalidinvalido: $1',
percentage_invalid = 'percentagepercentuale invalidinvalido: $1', -- $1 is content of fourth positional parameter; not 'yes' or 'pc=yes'
reference_invalid = 'referencereferenza invalidinvalida: $1', -- $1 is content of fifth positional parameter; not 'yes' or 'ref=yes'
no_qid = 'thela pagepagina doesnon notha haveun aqID Wikidatadi qIDWikidata', -- if no qID
not_a_member_party = 'notnon calledchiamato fromdalla thepagina pagedi ofun apartito membermembro partydi ofun apartito Europeanpolitico political partyeuropeo, see https://www.wikidata.org/wiki/$1', --if qid but not listed in table
no_data = 'nonessun datadato availabledisponibile onsu Wikidata forper $2; see https://www.wikidata.org/wiki/$1', --if 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
no_countrynot_member_state = 'noil countryqID isnon associatedappartiene witha thisuno qIDstato membro o non ci sono dati disponibili su Wikidata, see https://www.wikidata.org/wiki/$1', --if not member state qID or no data
not_member_stateno_country = 'thenessun qIDpaese doesè not belong toassociato a memberquesto state or there is no data available on WikidataqID, see https://www.wikidata.org/wiki/$1', --if not member state qID or no data
unknown_data_type = 'unknowntipo datadi typedati sconosciuto: $1',
not_valid_eupp_parameter = 'Europeanpartito partyeuropeo oro parameterparametro notnon validvalido: $1',
not_valid_npp = 'National party not valid: $1',
unknown_party_typenot_valid_npp = 'unknownpartito partynazionale typenon valido: $1',
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;