ഫലകം:Election box candidate with party link
This template is used on approximately 26,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
Usage
തിരുത്തുകParty links
തിരുത്തുകA more sophisticated effect can be achieved using Template:Election box candidate with party link. This adds a link to the candidate's party and also adds a color tab to the left of the candidate. For example:
For example:
{{Election box begin | title=[[United Kingdom general election, 2005|General Election 2005]]: Strangford}} {{Election box candidate with party link |party = Labour Party (UK) |candidate = Tony Blair |votes = 9,999 |percentage = 50.0 |change = +10.0 }} {{Election box candidate with party link |party = Conservative Party (UK) |candidate = Michael Howard |votes = 9,999 |percentage = 50.0 |change = +10.0 }} {{Election box end}}
Will create this:
പാർട്ടി | സ്ഥാനാർത്ഥി | വോട്ടുകൾ | % | ±% | |
---|---|---|---|---|---|
Labour | Tony Blair | 9,999 | 50.0 | +10.0 | |
Conservative | Michael Howard | 9,999 | 50.0 | +10.0 |
However, this does rely on some additional setup for each party. See below for more details.
TemplateData for Election box candidate with party link
A more sophisticated effect in election results tables can be achieved using this template. This adds a link to the candidate's party and also adds a color tab to the left of the candidate. See Election box begin and Election box end. See this template's page for a new party.
ചരം | വിവരണം | തരം | സ്ഥിതി | |
---|---|---|---|---|
Party | party | The article name of the relevant party
| താൾ | ആവശ്യമാണ് |
Candidate name | candidate | വിവരണമൊന്നുമില്ല | പദം | ആവശ്യമാണ് |
Number of votes | votes | വിവരണമൊന്നുമില്ല
| എണ്ണം | ആവശ്യമാണ് |
% vote share | percentage | വിവരണമൊന്നുമില്ല
| എണ്ണം | ആവശ്യമാണ് |
Vote share change | change | Number of percentage points more/less than the previous election.
| പദം | ആവശ്യമാണ് |
Party set up
തിരുത്തുകIt is necessary to do some a little bit of setup for each party in the election. This involves creating an entry in Module:Political party. See the documentation for Module:Political party for details.
Microformat
തിരുത്തുകThe HTML markup produced by this template includes an hCard microformat, which makes the person's details parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book or database. For more information about the use of microformats on Wikipedia, please see the microformat project.
Sub-templates
തിരുത്തുകDate-of-birth ("bday") information will only be included in the microformat if {{birth date}}, or {{birth date and age}} are used in the infobox. (Do not use these if the date is before 1583). Be cautious about using these if the person is still living, per WP:DOB.
To include a URL, use {{URL}}.
Please do not remove instances of these sub-templates.
Classes
തിരുത്തുകhCard uses HTML classes including:
- adr
- agent
- bday
- birthplace
- category
- country-name
- deathdate
- deathplace
- extended-address
- family-name
- fn (required)
- given-name
- honorific-prefix
- honorific-suffix
- label
- locality
- n
- nickname
- note
- org
- role
- url
- vcard
Please do not rename or remove these classes nor collapse nested elements which use them.
See also
തിരുത്തുകElection box begin
തിരുത്തുക- {{Election box begin}}
- {{Election box begin no change}}
- {{Election box begin no party}}
- {{Election box begin no party no change}}
- {{Election box inline begin}}
- {{Election box inline begin no change}}
- {{Election box open primary begin no change}}
- {{Election box open primary begin no party no change}}
Election box candidate
തിരുത്തുകStandard
തിരുത്തുക- {{Election box candidate}}
- {{Election box candidate for alliance}}
- {{Election box candidate minor party}}
- {{Election box candidate no party link no change}}
- {{Election box candidate with party link}}
- {{Election box candidate with party link coalition 1918}} - for coalition coupon candidates in 1918 UK general election.
- {{Election box candidate with party link no change}}
Winning
തിരുത്തുക- {{Election box winning candidate no change}}
- {{Election box winning candidate with party link}}
- {{Election box winning candidate with party link no change}}
Inline
തിരുത്തുക- {{Election box inline candidate}}
- {{Election box inline candidate no change}}
- {{Election box inline candidate with party link}}
- {{Election box inline candidate with party link no change}}
- {{Election box inline incumbent}}
Election summary
തിരുത്തുകFor parties without an article on Wikipedia.
Election box gain/hold/loss etc
തിരുത്തുക- {{Election box gain}}
- {{Election box gain with party link}}
- {{Election box hold with party link}}
- {{Election box hold with party link no change}}
- {{Election box hold with party link no swing}}
- {{Election box void}}
- {{Election box new seat win}}
- {{Election box new boundary win}}
Election box majority
തിരുത്തുക- {{Election box majority}}
- {{Election box majority no change}}
- {{Election box majority no party}}
- {{Election box majority no party no change}}
- {{Election box margin of victory}}
Election box turnout
തിരുത്തുക- {{Election box turnout}}
- {{Election box turnout no change}}
- {{Election box turnout no change with votes}}
- {{Election box turnout no party}}
Election box total and related
തിരുത്തുക- {{Election box total}}
- {{Election box total ballots}}
- {{Election box total no change}}
- {{Election box total no change with delegates}}
- {{Election box total no party}}
- {{Election box total no party no change}}
- {{Election box total valid}}
- {{Election box total valid no change}}
- {{Election box formal}}
- {{Election box informal}}
- {{Election box necessary no change}}
- {{Election box necessary no party no change}}
- {{Election box registered electors}}
- {{Election box rejected}}
Election box end
തിരുത്തുക- {{Election box inline end}}
- {{Election box end}}
- {{Election box end 1918}} - if using {{Election box candidate with party link coalition 1918}} this is needed.
- {{End}}
മുകളിൽ കാണുന്ന വിവരണം ഫലകം:Election box candidate with party link/doc എന്ന ഉപതാളിൽ നിന്ന് ഉൾപ്പെടുത്തിയിട്ടുള്ളതാണ്. (തിരുത്തുക | നാൾവഴി) താങ്കൾക്ക് പരീക്ഷണങ്ങൾ ഫലകത്തിന്റെ എഴുത്തുകളരി (നിർമ്മിക്കുക) താളിലോ testcases (നിർമ്മിക്കുക) താളിലോ നടത്താവുന്നതാണ്. ദയവായി വർഗ്ഗങ്ങളും ബഹുഭാഷാകണ്ണികളും /വിവരണം ഉപതാളിൽ മാത്രം ഇടുക. ഈ ഫലകത്തിന്റെ ഉപതാളുകൾ. |