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"
local GIBTi	= require "Module:Global infobox tools/items"
local GIBT	= require "Module:Global infobox tools"
local PiPi = require "Module:Preinfobox person/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 "", the used value is the value read from main.items
	-- 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]					= "nom",
		[PiPi.k.honorific_prefix]		= "prefix_honorific",
		[PiPi.k.honorific_suffix]		= "sufix_honorific",
		-- 2. SPECIAL NAMES SECTION -->
		[PiPi.k.native_label]			= "nom_original",
		[PiPi.k.temple_name] 			= "nom_temple",
		[PiPi.k.posthumous_name] 		= "nom_postum",
		[PiPi.k.other_name]				= "altres_noms",
		-- 3. BIOGRAPHY SECTION -->
		[PiPi.k.date_birth]				= "data_naixement",
		[PiPi.k.place_birth]			= "lloc_naixement",
		[PiPi.k.birth_name]				= "nom_naixement",
		[PiPi.k.list_birth]				= "list_naixement",
		[PiPi.k.baptism] 				= "bateig",
		[PiPi.k.disappearance]			= "data_desaparicio", 
		[PiPi.k.date_death]				= "data_defuncio",
		[PiPi.k.place_death]			= "lloc_defuncio",
		[PiPi.k.manner_death] 			= {"causa_defuncio","causa_mort"},
		[PiPi.k.cause_death]			= "circumstancia_defuncio",
		[PiPi.k.place_burial]			= "sepultura",
		[PiPi.k.coordinates_burial]		= "coordenades_sepultura",
		-- 4. POSITION SECTION  -->
		[PiPi.k.position_held] 			= "extensio_carrecs_successoris",
		-- 4.1 PHARAON BLOCK -->
		[PiPi.k.prenomen]				= "",
		[PiPi.k.prenomen_hiero]			= "prenomenhiero",
		[PiPi.k.prenomen2]				= "",
		[PiPi.k.prenomen_hiero2]		= "",
		[PiPi.k.nomen]					= "",
		[PiPi.k.nomen_hiero]			= "nomenhiero",
		[PiPi.k.nomen2]					= "",
		[PiPi.k.nomen_hiero2] 			= "",
		[PiPi.k.horus]					= "",
		[PiPi.k.horus_hiero]			= "horushiero",
		[PiPi.k.horus_prefix] 			= "",
		[PiPi.k.horus2]					= "",
		[PiPi.k.horus_hiero2] 			= "",
		[PiPi.k.nebty]					= "",
		[PiPi.k.nebty_hiero]			= "nebtyhiero",
		[PiPi.k.golden]					= "",
		[PiPi.k.golden_hiero] 			= "goldenhiero",
		-- 5. PERSONAL DATA SECTION -->
		[PiPi.k.pseudonym]				= {"alies", "nom_ploma",},
		[PiPi.k.residence] 				= "residencia",
		[PiPi.k.nationality] 			= "nacionalitat",
		[PiPi.k.citizenship] 			= "ciutadania",
		[PiPi.k.ethnic_group]			= "etnia",
		[PiPi.k.political_ideology]		= "ideologia",
		[PiPi.k.religion]				= "religio",
		[PiPi.k.education]				= "educacio",
		[PiPi.k.educated_at] 			= "",  -- = alma_mater
		[PiPi.k.know_by]				= "conegut_per",
		-- 5.1. BIOMETRIC DATA -->
		[PiPi.k.height]					= "alçada",
		[PiPi.k.height_unit]			= "",
		[PiPi.k.weight] 				= "pes",
		[PiPi.k.weight_unit] 			= "",
		[PiPi.k.handedness]				= "lateralitat",
		[PiPi.k.eye_color] 				= "color_ulls",
		[PiPi.k.hair_color] 			= "color_cabells",
		-- 6. ACTIVITY SECTION  -->
		[PiPi.k.doctoral_thesis] 		= "tesi",
		[PiPi.k.thesis_url]				= "tesi_url",
		[PiPi.k.thesis_year] 			= "tesi_any",
		[PiPi.k.doctoral_advisor]		= "direccio_tesi",
		[PiPi.k.field_work]				= "camp_treball", --camp_treball
		[PiPi.k.occupation]				= "ocupacio", --ocupacio
		[PiPi.k.time_period] 			= "epoca",
		[PiPi.k.work_period] 			= "periode_actiu",
		[PiPi.k.work_period_start]		= "inici_periode_actiu",
		[PiPi.k.work_period_end]		= "fi_periode_actiu",
		[PiPi.k.floruit] 				= "",
		[PiPi.k.employer]				= "ocupador", --organitzacio...
		[PiPi.k.political_party] 		= "partit_politic",
		[PiPi.k.member_of]		 		= "membre_de",
		[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] 					= "genere",
		[PiPi.k.movement] 				= "moviment",
		[PiPi.k.style]					= "estil",
		[PiPi.k.student_of]				= "mestres",
		[PiPi.k.student] 				= "deixebles",
		[PiPi.k.cllps_influenced_by]	= "",
		[PiPi.k.influenced_by]			= "influencies_de",
		[PiPi.k.influences_on]			= "influi_en",
		-- 6.2. WRITER & JOURNALIST BLOCK -->
		[PiPi.k.languages]				= "idiomes",
		[PiPi.k.represented_by]			= "agent",
		[PiPi.k.editor]					= "", -- = editor
		[PiPi.k.base_salary] 			= "salari",
		[PiPi.k.net_worth]				= {"patrimoni_personal","valor_net"},
		[PiPi.k.other_positions] 		= "altres_ocupacions",
		-- 6.3. MUSICIEN BLOCK -->
		[PiPi.k.voice_type]				= "veu",
		[PiPi.k.instrument]				= "",
		[PiPi.k.featured_instruments] 	= "instruments_destacats",
		[PiPi.k.record_label]			= "discografica",
		[PiPi.k.catalog] 				= "cataleg",
		[PiPi.k.orchestra]				= "orquestres",
		[PiPi.k.related_artists] 		= "artistes_relacionats",
		[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]			= "rang",
		[PiPi.k.military_unit]			= "unitat",
		[PiPi.k.commander_of]			= "comandaments",
		[PiPi.k.conflict]				= "batalles", --??
		[PiPi.k.victory] 				= "victories",
		[PiPi.k.time_in_space]			= "temps_espai",
		[PiPi.k.astronaut_mission]		= "missio_espacial",
		[PiPi.k.mission_logo]			= "insignia_missio",
		-- 6.5. RELIGIOUS BLOCK -->
		[PiPi.k.religious_order] 		= "orde",
		[PiPi.k.date_ordination] 		= "ordenacio",
		[PiPi.k.consecration]			= "consagracio",
		[PiPi.k.created_cardinal]		= "", --?
		[PiPi.k.canonization_status] 	= "enaltiment",
		[PiPi.k.veneration]				= {"venerat_a","venerat_en"},
		[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.iconography] 			= "iconografia",
		[PiPi.k.domain_saint]			= "patronatge",
		-- 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]			= "dorsal_club",
		[PiPi.k.date_debut]				= "data_debut",
		[PiPi.k.place_debut] 			= "lloc_debut",
		[PiPi.k.date_service_retirement] = "data_retirada",
		[PiPi.k.place_service_retirement]= "lloc_retirada",
		[PiPi.k.co_driver]				= "copilot",
		[PiPi.k.coach]					= "entrenador",
		[PiPi.k.drafted_by]				= "draft_equip",
		[PiPi.k.draft_pick_number]		= "draft",
		[PiPi.k.draft_year]				= "draft_any",
		[PiPi.k.kit_supplier]			= "patrocinador_material",
		[PiPi.k.sponsor] 				= {"patrocinador","patrons"},
		-- 6.6.0 Initial block -->
		[PiPi.k.block_sport_param]		= "extensio_parametres_esport",
		-- 6.6.1 Chess block -->
		[PiPi.k.title_chess] 			= "titol_escacs",
		[PiPi.k.elo_rating] 			= "elo_max",
		-- 6.6.2 Tennis block -->
		[PiPi.k.hof]					= "",
		[PiPi.k.atp]					= "",
		[PiPi.k.wta]					= "",
		-- 6.6.3 Sports race -->
		[PiPi.k.sports_team] 			= {"equip", "equips", "extensio_carrera_esportiva"},
		-- 6.6.4 Unclassified block -->
		[PiPi.k.hd_participant_of]		= {"participa_en", "extensio_participacio_esdeveniments"},
		[PiPi.k.cllps_participant_of]	= "",
		-- 6.7. WORK BLOCK -->
		[PiPi.k.hd_works]				= "obres", 
		[PiPi.k.early_works] 			= "primeres_obres",
		[PiPi.k.broadcasting_program]	= "programes",
		-- 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]		= {"obres_notables","millors_films"},
		[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]		= "estudiants_doctorals",
		[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] 			= "titol_personal",
		[PiPi.k.family]					= "dinastia",
		[PiPi.k.spouse]					= "conjuge",
		[PiPi.k.partner] 				= "parella",
		[PiPi.k.child]					= "fills",
		[PiPi.k.progenitors] 			= "pares",
		[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]		= "cronologia",
		-- 8. AWARD SECTION -->
		[PiPi.k.hd_award_received]		= {"premis","guardons","extensio_guardons"},
		[PiPi.k.cllps_award_received]	= "",
		[PiPi.k.memorials]				= "monuments",
		-- 9. NOTABLE WORK SECTION (ARTISTS AND ARCHITECTS) -->
		[PiPi.k.image_work]				= "imatgeobra",
		[PiPi.k.foot_image_work] 		= "peuobra",
		-- 10. BOTTOM SECTION -->
		[PiPi.k.signature]				= "signatura",
		[PiPi.k.coat_arms_image] 		= "escutpeu",
		[PiPi.k.motto_text]				= "lema_escut",
		[PiPi.k.voice_recording] 		= "registre_veu",
		[PiPi.k.official_website]		= {"lloc_web","web"},
		[PiPi.k.medal_table] 			= "dades_medaller",
		[PiPi.k.notes] 					= "",
	},
	[MLMT.k.Labels] = { -- alternative (localized) name to header/label returned from Wikidata 
	-- 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.disappearance] 			= "",
		[PiPi.k.death] 					= "",
		[PiPi.k.cause_death] 			= "",
		[PiPi.k.place_burial] 			= "",
		-- 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] 		= "[[Titulatura dels faraons|Titularitat reial del faraó]]",
		[PiPi.k.prenomen]				= "[[Nom de Nesut-Bity|Nom de Nesut-Bity <small>''(Prenomen)''</small>]]",
		[PiPi.k.nomen]					= "[[Nom de Sa-Ra|Nom de Sa-Ra <small>''(Nomen)''</small>]]",
		[PiPi.k.horus]					= "[[Nom d'Horus]]",
		[PiPi.k.nebty]					= "[[Nom de Nebty]]",
		[PiPi.k.golden]					= "[[Titulatura dels faraons|Nom d'Horus d'or]]",
		-- 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]				= "Educació",
		[PiPi.k.educated_at] 			= "",
		[PiPi.k.know_by]				= "Conegut per",
		-- 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] 			= "Període activitat",
		[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]			= "Influències sobre",
		-- 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] 	= "Instruments destacats",
		[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.extra_vehicular]		= "",
		[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]		= "Esdevé cardenal",
		[PiPi.k.canonization_status]	= "",
		[PiPi.k.veneration]				= "",
		[PiPi.k.date_beatification]		= "",
		[PiPi.k.beatification_by]		= "Beatificat per",
		[PiPi.k.date_canonization]		= "",
		[PiPi.k.canonization_by]		= "Canonitzat per",
		[PiPi.k.place_devotion] 		= "",
		[PiPi.k.feast_day] 				= "",
		[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]			= "Club actual",
		[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]			= "Partits",
		[PiPi.k.doub_record]			= "",
		[PiPi.k.sing_record]			= "",
		[PiPi.k.mixed_doubles]			= "",
		[PiPi.k.hof]					= "[[Hall of Fame Tennis Championships|Hall of fame]]",
		[PiPi.k.atp]					= "[[Associació de Tennistes Professionals|ATP]]",
		[PiPi.k.wta]					= "[[WTA]]",
		[PiPi.k.ATP_WTA_ranking]		= "Rànq. ATP/WTA",
		[PiPi.k.last_record]			= "",
		[PiPi.k.record]					= "",
		-- 6.6.3 Sports race -->
		[PiPi.k.period]					= "",
		[PiPi.k.youth_team]				= "",
		[PiPi.k.national_team]			= "",
		[PiPi.k.team]					= "",
		[PiPi.k.competition]			= "",
		[PiPi.k.vehicle] 				= "",
		[PiPi.k.matches_played] 		= "Partits jugats",
		[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]					= "Repartiment",
		-- 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.end_cause]				= "",
		[PiPi.k.court]					= "",
		[PiPi.k.dedicated_article]		= "",
		[PiPi.k.significant_event]	 	= "",
		-- 8. AWARD SECTION -->
		[PiPi.k.hd_award_received] 		= "",
		[PiPi.k.for_work]				= "",
		[PiPi.k.conferred_by]			= "",
		[PiPi.k.of]						= "de",
		[PiPi.k.memorials]				= "Monuments",
		-- 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
	-- PiPi.k.cause_death, --proof
}

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 ','
	--]]	
	oscar_award 		= "oscar_award",
	golden_globe_award	= "golden_globe_award",
	emmy_award			= "emmy_award",
	equips_amateurs		= "equips_amateurs",
	equips_anteriors	= "equips_anteriors",
	equips_dirigits		= "equips_dirigits",
	etapes 				= "etapes",
	classiques 			= "classiques",
	awards 				= "awards",
	premis_gaudi		= "premis_gaudi",
	premis_butaca		= "premis_butaca",
	premis_oscar		= "premis_oscar",
	premis_golden_globe	= "premis_golden_globe",
	premis_emmy			= "premis_emmy",
	premis_tony			= "premis_tony",
	premis_grammy		= "premis_grammy",
	premis_bafta		= "premis_bafta",
	premis_cesar		= "premis_cesar",
	premis_goya			= "premis_goya",
	festival_canes		= "festival_canes",
	mostra_venecia		= "mostra_venecia",
	festival_berlin		= "festival_berlin",
	festival_sitges		= "festival_sitges",
	festival_sant_sebastia= "festival_sant_sebastia",
	filmfare_awards		= "filmfare_awards",
	national_film_awards= "national_film_awards",
	altres_premis		= "altres_premis",
	clubsjuvenils		= "clubsjuvenils",
	anysjuvenils		= "anysjuvenils",
	clubs				= "clubs",
	anys				= "anys",
	partits				= "partits",
	gols				= "gols",
	anysnacional		= "anysnacional",
	equipnacional		= "equipnacional",
	partitsnacional		= "partitsnacional",
	golsnacional		= "golsnacional",
	clubsentrenats		= "clubsentrenats",
	anysentrenador		= "anysentrenador",
	carrec				= "carrec",
	escut_carrec		= "escut_carrec",
	inici				= "inici",
	final				= "final",
	predecessor			= "predecessor",
	successor			= "successor",
	junt_a				= "junt_a",
	k_etiqueta			= "k_etiqueta",
	k_nom				= "k_nom",
	carrec2				= "carrec2",
	escut_carrec2		= "escut_carrec2",
	inici2				= "inici2",
	final2				= "final2",
	predecessor2		= "predecessor2",
	successor2			= "successor2",
	junt_a2				= "junt_a2",
	k_etiqueta2			= "k_etiqueta2",
	k_nom2				= "k_nom2",
	carrec3				= "carrec3",
	escut_carrec3		= "escut_carrec3",
	inici3				= "inici3",
	final3				= "final3",
	predecessor3		= "predecessor3",
	successor3			= "successor3",
	junt_a3				= "junt_a3",
	k_etiqueta3			= "k_etiqueta3",
	k_nom3				= "k_nom3",
	carrec4				= "carrec4",
	escut_carrec4		= "escut_carrec4",
	inici4				= "inici4",
	final4				= "final4",
	predecessor4		= "predecessor4",
	successor4			= "successor4",
	junt_a4				= "junt_a4",
	k_etiqueta4			= "k_etiqueta4",
	k_nom4				= "k_nom4",
	carrec5				= "carrec5",
	escut_carrec5		= "escut_carrec5",
	inici5				= "inici5",
	final5				= "final5",
	predecessor5		= "predecessor5",
	successor5			= "successor5",
	junt_a5				= "junt_a5",
	k_etiqueta5			= "k_etiqueta5",
	k_nom5				= "k_nom5",
	carrec6				= "carrec6",
	escut_carrec6		= "escut_carrec6",
	inici6				= "inici6",
	final6				= "final6",
	predecessor6		= "predecessor6",
	successor6			= "successor6",
	junt_a6				= "junt_a6",
	k_etiqueta6			= "k_etiqueta6",
	k_nom6				= "k_nom6",
	carrec7				= "carrec7",
	escut_carrec7		= "escut_carrec7",
	inici7				= "inici7",
	final7				= "final7",
	predecessor7		= "predecessor7",
	successor7			= "successor7",
	junt_a7				= "junt_a7",
	k_etiqueta7			= "k_etiqueta7",
	k_nom7				= "k_nom7",
	}

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"}
	--]]	
	[k.oscar_award] 			= "premios_oscar",			
	[k.golden_globe_award] 		= "premios_golden_globe",	
	[k.emmy_award] 				= "premios_emmy",			
	[k.equips_amateurs]			= {"Equips amateurs", "equips_amateurs"},
	[k.equips_anteriors]		= {"Equips anteriors", "equips_anteriors"},
	[k.equips_dirigits]			= {"Equips dirigits", "equips_dirigits"},
	[k.etapes] 					= {"Etapes","etapes"},		
	[k.classiques] 				= {"Clàssiques", "classiques"},	
	[k.awards] 					= "awards",				
	[k.premis_gaudi]			= "premis_gaudi",			
	[k.premis_butaca]			= "premis_butaca",			
	[k.premis_oscar]			= "premis_oscar",			
	[k.premis_golden_globe] 	= "premis_golden_globe",	
	[k.premis_emmy] 			= "premis_emmy",			
	[k.premis_tony] 			= "premis_tony",			
	[k.premis_grammy]			= "premis_grammy",			
	[k.premis_bafta]			= "premis_bafta",			
	[k.premis_cesar]			= "premis_cesar",			
	[k.premis_goya] 			= "premis_goya",			
	[k.festival_canes]			= "festival_canes",		
	[k.mostra_venecia]			= "mostra_venecia",		
	[k.festival_berlin] 		= "festival_berlin",		
	[k.festival_sitges] 		= "festival_sitges",		
	[k.festival_sant_sebastia] 	= "festival_sant_sebastia",
	[k.filmfare_awards] 		= "filmfare_awards",		
	[k.national_film_awards] 	= "national_film_awards",  
	[k.altres_premis]			= "altres_premis",
	[k.clubsjuvenils]			= "clubsjuvenils",
	[k.anysjuvenils]			= "anysjuvenils",
	[k.clubs]					= "clubs",
	[k.anys]					= "anys",
	[k.partits] 				= "partits",
	[k.gols]					= "gols",
	[k.anysnacional]			= "anysnacional",
	[k.equipnacional]			= "equipnacional",
	[k.partitsnacional] 		= "partitsnacional",
	[k.golsnacional]			= "golsnacional",
	[k.clubsentrenats]			= "clubsentrenats",
	[k.anysentrenador]			= "anysentrenador",
	[k.carrec]					= "carrec",
	[k.escut_carrec]			= "escut_carrec",
	[k.inici]					= "inici",
	[k.final] 					= "final",
	[k.predecessor] 			= "predecessor",
	[k.successor] 				= "successor",
	[k.junt_a] 					= "junt_a",
	[k.k_etiqueta] 				= "k_etiqueta",
	[k.k_nom] 					= "k_nom",
	[k.carrec2] 				= "carrec2",
	[k.escut_carrec2]			= "escut_carrec2",
	[k.inici2] 					= "inici2",
	[k.final2] 					= "final2",
	[k.predecessor2]			= "predecessor2",
	[k.successor2]				= "successor2",
	[k.junt_a2] 				= "junt_a2",
	[k.k_etiqueta2] 			= "k_etiqueta2",
	[k.k_nom2] 					= "k_nom2",
	[k.carrec3] 				= "carrec3",
	[k.escut_carrec3]			= "escut_carrec3",
	[k.inici3] 					= "inici3",
	[k.final3] 					= "final3",
	[k.predecessor3] 			= "predecessor3",
	[k.successor3] 				= "successor3",
	[k.junt_a3] 				= "junt_a3",
	[k.k_etiqueta3] 			= "k_etiqueta3",
	[k.k_nom3] 					= "k_nom3",
	[k.carrec4] 				= "carrec4",
	[k.escut_carrec4]			= "escut_carrec4",
	[k.inici4] 					= "inici4",
	[k.final4] 					= "final4",
	[k.predecessor4]			= "predecessor4",
	[k.successor4]				= "successor4",
	[k.junt_a4] 				= "junt_a4",
	[k.k_etiqueta4] 			= "k_etiqueta4",
	[k.k_nom4] 					= "k_nom4",
	[k.carrec5] 				= "carrec5",
	[k.escut_carrec5]			= "escut_carrec5",
	[k.inici5] 					= "inici5",
	[k.final5] 					= "final5",
	[k.predecessor5] 			= "predecessor5",
	[k.successor5] 				= "successor5",
	[k.junt_a5] 				= "junt_a5",
	[k.k_etiqueta5] 			= "k_etiqueta5",
	[k.k_nom5] 					= "k_nom5",
	[k.carrec6] 				= "carrec6",
	[k.escut_carrec6]			= "escut_carrec6",
	[k.inici6] 					= "inici6",
	[k.final6] 					= "final6",
	[k.predecessor6]			= "predecessor6",
	[k.successor6] 				= "successor6",
	[k.junt_a6] 				= "junt_a6",
	[k.k_etiqueta6] 			= "k_etiqueta6",
	[k.k_nom6] 					= "k_nom6",
	[k.carrec7] 				= "carrec7",
	[k.escut_carrec7]			= "escut_carrec7",
	[k.inici7] 					= "inici7",
	[k.final7] 					= "final7",
	[k.predecessor7]			= "predecessor7",
	[k.successor7] 				= "successor7",
	[k.junt_a7] 				= "junt_a7",
	[k.k_etiqueta7] 			= "k_etiqueta7",
	[k.k_nom7] 					= "k_nom7",
}

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
	{k.oscar_award, 		PiPi.k.significant_event},
	{k.golden_globe_award, 	k.oscar_award},
	{k.emmy_award, 			k.golden_globe_award},
	{k.equips_amateurs,		PiPi.k.notes},
	{k.equips_anteriors,	PiPi.k.notes},
	{k.equips_dirigits,		PiPi.k.notes},
	{k.etapes,				PiPi.k.notes},
	{k.classiques, 			PiPi.k.notes},
	{k.awards, 				PiPi.k.notes},
	{k.premis_gaudi,		PiPi.k.notes},
	{k.premis_butaca,		PiPi.k.notes},
	{k.premis_oscar,		PiPi.k.notes},
	{k.premis_golden_globe, PiPi.k.notes},
	{k.premis_emmy, 		PiPi.k.notes},
	{k.premis_tony, 		PiPi.k.notes},
	{k.premis_grammy,		PiPi.k.notes},
	{k.premis_bafta,		PiPi.k.notes},
	{k.premis_cesar,		PiPi.k.notes},
	{k.premis_goya, 		PiPi.k.notes},
	{k.festival_canes,  	PiPi.k.notes},
	{k.mostra_venecia,  	PiPi.k.notes},
	{k.festival_berlin, 	PiPi.k.notes},
	{k.festival_sitges, 	PiPi.k.notes},
	{k.festival_sant_sebastia,  PiPi.k.notes},
	{k.filmfare_awards, 	PiPi.k.notes},
	{k.national_film_awards,PiPi.k.notes},
	{k.altres_premis,		PiPi.k.notes},
	{k.clubsjuvenils,		PiPi.k.notes},
	{k.anysjuvenils,		PiPi.k.notes},
	{k.clubs,				PiPi.k.notes},
	{k.anys,				PiPi.k.notes},
	{k.partits,				PiPi.k.notes},
	{k.gols,				PiPi.k.notes},
	{k.anysnacional,		PiPi.k.notes},
	{k.equipnacional,		PiPi.k.notes},
	{k.partitsnacional,		PiPi.k.notes},
	{k.golsnacional,		PiPi.k.notes},
	{k.clubsentrenats,		PiPi.k.notes},
	{k.anysentrenador,		PiPi.k.notes},
	{k.carrec,				PiPi.k.notes},
	{k.escut_carrec,		PiPi.k.notes},
	{k.inici,				PiPi.k.notes},
	{k.final,				PiPi.k.notes},
	{k.predecessor, 		PiPi.k.notes},
	{k.successor,			PiPi.k.notes},
	{k.junt_a,				PiPi.k.notes},
	{k.k_etiqueta,			PiPi.k.notes},
	{k.k_nom,				PiPi.k.notes},
	{k.carrec2,				PiPi.k.notes},
	{k.escut_carrec2,		PiPi.k.notes},
	{k.inici2,				PiPi.k.notes},
	{k.final2,				PiPi.k.notes},
	{k.predecessor2,		PiPi.k.notes},
	{k.successor2,  		PiPi.k.notes},
	{k.junt_a2,				PiPi.k.notes},
	{k.k_etiqueta2, 		PiPi.k.notes},
	{k.k_nom2,				PiPi.k.notes},
	{k.carrec3,				PiPi.k.notes},
	{k.escut_carrec3,		PiPi.k.notes},
	{k.inici3,				PiPi.k.notes},
	{k.final3,				PiPi.k.notes},
	{k.predecessor3,		PiPi.k.notes},
	{k.successor3,			PiPi.k.notes},
	{k.junt_a3,				PiPi.k.notes},
	{k.k_etiqueta3,			PiPi.k.notes},
	{k.k_nom3,				PiPi.k.notes},
	{k.carrec4,				PiPi.k.notes},
	{k.escut_carrec4,		PiPi.k.notes},
	{k.inici4,				PiPi.k.notes},
	{k.final4,				PiPi.k.notes},
	{k.predecessor4,		PiPi.k.notes},
	{k.successor4,			PiPi.k.notes},
	{k.junt_a4,				PiPi.k.notes},
	{k.k_etiqueta4,			PiPi.k.notes},
	{k.k_nom4,				PiPi.k.notes},
	{k.carrec5,				PiPi.k.notes},
	{k.escut_carrec5,		PiPi.k.notes},
	{k.inici5,				PiPi.k.notes},
	{k.final5,				PiPi.k.notes},
	{k.predecessor5,		PiPi.k.notes},
	{k.successor5,			PiPi.k.notes},
	{k.junt_a5,				PiPi.k.notes},
	{k.k_etiqueta5,			PiPi.k.notes},
	{k.k_nom5,				PiPi.k.notes},
	{k.carrec6,				PiPi.k.notes},
	{k.escut_carrec6,		PiPi.k.notes},
	{k.inici6,				PiPi.k.notes},
	{k.final6,				PiPi.k.notes},
	{k.predecessor6,		PiPi.k.notes},
	{k.successor6,			PiPi.k.notes},
	{k.junt_a6,				PiPi.k.notes},
	{k.k_etiqueta6,			PiPi.k.notes},
	{k.k_nom6,				PiPi.k.notes},
	{k.carrec7,				PiPi.k.notes},
	{k.escut_carrec7,		PiPi.k.notes},
	{k.inici7,				PiPi.k.notes},
	{k.final7,				PiPi.k.notes},
	{k.predecessor7,		PiPi.k.notes},
	{k.successor7,			PiPi.k.notes},
	{k.junt_a7,				PiPi.k.notes},
	{k.k_etiqueta7,			PiPi.k.notes},
	{k.k_nom7,				PiPi.k.notes},
}	

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})
	--]]
	result_for_this_param =     -- dummy model that use a Module to prepare a result
		require("Module:Separated entries").main ({
			separator='<br>', 
			args(k.oscar_award),
            args(k.golden_globe_award),
            args(k.emmy_award),
            })       
	table.insert (vals, {PiPi.k.hd_award_received, result_for_this_param})
	result_for_this_param =
		frame:expandTemplate {
			title = "Infotaula persona/manual/equips_esportistes",
			args = {clubsjuvenils=args(k.clubsjuvenils),anysjuvenils=args(k.anysjuvenils),           -- esportistes generals
					clubs=args(k.clubs),anys=args(k.anys),partits=args(k.partits),gols=args(k.gols),
					anysnacional=args(k.anysnacional),equipnacional=args(k.equipnacional),
					partitsnacional=args(k.partitsnacional),golsnacional=args(k.golsnacional),
					clubsentrenats=args(k.clubsentrenats),anysentrenador=args(k.anysentrenador),
					equips_amateurs=args(k.equips_amateurs), equips_anteriors=args(k.equips_anteriors),  -- ciclistes
					equips_dirigits=args(k.equips_dirigits)},
			}
	table.insert (vals, {PiPi.k.sports_team, result_for_this_param})
	result_for_this_param =
		frame:expandTemplate {
			title = "Infotaula persona/manual/curses ciclisme", 
			args  = {etapes=args(k.etapes), classiques=args(k.classiques), awards=args(k.awards)},	
			}
	table.insert (vals, {PiPi.k.hd_participant_of, result_for_this_param})
	result_for_this_param =
		frame:expandTemplate {
			title = "Infotaula persona/manual/premis_cine", 
			args = {premis_gaudi=args(k.premis_gaudi), premis_butaca=args(k.premis_butaca), premis_oscar=args(k.premis_oscar), premis_golden_globe=args(k.premis_golden_globe), premis_emmy=args(k.premis_emmy), premis_tony=args(k.premis_tony), premis_grammy=args(k.premis_grammy), premis_bafta=args(k.premis_bafta), premis_cesar=args(k.premis_cesar), premis_goya=args(k.premis_goya), festival_canes=args(k.festival_canes), mostra_venecia=args(k.mostra_venecia), festival_berlin=args(k.festival_berlin), festival_sitges=args(k.festival_sitges), festival_sant_sebastia=args(k.festival_sant_sebastia), filmfare_awards=args(k.filmfare_awards), national_film_awards=args(k.national_film_awards), altres_premis=args(k.altres_premis)},
			}
	table.insert (vals, {PiPi.k.hd_award_received, result_for_this_param})
	result_for_this_param =
		frame:expandTemplate {
			title = "Infotaula persona/manual/carrecs",
			args = {carrec=args(k.carrec), escut_carrec=args(k.escut_carrec), inici=args(k.inici), final=args(k.final), predecessor=args(k.predecessor), successor=args(k.successor), junt_a=args(k.junt_a), k_etiqueta=args(k.k_etiqueta), k_nom=args(k.k_nom),
					carrec2=args(k.carrec2), escut_carrec2=args(k.escut_carrec2), inici2=args(k.inici2), final2=args(k.final2), predecessor2=args(k.predecessor2), successor2=args(k.successor2), junt_a2=args(k.junt_a2), k_etiqueta2=args(k.k_etiqueta2), k_nom2=args(k.k_nom2), 
					carrec3=args(k.carrec3), escut_carrec3=args(k.escut_carrec3), inici3=args(k.inici3), final3=args(k.final3), predecessor3=args(k.predecessor3), successor3=args(k.successor3), junt_a3=args(k.junt_a3), k_etiqueta3=args(k.k_etiqueta3), k_nom3=args(k.k_nom3), 
					carrec4=args(k.carrec4), escut_carrec4=args(k.escut_carrec4), inici4=args(k.inici4), final4=args(k.final4), predecessor4=args(k.predecessor4), successor4=args(k.successor4), junt_a4=args(k.junt_a4), k_etiqueta4=args(k.k_etiqueta4), k_nom4=args(k.k_nom4), 
					carrec5=args(k.carrec5), escut_carrec5=args(k.escut_carrec5), inici5=args(k.inici5), final5=args(k.final5), predecessor5=args(k.predecessor5), successor5=args(k.successor5), junt_a5=args(k.junt_a5), k_etiqueta5=args(k.k_etiqueta5), k_nom5=args(k.k_nom5), 
					carrec6=args(k.carrec6), escut_carrec6=args(k.escut_carrec6), inici6=args(k.inici6), final6=args(k.final6), predecessor6=args(k.predecessor6), successor6=args(k.successor6), junt_a6=args(k.junt_a6), k_etiqueta6=args(k.k_etiqueta6), k_nom6=args(k.k_nom6), 
					carrec7=args(k.carrec7), escut_carrec7=args(k.escut_carrec7), inici7=args(k.inici7), final7=args(k.final7), predecessor7=args(k.predecessor7), successor7=args(k.successor7), junt_a7=args(k.junt_a7), k_etiqueta7=args(k.k_etiqueta7), k_nom7=args(k.k_nom7)},
            }
        table.insert (vals, {PiPi.k.position_held, result_for_this_param})

	return vals -- ← Do not delete this line!
end --local_func

return p