ഫലകം:Infobox Election/വിവരണം
ഇത് ഫലകം:Infobox Election എന്ന ഫലകത്തിന്റെ വിവരണ-ഉപതാൾ ആണ് (ഫലകത്തിനായി ആ താൾ കാണുക). ഇതിൽ യഥാർത്ഥ ഫലകം ഉപയോഗിക്കേണ്ട രീതി, വർഗ്ഗങ്ങൾ, ബഹുഭാഷാകണ്ണികൾ തുടങ്ങിയ ഫലകത്തിന്റെ ഭാഗമല്ലാത്ത കാര്യങ്ങളാണ് ഉള്ളത്.. |
This ഫലകം employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
This template uses TemplateStyles: |
This template gets personalization information from Module:Itemgroup/list and Module:Itemgroup/groups |
Infobox to show the aggregated final results of the elections. It also shows results of binary (Yes/No) or multiple choice referendums.
ഉപയോഗക്രമം
തിരുത്തുക{{Infobox Election}}
It does not require any parameters to work. 100% of the content is fetched from Wikidata (WD).
Instructions of what properties to use and how to fill them to get the desired result can be found in the following sections.
However, in #Configuration settings you will find some settings for making configuration changes.
പ്രവർത്തനം
തിരുത്തുകThe infobox election runs exclusively from WD information.
It can handle the following types of elections:
- നേരിട്ടുള്ള തിരഞ്ഞെടുപ്പ്: elections by direct voting to a candidate; the one with the most votes wins.
- indirect election: the vote of the voters is equal to the നേരിട്ടുള്ള തിരഞ്ഞെടുപ്പ്, but not to select just one final elected, but a set of representatives who will choose the president / maximum representative.
- രണ്ട് റൗണ്ട് സിസ്റ്റം: It is a direct vote in which, if no candidate obtains an absolute majority, a second ballot is held in which only the two most voted candidates participate, and the winner of this second ballot are the final elected.
- party-list proportional representation: Typical voting by parliamentary chambers where a political party or coalition is voted on a list. In this case, the application of a formula on the number of votes determines the number of seats or positions obtained by the party list. This list can be open or closed. This aspect is indifferent to the infobox, as it only shows the final results, but not the elected deputies.
- ബഹുത്വ ബ്ലോക്ക് വോട്ടിംഗ് or multi-vote : These are elections where each voter can vote for more than one candidate. In this modality there are as many votes as positions to be filled, and in the case of limited voting (Q3786779), fewer are available. In the multi-vote method, the infobox only works with the information from P991, ie after the election date, to avoid long lists of Candidate (P726) that will not be elected. Although voting is by candidate and not by party lists, the infotable can present information of the elects aggregated by party (when the P991 contains Number of seats in assembly (P1410)), showing the seats won. Another modality is to present the list of elected people, showing the votes obtained; in this case, the ratios shown represent the support received by voters, not the distribution rate, because the sum may be greater than 100%, as it is a multi-vote model. This double modality allows to manage the item with the global results and the items with the detailed results by constituency.
- Double Elections: These are in fact two elections held on the same election day. They are usually two-chamber elections in bicameral systems, but there are also municipal elections that elect mayor and councilors separately, with two direct votes. The infobox only handle TWO elections with one office each.
- ഹിതപരിശോധന: are votes where, unlike elections, the vote is not a support for a political option , but for or against a question-shaped text. In very exceptional cases, referendums don't have a binary answer, but a "choice" between several possible answers. To address these cases, the information structure is analogous to that described for an election, with small differences.
In the following summary we see the properties used and the structures of WD corresponding to the examples of the documentation for each type of election:
Instructions and
WD data model >>
|
നേരിട്ടുള്ള തിരഞ്ഞെടുപ്പ് / indirect election | party-list proportional representation | രണ്ട് റൗണ്ട് സിസ്റ്റം | ബഹുത്വ ബ്ലോക്ക് വോട്ടിംഗ് | Double Elections | Referendums | |||||
---|---|---|---|---|---|---|---|---|---|---|---|
Election type >> | direct | indirect | proportional | election item | round 1 | round 2 | item eleccions | election item | election 1 | election 2 | |
തരം (P31) > > > > > > > qualifiers: || colspan="4" align="center" ; |Election + type + jurisdiction, etc. NO year nor edition|| colspan="2" |voting round (Q24097670) |
Election + type + jurisdiction, etc. NO year nor edition | group of elections (Q76853179) + Election + type + jurisdiction, etc. NO year nor edition | Election + type + jurisdiction, etc. NO year nor edition | Mandatori.
Must be = ഹിതപരിശോധന (Q43109) or one of its subclasses. | |||||||
പിന്തുടർച്ച
(P155), as qualifier of P31|| colspan="4" align="center" ; | mandatory |
mandatory ← 1st.round |
mandatory | mandatory | mandatory | |||||||
അടുത്തത്
(P156), as qualifier of P31 || colspan="4"; align="center" | mandatory |
mandatory 2nd.round → |
mandatory | mandatory | mandatory | |||||||
ചിത്രം (P18) | optional, (Only when qualif. സൃഷ്ടിയിലുള്ളത് (P180) = ballot (Q905151)) |
optional, (Only when qualif. സൃഷ്ടിയിലുള്ളത് (P180) = ballot (Q905151)) |
optional, (Only when qualif. സൃഷ്ടിയിലുള്ളത് (P180) = ballot (Q905151)) | ||||||||
രാജ്യം (P17) || colspan="11" align="center" ; | mandatory | |||||||||||
ബാധകമാകുന്ന നിയമമണ്ഡലം (P1001) || colspan="11" align="center" ; | mandatory | |||||||||||
പ്രാബല്യത്തീയതി (P585) || colspan="3"; align="center" | mandatory. If it is multi-value and does not refer to the same call, it must be accompanied by P518 indicating the meaning of that date.|| mandatory. 2 values + P518 linked to each round || colspan="7" align="center" ; | mandatory. same rules as "direct election" | |||||||||||
പ്രാരംഭത്തീയതി (P580) + സമാപനത്തീയതി (P582) || colspan="11" align="center" ; |Instead to P585 when ballot was not on specifics days, but in a period; same constraints | |||||||||||
Duration (P2047) + P518 = election campaign (Q11642595) || colspan="4"; align="center" | optional || colspan="2" rowspan="3" style="background: silver" | | optional | optional | |||||||||
Office contested
(P541)|| colspan="2" align="center" ; | mandatory
single-value constraint, may be together to a vice-president position, when both are a team option. |
mandatory + common qualifiers + അംഗങ്ങളുടെ എണ്ണം (P1342), Maximum capacity (P1083) from the chamber, when not all seats are on votation. | same rules as "direct election" | same rules as "proportional election" | mandatory single-value constraint same qualifiers | |||||||
Voting system (P8196)|| colspan="4"; align="center" | mandatory | mandatory | mandatory | mandatory | ||||||||
Candidate
(P726) || colspan="5" align="center" ; | mandatory
common qualifiers: ചിത്രം (P18), രാഷ്ട്രീയ പാർട്ടി (P102) o Represents (P1268), Party chief representative (P210), Running mate (P6149), Votes received (P1111) (mandatory), ക്രമസൂചകം (P1545) qualifs. related to political party: ഹ്രസ്വ നാമം (P1813), Small logo or icon (P8972) or ലോഗോയുടെ ചിത്രം (P154), SRGB color hex triplet (P465), രാഷ്ട്രീയ സഖ്യം (P5832), തത്തുല്യമായി കരുതപ്പെടുന്ന പേര് (P460) |
mandatory only "elected candidates" in round 1 | optional. Only the seats won by the elected candidates are listed in the aggregate item of the election | Same conditions as the correspondance type of election for this case | Only when multi-response. +Votes received (P1111) + SRGB color hex triplet (P465) | |||||||
Successful candidate
(P991) || colspan="5" align="center" ; | mandatory
qualifs. Number of seats in assembly (P1410) in case of proportional elections |
mandatory, single-value constraint | mandatory
qualifs. Number of seats in assembly (P1410), in case of aggregated item |
same qualifiers | optional | |||||||
Eligible voters (P1867) || colspan="3"; align="center" | mandatory || style="background: silver";| || colspan="2" align="center" ; | mandatory | optional | mandatory | mandatory | ||||||||
Ballots cast (P1868) || colspan="3"; align="center" | mandatory || style="background: silver";| || colspan="2" align="center" ; | mandatory | optional | mandatory | mandatory | ||||||||
ആകെ സാധുവായ വോട്ടുകൾ (P1697) || colspan="3"; align="center" | mandatory || style="background: silver";| || colspan="2" align="center" ; | mandatory | optional | mandatory | mandatory | ||||||||
Number of spoilt votes (P5044) || colspan="3"; align="center" | mandatory || style="background: silver";| || colspan="2" align="center" ; | mandatory | optional | mandatory | mandatory | ||||||||
Number of blank votes (P5045) || colspan="3"; align="center" | mandatory || style="background: silver";| || colspan="2" align="center" ; | mandatory | optional | mandatory | mandatory | ||||||||
ഇത് ഭാഗമായി (P527) || colspan="3" style="background: silver" | May point to items of partial results by constituency, which are not covered by this infobox. | Point to the round items with ക്രമസൂചകം (P1545) qualifier|| colspan="2" style="background: silver" | | May point to items of partial results by constituency, which are not covered by this infobox. | Point to the round items with ക്രമസൂചകം (P1545) qualifier | May point to items of partial results by constituency, which are not covered by this infobox. | |||||||
ഇതിന്റെ ഭാഗം (P361) || colspan="4" |it may indicate that it is part of some grouping, such as "elections to the European Parliament of the year xxxx". | Point to the related election items with ക്രമസൂചകം (P1545) qualifier | it may indicate that it is part of some grouping, such as "elections to the European Parliament of the year xxxx". | it may indicate a kind of grouping, but avoid to confuse with P31 | Point to the related election items with ക്രമസൂചകം (P1545) qualifier | it may indicate that it is part of some grouping, such as "Referendums from independence preparation period". | ||||||
Distribution map (P1846) | optional, (Only when qualif. സൃഷ്ടിയിലുള്ളത് (P180) = electoral result (Q19571328)) |
optional, (Only when qualif. സൃഷ്ടിയിലുള്ളത് (P180) = electoral result (Q19571328)) |
optional, (Only when qualif. സൃഷ്ടിയിലുള്ളത് (P180) = electoral result (Q19571328)) | ||||||||
Lloc web (P856) | optional | optional | optional | ||||||||
ഹാഷ് ടാഗ് (P2572) | optional | optional | optional | ||||||||
Immediate cause of (P1536) | optional. It allows building a box at the foot with the succession of individual positions (presidents, mayors, etc.); ex.:2016 Tokyo gubernatorial election (Q24639891). Or, the investiture of an elected president among the deputies of the election we are dealing with; ex:2021 Catalan parliament election (Q48838589) |
Same description as another type of election. | optional | ||||||||
തലക്കെട്ട് (P1476) | mandatory | ||||||||||
Number of support votes (P8683) | mandatory:P8683 + optional:SRGB color hex triplet (P465), ഉൾപ്പെടുന്ന പരിധി (P642) | ||||||||||
Number of negative votes (P8682) | mandatory:P8682 + optional:SRGB color hex triplet (P465), ഉൾപ്പെടുന്ന പരിധി (P642) | ||||||||||
Data get from higher level | |||||||||||
ഓഫീസിൻ്റെ കാലാവധി (P2097) from Office contested (P541)|| || || | |||||||||||
ഇതിന്റെ ഉപവിഭാഗം (P279) from Office contested (P541)|| colspan="8" |generic name of seat positions | |||||||||||
പതാകയുടെ ചിത്രം (P41) from ബാധകമാകുന്ന നിയമമണ്ഡലം (P1001)|| || || | |||||||||||
തരം (P31) from Candidate (P726)|| colspan="7" |to determine if the election is person-oriented or party-oriented | |||||||||||
ചിത്രം (P18) from Candidate (P726) o de Party chief representative (P210)|| colspan="8" |candidate personal image in personal oriented elections; or lead candidate in case of proportional list elections | |||||||||||
രാഷ്ട്രീയ പാർട്ടി (P102) from Candidate (P726)|| || || | |||||||||||
ഹ്രസ്വ നാമം (P1813) from Candidate (P726)|| colspan="8" |political party acronym, in case of proportional elections | |||||||||||
ലോഗോയുടെ ചിത്രം (P154) from Candidate (P726)|| colspan="8" |political party logo, in case of proportional elections | |||||||||||
SRGB color hex triplet (P465) from Candidate (P726)|| colspan="8" |used to draw result bars with this colour. |
Configuration settings
തിരുത്തുകAny information displayed by this infobox is fetched from WD, as it is described in exemples and documentations sections.
In addition, the infobox has some manual parameters to make changes to his appearance or operation.
- type_election: The infobox infers the election type or obtains it from Voting system (P8196). If you want to select it manually, the accepted values are: direct, proportional, two_rounds, double.
- election_name / name: Text to show as a title, above of the infobox. It may be useful to put more synthetic text. By default, the article name is used.
- id_position1: In "double elections", the letter "A" is used by default to indicate the results of the first election. This parameter allows you to indicate which character you want to use instead.
- id_position2: Similar to above, to swap the letter "B" for another digit.
- roundcolor_1: In double and two-round elections, it allows you to change the color that identifies the first election or first round.
- roundcolor_2: In double and two-round elections, it allows you to change the color that identifies the second election or second round.
- yes_color: Bar color for the "Yes" option in a referendum. By default is #2ca02c .
- not_color: Bar color for the "No" option in a referendum. By default is #d62728 .
- threshold_list
- All candidates are shown before the election date. After elections only are shown: those who have won a seat or who have obtained more than 2% of the votes in the case of proportional elections, or more than 25% for non-proportional elections. This parameter allows you to alter this threshold. Only the figure must be informed (as 3.5 or 1.0, etc.).
- item: Item Qid to use, when is different from the present article
- debug: The infobox election has a debug system that displays the value of the parameter collection that any of the subtemplates has received. Possible values for this parameter are:
- core: data passed to /core
- prepdemo: data passed to /prepare for demography
- preprefe: data passed to /prepare for referendum
- prepcand: data passed to /prepare for each candidate
- prepmult: data passed to /prepare_multi
- showblok: data passed to /showblocks. Must be accopanied with a Qnnnnnn of candidate
- showrefe: data passed to /showblocks for referendum
Tech documentation
തിരുത്തുകSee: template:Infobox election/doctech/doc for schema and functionalities of involved sub-templates.