Mòdul:Preinfobox person/prova/i18n/gl
Aparença
Podeu crear la pàgina d'ús per documentar aquest mòdul Lua. |
local p = {}
--Warning: If an "Args" item has more one value: These values must be written between "{" and "}". More than two values are allowed.
local MLMT = require "Module:Multilang module tools/prova"
local GIBTi = require "Module:Global infobox tools/prova/items"
local GIBT = require "Module:Global infobox tools/prova"
local PiPi = require "Module:Preinfobox person/prova/items"
p.rs_val = { --reserved keys and their values for infobox configuration
-- When here a value is nil or "", the used value is the value read from Global infobox tools/i18n.rs_val
-- To see the values that these variables take, use |allitems=list
--colors
[GIBTi.rk.rs_colorbox] = "", --color for title and headers
[GIBTi.rk.rs_color_tit_cllps] = "", --color for header of the collapsible text data
--styles
[GIBTi.rk.rs_bodystyle] = "",
[GIBTi.rk.rs_titlestyle] = "", -- by default is rs_colorbox as background and centered text
[GIBTi.rk.rs_headerstyle] = "", -- by default is rs_colorbox as background
[GIBTi.rk.rs_subheaderstyle] = "", -- by default is rs_color_tit_cllps as background and centered text
[GIBTi.rk.rs_imagestyle] = "", -- by default is padding-bottom:0.1em;line-height:1.35;font-size:98%
[GIBTi.rk.rs_captionstyle] = "", -- by default is padding-top:0.3em;padding-bottom:0.1em;line-height:1.35;font-size:98%
[GIBTi.rk.rs_labelstyle] = "", -- by default is text-align:start; padding-right:1.2em; background:#eeeeee (approx. silver)
[GIBTi.rk.rs_datastyle] = "", -- by default is text-align:start
[GIBTi.rk.rs_belowstyle] = "", --
--icon
[GIBTi.rk.rs_icon] = "", -- filename of the icon that appears beside of the title
[GIBTi.rk.rs_icon_at_begin] = nil, -- the position in relation to the title
[GIBTi.rk.rs_icon_hint] = "", -- by default is the template name, displayed when hovering over the icon with the mouse cursor
--image
[GIBTi.rk.rs_image_max_num] = 1, -- max number of images (1-2)
[GIBTi.rk.rs_def_image_size] = "", -- by default is 300x300px
[GIBTi.rk.rs_send_img_preinfobox] = false, -- only used by preinfoboxes, if true read from WD the values and more (read info)
--referred to label/data content
[GIBTi.rk.rs_changeable_lbls] = true, -- if true, allows users to change the label text, using the next prefix:
[GIBTi.rk.rs_param_prefix_lbl] = "", -- by default is l_
[GIBTi.rk.rs_def_charnum_cllps] = nil, --number of characters from which the text will appear collapsed (for some label-data items)
[GIBTi.rk.rs_below] = "", --fixed text (i.e. information) for for all the same infoboxes
}
p.rss_val = { --reserved keys and their values for this specific infobox
[PiPi.krs.rs_icon_at_position] = true,
}
p.items = { --This is (perhaps) the only table you need to modify to localize the content
-- When here a value is nil or "", the used value is the value read from Global infobox tools/i18n.rs_val
-- To see the current values for above variables use |allitems=list
[MLMT.k.Args] = { -- alternative (localized) names for parameters
--Warning: If an item has more one value: These values must be written between "{" and "}". More than two values are allowed.
-- 1. TOP HEADER SECTION -->
[GIBTi.rk.name] = "nome",
[PiPi.k.honorific_prefix] = "tratamento",
[PiPi.k.honorific_suffix] = "",
-- 2. SPECIAL NAMES SECTION -->
[PiPi.k.native_label] = "nome_completo",
[PiPi.k.temple_name] = "",
[PiPi.k.posthumous_name] = "",
[PiPi.k.other_name] = "alcume",
-- 3. BIOGRAPHY SECTION -->
[PiPi.k.group_humans] = "", --??
[PiPi.k.date_birth] = {"data_de_nacemento", "dataNacemento", "datanac", "data de nacemento", "nacemento","naceu"}, --bio, tenis, polit, eclesiast
[PiPi.k.place_birth] = {"lugar_de_nacemento", "lugarNacemento", "lugarnac", "lugar de nacemento", "lugar nacemento", "lugar_nacemento", "orixe"}, --bio, tenis, polit, eclesiast
[PiPi.k.birth_name] = {"nome_nacemento", "nome secular"},
[PiPi.k.list_birth] = "list_nacemento",
[PiPi.k.baptism] = "bateig",
[PiPi.k.disappearance] = "data_desaparicio", --!!
[PiPi.k.date_death] = {"data_de_falecemento", "datamorte", "data de pasamento", "morte"}, --bio, polit, eclesiast, astr
[PiPi.k.place_death] = {"lugar_de_falecemento", "lugarmorte", "lugar morte", "lugar_morte", "lugar de pasamento"}, --bio, polit, eclesiast
[PiPi.k.manner_death] = "",
[PiPi.k.cause_death] = "causa",
[PiPi.k.place_burial] = {"soterrada","soterrado"},
[PiPi.k.coordinates_burial] = "",
-- 4. POSITION SECTION -->
[PiPi.k.position_held] = "cargos",
-- 4.1 PHARAON BLOCK -->
[PiPi.k.prenomen] = "",
[PiPi.k.prenomen_hiero] = "",
[PiPi.k.prenomen2] = "",
[PiPi.k.prenomen_hiero2] = "",
[PiPi.k.nomen] = "",
[PiPi.k.nomen_hiero] = "",
[PiPi.k.nomen2] = "",
[PiPi.k.nomen_hiero2] = "",
[PiPi.k.horus] = "",
[PiPi.k.horus_hiero] = "",
[PiPi.k.horus_prefix] = "",
[PiPi.k.horus2] = "",
[PiPi.k.horus_hiero2] = "",
[PiPi.k.nebty] = "",
[PiPi.k.nebty_hiero] = "",
[PiPi.k.golden] = "",
[PiPi.k.golden_hiero] = "",
-- 5. PERSONAL DATA SECTION -->
[PiPi.k.pseudonym] = "alias",
[PiPi.k.residence] = "residencia",
[PiPi.k.nationality] = "nacionalidade",
[PiPi.k.citizenship] = "ciutadania",
[PiPi.k.ethnic_group] = "etnia",
[PiPi.k.political_ideology] = "ideologia",
[PiPi.k.religion] = {"relixión", "igrexa"},
[PiPi.k.education] = {"estudos", "educación"}, -- Biografía, Artista
[PiPi.k.educated_at] = {"alma_máter", "alma_mater", "almamáter"}, -- Biografía, politico
[PiPi.k.know_by] = {"coñecido"},
-- 5.1. BIOMETRIC DATA -->
[PiPi.k.height] = "altura",
[PiPi.k.height_unit] = "",
[PiPi.k.weight] = "peso",
[PiPi.k.weight_unit] = "",
[PiPi.k.handedness] = "brazoHábil",
[PiPi.k.eye_color] = "color_ulls",
[PiPi.k.hair_color] = "color_cabells",
-- 6. ACTIVITY SECTION --> Pendent: posgrao, pais (polit),
[PiPi.k.doctoral_thesis] = "tese",
[PiPi.k.thesis_url] = "tesi_url",
[PiPi.k.thesis_year] = "tesi_any",
[PiPi.k.doctoral_advisor] = "director_tese",
[PiPi.k.field_work] = "campo", --camp_treball
[PiPi.k.occupation] = {"ocupación", "profesión"}, --ocupacio
[PiPi.k.time_period] = "epoca",
[PiPi.k.work_period] = {"período", "profesionalDesde", "tempo en activo"},
[PiPi.k.work_period_start] = "inici_periode_actiu", -- ?
[PiPi.k.work_period_end] = "fi_periode_actiu", -- ?
[PiPi.k.floruit] = "",
[PiPi.k.employer] = {"organización","institucións"}, --organitzacio...
[PiPi.k.political_party] = "partido",
[PiPi.k.member_of] = "afiliacións",
[PiPi.k.cllps_member_of] = "",
-- 6.1. STYLE & INFLUENCES BLOCK -->
[PiPi.k.interested_in] = "interessos",
[PiPi.k.idea] = "idees",
[PiPi.k.art] = "art",
[PiPi.k.genre] = "xéneros",
[PiPi.k.movement] = "movemento",
[PiPi.k.style] = "estilo",
[PiPi.k.student_of] = "estudis_de",
[PiPi.k.student] = "",
[PiPi.k.cllps_influenced_by] = "",
[PiPi.k.influenced_by] = {"influencias", "influenciado_por", "influido", "influído"}, --escrip, art,
[PiPi.k.influences_on] = {"influíu", "influencia_a"}, --escrip, art,
-- 6.2. WRITER & JOURNALIST BLOCK -->
[PiPi.k.languages] = {"languages", "lingua_da_escrita"},
[PiPi.k.represented_by] = "",
[PiPi.k.editor] = "editor",
[PiPi.k.base_salary] = "salari",
[PiPi.k.net_worth] = {"fortuna","valoraciónCarreira"},
[PiPi.k.other_positions] = "altres_ocupacions",
-- 6.3. MUSICIEN BLOCK -->
[PiPi.k.voice_type] = {"veu", "tipo de voz"},
[PiPi.k.instrument] = "instrumento",
[PiPi.k.featured_instruments] = "instruments_destacats",
[PiPi.k.record_label] = {"discografica", "selo"},
[PiPi.k.catalog] = "cataleg",
[PiPi.k.orchestra] = "orquestres",
[PiPi.k.related_artists] = "relacionado con",
[PiPi.k.musical_conductor] = "director_musical",
[PiPi.k.deputy_music_director] = "sotsdirector_musical",
-- 6.4. MILITARY AND ASTRONAUT BLOCK -->
[PiPi.k.allegiance] = "lleialtat",
[PiPi.k.military_period] = "periode_actiu_militar",
[PiPi.k.military_branch] = "arma",
[PiPi.k.military_rank] = "rango",
[PiPi.k.military_unit] = "unitat",
[PiPi.k.commander_of] = "comandaments",
[PiPi.k.conflict] = "batalles", --??
[PiPi.k.victory] = "victories",
[PiPi.k.time_in_space] = "tempo_espazo",
[PiPi.k.astronaut_mission] = "misións",
[PiPi.k.mission_logo] = "insignias",
-- 6.5. RELIGIOUS BLOCK -->
[PiPi.k.religious_order] = "orde relixiosa",
[PiPi.k.date_ordination] = "ordenación",
[PiPi.k.consecration] = "consagración",
[PiPi.k.created_cardinal] = "",
[PiPi.k.canonization_status] = "",
[PiPi.k.veneration] = "",
[PiPi.k.date_beatification] = "data_beatificacio",
[PiPi.k.place_beatification] = "lloc_beatificacio",
[PiPi.k.beatification_by] = "beatificat_per",
[PiPi.k.date_canonization] = "data_canonitzacio",
[PiPi.k.place_canonization] = "lloc_canonitzacio",
[PiPi.k.canonization_by] = "canonitzat_per",
[PiPi.k.place_devotion] = "lloc_pelegrinatge",
[PiPi.k.feast_day] = "festivitat",
[PiPi.k.significant_event] = "",
[PiPi.k.iconography] = "",
[PiPi.k.domain_saint] = "",
-- 6.6. SPORTS BLOCK -->
[PiPi.k.country_sport] = "nacionalitat_esportiva",
[PiPi.k.sport] = "esport",
[PiPi.k.sports_discipline] = "disciplina",
[PiPi.k.competition_class] = "classe",
[PiPi.k.league] = "lliga",
[PiPi.k.position_team] = {"posicio_equip","posició"},
[PiPi.k.playing_hand] = "ma_joc",
[PiPi.k.current_club] = {"club_actual","clubactual"},
[PiPi.k.sport_number] = "",
[PiPi.k.date_debut] = "",
[PiPi.k.place_debut] = "",
[PiPi.k.date_service_retirement] = "",
[PiPi.k.place_service_retirement] = "data_retiro",
[PiPi.k.co_driver] = "",
[PiPi.k.coach] = "entrenador",
[PiPi.k.drafted_by] = "",
[PiPi.k.draft_pick_number] = "",
[PiPi.k.draft_year] = "",
[PiPi.k.kit_supplier] = "patrocinador_material",
[PiPi.k.sponsor] = {"patrocinador","patróns"},
-- 6.6.0 Initial block -->
[PiPi.k.block_sport_param] = "",
-- 6.6.1 Chess block -->
[PiPi.k.title_chess] = "",
[PiPi.k.elo_rating] = "",
-- 6.6.2 Tennis block -->
[PiPi.k.hof] = "",
[PiPi.k.atp] = "",
[PiPi.k.wta] = "",
-- 6.6.3 Sports race -->
[PiPi.k.sports_team] = "",
-- 6.6.4 Unclassified block -->
[PiPi.k.hd_participant_of] = "participa_en",
[PiPi.k.cllps_participant_of] = "",
-- 6.7. WORK BLOCK -->
[PiPi.k.hd_works] = "obres",
[PiPi.k.early_works] = "",
[PiPi.k.broadcasting_program] = "",
-- 6.7.1. ACTOR BLOCK -->
[PiPi.k.series] = "",
[PiPi.k.films] = "",
[PiPi.k.cast] = "papers",
-- 6.7.2. CREATOR & ARTIST BLOCK -->
[PiPi.k.hd_notable_work] = {"obras_destacadas","obras_máis_importantes"}, --biografía, artista, arqui
[PiPi.k.cllps_notable_work] = "",
-- 6.7.3. ARCHITECT BLOCK -->
[PiPi.k.project] = {"principals_projectes","principals_dissenys"},
-- 6.7.4. SCIENTIFIC BLOCK -->
[PiPi.k.doctoral_student] = {"alumnos_tese", "alumnos_doctorais"},
[PiPi.k.botanist_author_abbrev] = "autor_abrev_bot",
[PiPi.k.zoologist_author_abbrev] = "autor_abrev_zoo",
[PiPi.k.archives_at] = "arxius_en",
[PiPi.k.hd_repertoire] = "repertori",
[PiPi.k.hd_trajectory] = "trajectoria",
-- 7. FAMILY/OTHER SECTION -->
-- 7.1 FAMILY BLOCK -->
[PiPi.k.noble_title] = {"título", "titulo"},
[PiPi.k.family] = "",
[PiPi.k.spouse] = "cónxuxe",
[PiPi.k.partner] = "parella",
[PiPi.k.child] = "fillos",
[PiPi.k.progenitors] = "proxenitores",
[PiPi.k.father] = "pare",
[PiPi.k.mother] = "mare",
[PiPi.k.sibling] = "germans",
[PiPi.k.relatives] = "parents",
-- 7.2 OTHER BLOCK -->
[PiPi.k.charge] = "carrecs_judicials",
[PiPi.k.convicted_of] = "condemnes",
[PiPi.k.significant_event] = "",
-- 8. AWARD SECTION -->
[PiPi.k.hd_award_received] = "premios",
[PiPi.k.cllps_award_received] = "",
[PiPi.k.memorials] = "",
-- 9. NOTABLE WORK SECTION (ARTISTS AND ARCHITECTS) -->
[PiPi.k.image_work] = "",
[PiPi.k.foot_image_work] = "",
-- 10. BOTTOM SECTION -->
[PiPi.k.signature] = "sinatura",
[PiPi.k.coat_arms_image] = "escudo",
[PiPi.k.motto_text] = "lema",
[PiPi.k.voice_recording] = "registre_veu",
[PiPi.k.official_website] = {"páxina_web","web", "sitioweb"},
[PiPi.k.medal_table] = "dades_medaller",
[PiPi.k.notes] = "notas",
},
[MLMT.k.Labels] = { -- alternative (localized) name to header/label returned from Wikidata
-- When here a value is "", the used value is the value read from main.i18n
-- If possible, it is always best to modify the locazation in Wikidata
-- 1. TOP HEADER SECTION -->
-- 2. SPECIAL NAMES SECTION -->
[PiPi.k.native_label] = "",
[PiPi.k.temple_name] = "",
[PiPi.k.posthumous_name] = "",
[PiPi.k.other_name] = "",
-- 3. BIOGRAPHY SECTION -->
[PiPi.k.hd_biography] = "",
[PiPi.k.hd_component] = "",
[PiPi.k.group_humans] = "",
[PiPi.k.birth] = "",
[PiPi.k.baptism] = "",
[PiPi.k.floruit] = "",
[PiPi.k.disappearance] = "",
[PiPi.k.death] = "Falecemento",
[PiPi.k.cause_death] = "",
[PiPi.k.place_burial] = "Soterrado",
-- 4. POSITION SECTION -->
[PiPi.k.discontinuation_position]= "",
[PiPi.k.new_position] = "",
[PiPi.k.hd_personal_data] = "",
[PiPi.k.electoral_district] = "",
[PiPi.k.elected_in] = "",
[PiPi.k.appointed] = "",
[PiPi.k.together_with] = "",
[PiPi.k.diocese] = "",
[PiPi.k.cabinet] = "",
-- 4.1 PHARAON BLOCK -->
[PiPi.k.a_epypt_royal_tit] = "",
[PiPi.k.prenomen] = "",
[PiPi.k.nomen] = "",
[PiPi.k.horus] = "",
[PiPi.k.nebty] = "",
[PiPi.k.golden] = "",
-- 5. PERSONAL DATA SECTION -->
[PiPi.k.pseudonym] = "",
[PiPi.k.residence] = "",
[PiPi.k.nationality] = "",
[PiPi.k.citizenship] = "",
[PiPi.k.ethnic_group] = "",
[PiPi.k.political_ideology] = "",
[PiPi.k.religion] = "",
[PiPi.k.education] = "",
[PiPi.k.educated_at] = "",
[PiPi.k.know_by] = "",
-- 5.1. BIOMETRIC DATA -->
[PiPi.k.height] = "",
[PiPi.k.weight] = "",
[PiPi.k.handedness] = "",
[PiPi.k.eye_color] = "",
[PiPi.k.hair_color] = "",
-- 6. ACTIVITY SECTION -->
[PiPi.k.hd_activity] = "",
[PiPi.k.doctoral_thesis] = "",
[PiPi.k.doctoral_advisor] = "",
[PiPi.k.field_work] = "",
[PiPi.k.occupation] = "",
[PiPi.k.time_period] = "",
[PiPi.k.work_period] = "",
[PiPi.k.floruit] = "",
[PiPi.k.employer] = "",
[PiPi.k.political_party] = "",
-- 6.1. STYLE & INFLUENCES BLOCK -->
[PiPi.k.interested_in] = "",
[PiPi.k.idea] = "",
[PiPi.k.art] = "",
[PiPi.k.genre] = "",
[PiPi.k.movement] = "",
[PiPi.k.style] = "",
[PiPi.k.student_of] = "",
[PiPi.k.student] = "",
[PiPi.k.influenced_by] = "",
[PiPi.k.influences_on] = "",
-- 6.2. WRITER & JOURNALIST BLOCK -->
[PiPi.k.languages] = "",
[PiPi.k.represented_by] = "",
[PiPi.k.editor] = "",
[PiPi.k.base_salary] = "",
[PiPi.k.net_worth] = "",
[PiPi.k.other_positions] = "",
-- 6.3. MUSICIEN BLOCK -->
[PiPi.k.voice_type] = "",
[PiPi.k.instrument] = "",
[PiPi.k.featured_instruments] = "",
[PiPi.k.record_label] = "",
[PiPi.k.catalog] = "",
[PiPi.k.orchestra] = "",
[PiPi.k.related_artists] = "",
[PiPi.k.musical_conductor] = "",
[PiPi.k.deputy_music_director] = "",
[PiPi.k.art_patron] = "",
-- 6.4. MILITARY AND ASTRONAUT BLOCK -->
[PiPi.k.hd_military] = "",
[PiPi.k.allegiance] = "",
[PiPi.k.military_period] = "",
[PiPi.k.military_branch] = "",
[PiPi.k.military_rank] = "",
[PiPi.k.military_unit] = "",
[PiPi.k.commander_of] = "",
[PiPi.k.conflict] = "",
[PiPi.k.victory] = "",
[PiPi.k.time_in_space] = "",
[PiPi.k.astronaut_mission] = "",
[PiPi.k.mission_logo] = "",
-- 6.5. RELIGIOUS BLOCK -->
[PiPi.k.religious_order] = "",
[PiPi.k.date_ordination] = "",
[PiPi.k.consecration] = "",
[PiPi.k.created_cardinal] = "",
[PiPi.k.canonization_status] = "",
[PiPi.k.veneration] = "",
[PiPi.k.date_beatification] = "",
[PiPi.k.beatification_by] = "",
[PiPi.k.date_canonization] = "",
[PiPi.k.canonization_by] = "",
[PiPi.k.place_devotion] = "",
[PiPi.k.feast_day] = "",
[PiPi.k.significant_event] = "",
[PiPi.k.cause_destruction] = "",
[PiPi.k.has_cause] = "",
[PiPi.k.iconography] = "",
[PiPi.k.domain_saint] = "",
-- 6.6. SPORTS BLOCK -->
[PiPi.k.country_sport] = "",
[PiPi.k.sport] = "",
[PiPi.k.sports_discipline] = "",
[PiPi.k.competition_class] = "",
[PiPi.k.league] = "",
[PiPi.k.position_team] = "",
[PiPi.k.playing_hand] = "",
[PiPi.k.current_club] = "",
[PiPi.k.sport_number] = "",
[PiPi.k.date_debut] = "",
[PiPi.k.date_service_retirement] = "",
[PiPi.k.co_driver] = "",
[PiPi.k.coach] = "",
[PiPi.k.drafted_by] = "",
[PiPi.k.kit_supplier] = "",
[PiPi.k.sponsor] = "",
-- 6.6.1 Chess block -->
[PiPi.k.title_chess] = "",
[PiPi.k.maximum] = "",
[PiPi.k.elo_rating] = "",
[PiPi.k.fide_id] = "",
-- 6.6.2 Tennis block -->
[PiPi.k.modality] = "",
[PiPi.k.personal_record] = "",
[PiPi.k.tennis_match] = "",
[PiPi.k.doub_record] = "",
[PiPi.k.sing_record] = "",
[PiPi.k.mixed_doubles] = "",
[PiPi.k.hof] = "",
[PiPi.k.atp] = "",
[PiPi.k.wta] = "",
-- 6.6.3 Sports race -->
[PiPi.k.period] = "",
[PiPi.k.national_team] = "",
[PiPi.k.team] = "",
[PiPi.k.competition] = "",
[PiPi.k.vehicle] = "",
[PiPi.k.matches_played] = "",
[PiPi.k.goals_scored] = "",
-- 6.6.4 Unclassified block -->
[PiPi.k.hd_participant_of] = "",
-- 6.7. WORK BLOCK -->
[PiPi.k.hd_works] = "",
[PiPi.k.early_works] = "",
[PiPi.k.broadcasting_program] = "",
-- 6.7.1. ACTOR BLOCK -->
[PiPi.k.series] = "",
[PiPi.k.films] = "",
[PiPi.k.cast] = "",
-- 6.7.2. CREATOR & ARTIST BLOCK -->
[PiPi.k.hd_notable_work] = "",
-- 6.7.3. ARCHITECT BLOCK -->
[PiPi.k.project] = "",
-- 6.7.4. SCIENTIFIC BLOCK -->
[PiPi.k.doctoral_student] = "",
[PiPi.k.botanist_author_abbrev] = "Abrev. d'autor en botànica",
[PiPi.k.zoologist_author_abbrev] = "Abrev. d'autor en zoologia",
[PiPi.k.archives_at] = "",
[PiPi.k.hd_repertoire] = "",
[PiPi.k.hd_trajectory] = "",
-- 7. FAMILY/OTHER SECTION -->
-- 7.1 FAMILY BLOCK -->
[PiPi.k.hd_family] = "",
[PiPi.k.noble_title] = "",
[PiPi.k.family] = "",
[PiPi.k.spouse] = "",
[PiPi.k.partner] = "",
[PiPi.k.child] = "",
[PiPi.k.progenitors] = "",
[PiPi.k.father] = "",
[PiPi.k.mother] = "",
[PiPi.k.sibling] = "",
[PiPi.k.relatives] = "",
-- 7.2 OTHER BLOCK -->
[PiPi.k.hd_others] = "",
[PiPi.k.charge] = "",
[PiPi.k.convicted_of] = "",
[PiPi.k.significant_event] = "",
-- 8. AWARD SECTION -->
[PiPi.k.hd_award_received] = "",
[PiPi.k.for_work] = "",
[PiPi.k.conferred_by] = "",
[PiPi.k.of] = "",
[PiPi.k.memorials] = "",
-- 9. NOTABLE WORK SECTION (ARTISTS AND ARCHITECTS) -->
-- 10. BOTTOM SECTION -->
[PiPi.k.signature] = "",
[PiPi.k.voice_recording] = "",
[PiPi.k.official_website] = "Web oficial",
[PiPi.k.medal_table] = "Medalles",
[PiPi.k.notes] = "Notes",
},
}
------------------------------------------------------
-- OMIT PARAMETERS AND PRESET VALUES FOR PARAMETERS --
------------------------------------------------------
p.omit_params = {
-- Key of standard params to omit
-- i.e. PiPi.k.cause_death,
}
local NChars = GIBT.rs[GIBTi.rk.rs_def_charnum_cllps]
p.preset_params = {
-- Key and a preset integer value
[PiPi.k.cllps_member_of] = NChars,
[PiPi.k.cllps_influenced_by] = NChars,
[PiPi.k.cllps_participant_of] = NChars,
[PiPi.k.cllps_notable_work] = NChars,
[PiPi.k.cllps_award_received] = NChars,
}
--------------------------------------------
-- LOCALIZED PARAMETERS (OR NOT STANDARD) --
--------------------------------------------
local k = {
--[[
Definition table of the keys for localized parameters.
IMPORTANT:
1. The key name must be in 'a'..x, or '_', or number (but not as first char)
2. The key name and the string of the key name must be equals
e.g.
new_1 = "new_1", ← with end ','
--]]
}
p.new_args = {
--[[
Definition table of the localized parameters, preceded with a previous defined key and where:
Each item contains:
name or names of the parameters
type of the parameter. Usually types are: "s" or string, "i" or integer, "n" or number, "b" or boolean.
The numeric parameters can add "+" for positive value.
e.g. [k.new_1] = "new_1" or
[k.new_1] = {"new_1","New_1"}
--]]
}
p.new_lims = {
--This required table for p.new_args contains non-string types for check some parameters
--i.g. [k.name] = 'i+' <-- k.name must be a positive integer
}
p.new_pos = {
-- It is an optional table to place the localized parameters, where each item contains two keys:
-- 1st: the key of the new parameter to place
-- 2nd: the key of the prior parameter
}
function p.local_func (frame, args)
-- Only use this function for localized parameters
-- "frame" sometimes is required for a function (see below)
-- "args" contains all parameters and its values
vals = {} -- ← Do not delete or change this line!
--[[
--"vals" is a table that will contain none to several items.
--where EACH item contains the name of target standard parameter and its value
result_for_this_param =
"result_for_this_param" contains the value for one item.
1. if you know how to program minimally with lua:
e.g. for two lines: args("param_1")..'</br>'..args("param_2")
2. a call to a module:
require("Module:Module_name_to_call").called_function (parameter_list)
parameter_list is the list of the comma separated parameters an between "{}":
e.g. {separator='<br>', args("param_1"), args("param_2")
3. if you don't know how to program or a template is a better solution:
frame:expandTemplate {
title = "template_name", --template_name is the name of the used template, it must be write between "". e.g. "My template"
args = {the_args} -- "the_args" are the parameters passed to the used template
-- e.g: {args("param_1"), args("param_2")}, where "param_1" and "param_2" are the name of two localized parameters
} <-the last curly bracket
also you can read: https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#frame:callParserFunction
table.insert (vals, {target_param_name, result_for_this_param}) --It adds one item with the target parameter and a previous set value
"target_param_name" is the name of a target standard parameter
e.g. for several values:
result_for_this_param = args("param_1")
table.insert (vals, {target_param_name_1, result_for_this_param})
result_for_this_param = '<b>''..args("param_2")..'</b>' --always appears in bold
table.insert (vals, {target_param_name_2, result_for_this_param})
--]]
return vals -- ← Do not delete this line!
end --local_func
return p