Mòdul:Preinfobox person/items
Aparença
Podeu crear la pàgina d'ús per documentar aquest mòdul Lua. |
local p = {}
local GIBTi = require "Module:Global infobox tools/items"
local GIBT = require "Module:Global infobox tools"
p.krs = { --used key names for reserved word for this specific infobox
rs_icon_at_position = "rs_icon_at_position",
}
p.k = { --used key names for headers, labels and data
-- USED IN ENGLISH INFOBOX -->
-- 1. TOP HEADER SECTION -->
honorific_prefix = "honorific_prefix",
honorific_suffix = "honorific_suffix",
-- 2. SPECIAL NAMES SECTION -->
native_label = "native_label",
temple_name = "temple_name",
posthumous_name = "posthumous_name",
other_name = "other_name",
-- 3. BIOGRAPHY SECTION -->
hd_biography = "hd_biography",
hd_component = "hd_component",
group_humans = "group_humans",
birth = "birth",
date_birth = "date_birth",
place_birth = "place_birth",
birth_name = "birth_name",
list_birth = "list_birth",
baptism = "baptism",
floruit = "floruit",
disappearance = "disappearance", --= disappeared_date
death = "death",
date_death = "date_death",
place_death = "place_death",
manner_death = "manner_death",
cause_death = "cause_death",
place_burial = "place_burial",
coordinates_burial = "coordinates_burial",
discontinuation_position= "discontinuation_position",
new_position = "new_position",
-- 4. POSITION SECTION -->
position_held = "position_held",
hd_personal_data = "hd_personal_data",
electoral_district = "electoral_district",
elected_in = "elected_in",
appointed = "appointed",
together_with = "together_with",
diocese = "diocese",
cabinet = "cabinet",
-- 4.1 PHARAON BLOCK -->
a_epypt_royal_tit = "a_epypt_royal_tit",
prenomen = "prenomen",
prenomen_hiero = "prenomen_hiero",
prenomen2 = "prenomen2",
prenomen_hiero2 = "prenomen_hiero2",
nomen = "nomen",
nomen_hiero = "nomen_hiero",
nomen2 = "nomen2",
nomen_hiero2 = "nomen_hiero2",
horus = "horus",
horus_hiero = "horus_hiero",
horus_prefix = "horus_prefix",
horus2 = "horus2",
horus_hiero2 = "horus_hiero2",
nebty = "nebty",
nebty_hiero = "nebty_hiero",
golden = "golden",
golden_hiero = "golden_hiero",
-- 5. PERSONAL DATA SECTION -->
pseudonym = "pseudonym",
residence = "residence",
nationality = "nationality",
citizenship = "citizenship",
ethnic_group = "ethnic_group",
political_ideology = "political_ideology",
religion = "religion",
education = "education",
educated_at = "educated_at",
know_by = "know_by",
-- 5.1. BIOMETRIC DATA -->
height = "height",
height_unit = "height_unit",
weight = "weight",
weight_unit = "weight_unit",
handedness = "handedness",
eye_color = "eye_color",
hair_color = "hair_color",
-- 6. ACTIVITY SECTION -->
hd_activity = "hd_activity",
doctoral_thesis = "doctoral_thesis",
thesis_url = "thesis_url",
thesis_year = "thesis_year",
doctoral_advisor = "doctoral_advisor",
field_work = "field_work",
occupation = "occupation",
time_period = "time_period",
work_period = "work_period",
work_period_start = "work_period_start",
work_period_end = "work_period_end",
floruit = "floruit",
employer = "employer",
political_party = "political_party",
member_of = "member_of",
cllps_member_of = "cllps_member_of",
-- 6.1. STYLE & INFLUENCES BLOCK -->
interested_in = "interested_in",
idea = "idea",
art = "art",
genre = "genre",
movement = "movement",
style = "style",
student_of = "student_of",
student = "student",
influenced_by = "influenced_by",
cllps_influenced_by = "cllps_influenced_by",
influences_on = "influences_on",
-- 6.2. WRITER & JOURNALIST BLOCK -->
languages = "languages",
represented_by = "represented_by",
editor = "editor",
base_salary = "base_salary",
net_worth = "net_worth",
other_positions = "other_positions",
-- 6.3. MUSICIEN BLOCK -->
voice_type = "voice_type",
instrument = "instrument",
featured_instruments = "featured_instruments",
record_label = "record_label",
catalog = "catalog",
orchestra = "orchestra",
related_artists = "related_artists",
musical_conductor = "musical_conductor",
deputy_music_director = "deputy_music_director",
art_patron = "art_patron",
-- 6.4. MILITARY AND ASTRONAUT BLOCK -->
hd_military = "hd_military",
allegiance = "allegiance",
military_period = "military_period",
military_branch = "military_branch",
military_rank = "military_rank",
military_unit = "military_unit",
commander_of = "commander_of",
conflict = "conflict",
victory = "victory",
time_in_space = "time_in_space",
extra_vehicular = "extra_vehicular",
astronaut_mission = "astronaut_mission",
mission_logo = "mission_logo",
-- 6.5. RELIGIOUS BLOCK -->
religious_order = "religious_order",
date_ordination = "date_ordination",
consecration = "consecration",
created_cardinal = "created_cardinal",
canonization_status = "canonization_status",
veneration = "veneration",
date_beatification = "date_beatification",
place_beatification = "place_beatification",
beatification_by = "beatification_by",
date_canonization = "date_canonization",
place_canonization = "place_canonization",
canonization_by = "canonization_by",
place_devotion = "place_devotion",
feast_day = "feast_day",
significant_event = "significant_event",
cause_destruction = "cause_destruction",
has_cause = "has_cause",
iconography = "iconography",
domain_saint = "domain_saint",
-- 6.6. SPORTS BLOCK -->
country_sport = "country_sport",
sport = "sport",
sports_discipline = "sports_discipline",
competition_class = "competition_class",
league = "league",
position_team = "position_team",
playing_hand = "playing_hand",
current_club = "current_club",
sport_number = "sport_number",
date_debut = "date_debut",
place_debut = "place_debut",
date_service_retirement = "date_service_retirement",
place_service_retirement= "place_service_retirement",
co_driver = "co_driver",
coach = "coach",
drafted_by = "drafted_by",
draft_pick_number = "draft_pick_number",
draft_year = "draft_year",
kit_supplier = "kit_supplier",
sponsor = "sponsor",
-- 6.6.0 Initial block -->
block_sport_param = "block_sport_param",
-- 6.6.1 Chess block -->
title_chess = "title_chess",
maximum = "maximum",
elo_rating = "elo_rating",
fide_id = "fide_id",
-- 6.6.2 Tennis block -->
modality = "modality",
personal_record = "personal_record",
tennis_match = "tennis_match",
sing_record = "sing_record",
doub_record = "doub_record",
mixed_doubles = "mixed_doubles",
hof = "hof",
atp = "atp",
wta = "wta",
ATP_WTA_ranking = "ATP_WTA_ranking",
last_record = "last_record",
record = "record",
-- 6.6.3 Sports race -->
sports_team = "sports_team",
period = "period",
youth_team = "youth_team",
national_team = "national_team",
team = "team",
competition = "competition",
vehicle = "vehicle",
matches_played = "matches_played",
goals_scored = "goals_scored",
-- 6.6.4 Unclassified block -->
hd_participant_of = "hd_participant_of",
cllps_participant_of = "cllps_participant_of",
-- 6.7. WORK BLOCK -->
hd_works = "hd_works",
early_works = "early_works",
broadcasting_program = "broadcasting_program",
-- 6.7.1. ACTOR BLOCK -->
series = "series",
films = "films",
cast = "cast",
-- 6.7.2. CREATOR & ARTIST BLOCK -->
hd_notable_work = "hd_notable_work",
cllps_notable_work = "cllps_notable_work",
-- 6.7.3. ARCHITECT BLOCK -->
project = "project",
-- 6.7.4. SCIENTIFIC BLOCK -->
doctoral_student = "doctoral_student",
botanist_author_abbrev = "botanist_author_abbrev",
zoologist_author_abbrev = "zoologist_author_abbrev",
archives_at = "archives_at",
hd_repertoire = "hd_repertoire",
hd_trajectory = "hd_trajectory",
-- 7. FAMILY/OTHER SECTION -->
-- 7.1 FAMILY BLOCK -->
hd_family = "hd_family",
noble_title = "noble_title",
family = "family",
spouse = "spouse",
partner = "partner",
child = "child",
progenitors = "progenitors",
father = "father",
mother = "mother",
sibling = "sibling",
relatives = "relatives",
-- 7.2 OTHER BLOCK -->
hd_others = "hd_others",
charge = "charge",
convicted_of = "convicted_of",
end_cause = "end_cause",
court = "court",
dedicated_article = "dedicated_article",
significant_event = "significant_event",
-- 8. AWARD SECTION -->
hd_award_received = "hd_award_received",
cllps_award_received = "cllps_award_received",
for_work = "for_work",
conferred_by = "conferred_by",
of = "of",
memorials = "memorials",
-- 9. NOTABLE WORK SECTION (ARTISTS AND ARCHITECTS) -->
hd_notable_work = "hd_notable_work",
image_work = "image_work",
foot_image_work = "foot_image_work",
-- 10. BOTTOM SECTION -->
signature = "signature",
coat_arms_image = "coat_arms_image",
motto_text = "motto_text",
voice_recording = "voice_recording",
official_website = "official_website",
medal_table = "medal_table",
notes = "notes",
}
p.arg_lims = { --non-string types for parameters
[p.krs.rs_icon_at_position] = 'b',
[p.k.cllps_member_of] = 'i+',
[p.k.cllps_influenced_by] = 'i+',
[p.k.cllps_notable_work] = 'i+',
[p.k.cllps_award_received] = 'i+',
[p.k.cllps_participant_of] = 'i+',
}
p.lab_no_ruby = { --labels without hint tags when rs_changeable_lbls=true
p.k.matches_played,
p.k.goals_scored,
p.k.last_record,
p.k.record,
p.k.voice_recording,
}
p.idx = { --index for parameter and/or header/label lists
-- 1. TOP HEADER SECTION -->
{'a', GIBTi.rk.name},
{'a', p.k.honorific_prefix},
{'a', p.k.honorific_suffix},
{'-', GIBT.images},
-- 2. SPECIAL NAMES SECTION -->
{'al', p.k.native_label},
{'al', p.k.temple_name},
{'al', p.k.posthumous_name},
{'al', p.k.other_name},
-- 3. BIOGRAPHY SECTION -->
{ 'L', p.k.hd_biography},
{ 'L', p.k.hd_component},
{'al', p.k.group_humans},
{ 'L', p.k.birth},
{'a', p.k.date_birth},
{'a', p.k.place_birth},
{'a', p.k.birth_name},
{'a', p.k.list_birth},
{'al', p.k.baptism},
{'al', p.k.floruit},
{'al', p.k.disappearance},
{ 'L', p.k.death},
{'a', p.k.date_death},
{'a', p.k.place_death},
{'a', p.k.manner_death},
{'al', p.k.cause_death},
{'al', p.k.place_burial},
{'a', p.k.coordinates_burial},
{ 'L', p.k.discontinuation_position},
{ 'L', p.k.new_position},
-- 4. POSITION SECTION -->
{'a', p.k.position_held},
{ 'L', p.k.hd_personal_data},
{ 'L', p.k.electoral_district},
{ 'L', p.k.elected_in},
{ 'L', p.k.appointed},
{ 'L', p.k.together_with},
{ 'L', p.k.diocese},
{ 'L', p.k.cabinet},
-- 4.1 PHARAON BLOCK -->
{ 'L', p.k.a_epypt_royal_tit},
{'al', p.k.prenomen},
{'a', p.k.prenomen_hiero},
{'a', p.k.prenomen2},
{'a', p.k.prenomen_hiero2},
{'al', p.k.nomen},
{'a', p.k.nomen_hiero},
{'a', p.k.nomen2},
{'a', p.k.nomen_hiero2},
{'al', p.k.horus},
{'a', p.k.horus_hiero},
{'a', p.k.horus_prefix},
{'a', p.k.horus2},
{'a', p.k.horus_hiero2},
{'al', p.k.nebty},
{'a', p.k.nebty_hiero},
{'al', p.k.golden},
{'a', p.k.golden_hiero},
-- 5. PERSONAL DATA SECTION -->
{'al', p.k.pseudonym},
{'al', p.k.residence},
{'al', p.k.nationality},
{'al', p.k.citizenship},
{'al', p.k.ethnic_group},
{'al', p.k.political_ideology},
{'al', p.k.religion},
{'al', p.k.education},
{'al', p.k.educated_at},
{'al', p.k.know_by},
-- 5.1. BIOMETRIC DATA -->
{'al', p.k.height},
{'a', p.k.height_unit},
{'al', p.k.weight},
{'a', p.k.weight_unit},
{'al', p.k.handedness},
{'al', p.k.eye_color},
{'al', p.k.hair_color},
-- 6. ACTIVITY SECTION -->
{ 'L', p.k.hd_activity},
{'al', p.k.doctoral_thesis},
{'a', p.k.thesis_url},
{'a', p.k.thesis_year},
{'al', p.k.doctoral_advisor},
{'al', p.k.field_work},
{'al', p.k.occupation},
{'al', p.k.time_period},
{'al', p.k.work_period},
{'a', p.k.work_period_start},
{'a', p.k.work_period_end},
{'al', p.k.floruit},
{'al', p.k.employer},
{'al', p.k.political_party},
{'al', p.k.member_of},
{'a', p.k.cllps_member_of},
-- 6.1. STYLE & INFLUENCES BLOCK -->
{'al', p.k.interested_in},
{'al', p.k.idea},
{'al', p.k.art},
{'al', p.k.genre},
{'al', p.k.movement},
{'al', p.k.style},
{'al', p.k.student_of},
{'al', p.k.student},
{'al', p.k.influenced_by},
{'a', p.k.cllps_influenced_by},
{'al', p.k.influences_on},
-- 6.2. WRITER & JOURNALIST BLOCK -->
{'al', p.k.languages},
{'al', p.k.represented_by},
{'al', p.k.editor},
{'al', p.k.base_salary},
{'al', p.k.net_worth},
{'al', p.k.other_positions},
-- 6.3. MUSICIEN BLOCK -->
{'al', p.k.voice_type},
{'al', p.k.instrument},
{'al', p.k.featured_instruments},
{'al', p.k.record_label},
{'al', p.k.catalog},
{'al', p.k.orchestra},
{'al', p.k.related_artists},
{'al', p.k.musical_conductor},
{'al', p.k.deputy_music_director},
{ 'L', p.k.art_patron},
-- 6.4. MILITARY AND ASTRONAUT BLOCK -->
{ 'L', p.k.hd_military},
{'al', p.k.allegiance},
{'al', p.k.military_period},
{'al', p.k.military_branch},
{'al', p.k.military_rank},
{'al', p.k.military_unit},
{'al', p.k.commander_of},
{'al', p.k.conflict},
{'al', p.k.victory},
{'al', p.k.time_in_space},
{'al', p.k.extra_vehicular},
{'al', p.k.astronaut_mission},
{'al', p.k.mission_logo},
-- 6.5. RELIGIOUS BLOCK -->
{'al', p.k.religious_order},
{'al', p.k.date_ordination},
{'al', p.k.consecration},
{'al', p.k.created_cardinal},
{'al', p.k.canonization_status},
{'al', p.k.veneration},
{'al', p.k.date_beatification},
{'a', p.k.place_beatification},
{'al', p.k.beatification_by},
{'al', p.k.date_canonization},
{'a', p.k.place_canonization},
{'al', p.k.canonization_by},
{'al', p.k.place_devotion},
{'al', p.k.feast_day},
{'al', p.k.significant_event},
{ 'l', p.k.cause_destruction},
{ 'l', p.k.has_cause},
{'al', p.k.iconography},
{'al', p.k.domain_saint},
-- 6.6. SPORTS BLOCK -->
{'al', p.k.country_sport},
{'al', p.k.sport},
{'al', p.k.sports_discipline},
{'al', p.k.competition_class},
{'al', p.k.league},
{'al', p.k.position_team},
{'al', p.k.playing_hand},
{'al', p.k.current_club},
{'al', p.k.sport_number},
{'al', p.k.date_debut},
{'a', p.k.place_debut},
{'al', p.k.date_service_retirement},
{'a', p.k.place_service_retirement},
{'al', p.k.co_driver},
{'al', p.k.coach},
{'al', p.k.drafted_by},
{'a', p.k.draft_pick_number},
{'a', p.k.draft_year},
{'al', p.k.kit_supplier},
{'al', p.k.sponsor},
-- 6.6.0 Initial block -->
{'a', p.k.block_sport_param},
-- 6.6.1 Chess block -->
{'al', p.k.title_chess},
{ 'l', p.k.maximum},
{'al', p.k.elo_rating},
{ 'L', p.k.fide_id},
-- 6.6.2 Tennis block -->
{ 'L', p.k.modality},
{ 'L', p.k.personal_record},
{ 'L', p.k.tennis_match},
{ 'L', p.k.sing_record},
{ 'L', p.k.doub_record},
{ 'L', p.k.mixed_doubles},
{'al', p.k.hof},
{'al', p.k.atp},
{'al', p.k.wta},
{'l', p.k.ATP_WTA_ranking},
{'l', p.k.last_record},
{'l', p.k.record},
-- 6.6.3 Sports race -->
{'a', p.k.sports_team},
{ 'L', p.k.period},
{ 'L', p.k.youth_team},
{ 'L', p.k.national_team},
{ 'L', p.k.team},
{ 'L', p.k.competition},
{ 'L', p.k.vehicle},
{ 'L', p.k.matches_played},
{ 'L', p.k.goals_scored},
-- 6.6.4 Unclassified block -->
{'al', p.k.hd_participant_of},
{'a', p.k.cllps_participant_of},
-- 6.7. WORK BLOCK -->
{'al', p.k.hd_works},
{'al', p.k.early_works},
{'al', p.k.broadcasting_program},
-- 6.7.1. ACTOR BLOCK -->
{'al', p.k.series},
{'al', p.k.films},
{'al', p.k.cast},
-- 6.7.2. CREATOR & ARTIST BLOCK -->
{'al', p.k.hd_notable_work},
{'a', p.k.cllps_notable_work},
-- 6.7.3. ARCHITECT BLOCK -->
{'al', p.k.project},
-- 6.7.4. SCIENTIFIC BLOCK -->
{'al', p.k.doctoral_student},
{'al', p.k.botanist_author_abbrev},
{'al', p.k.zoologist_author_abbrev},
{'al', p.k.archives_at},
{'al', p.k.hd_repertoire},
{'al', p.k.hd_trajectory},
-- 7. FAMILY/OTHER SECTION -->
-- 7.1 FAMILY BLOCK -->
{ 'L', p.k.hd_family},
{'al', p.k.noble_title},
{'al', p.k.family},
{'al', p.k.spouse},
{'al', p.k.partner},
{'al', p.k.child},
{'al', p.k.progenitors},
{'al', p.k.father},
{'al', p.k.mother},
{'al', p.k.sibling},
{'al', p.k.relatives},
-- 7.2 OTHER BLOCK -->
{ 'L', p.k.hd_others},
{'al', p.k.charge},
{'al', p.k.convicted_of},
{ 'L', p.k.end_cause},
{ 'L', p.k.court},
{ 'L', p.k.dedicated_article},
{'al', p.k.significant_event},
-- 8. AWARD SECTION -->
{'al', p.k.hd_award_received},
{'a', p.k.cllps_award_received},
{ 'l', p.k.for_work},
{ 'l', p.k.conferred_by},
{ 'l', p.k.of},
{'al', p.k.memorials},
-- 9. NOTABLE WORK SECTION (ARTISTS AND ARCHITECTS) -->
{'a', p.k.image_work},
{'a', p.k.foot_image_work},
-- 10. BOTTOM SECTION -->
{'al', p.k.signature},
{'a', p.k.coat_arms_image},
{'a', p.k.motto_text},
{'al', p.k.voice_recording},
{'al', p.k.official_website},
{'al', p.k.medal_table},
{'al', p.k.notes},
}
return p