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:
दल | उम्मीदवार | मत | % | ± | |
---|---|---|---|---|---|
लेबर | Tony Blair | 9,999 | 50.0 | +10.0 | |
कंजर्वेटिव | Michael Howard | 9,999 | 50.0 | +10.0 |
However, this does rely on some additional setup for each party. See below for more details.
It is necessary to do some a little bit of setup for each party in the election. This involves creating two simple templates for the article that you will be linking to (e.g. Labour Party (UK)). These contain the identifying color of the party and the short name that will be used as the link caption (as the full Wikipedia page name will probably not be suitable).
The two templates that you will need to create are:
The color template will just contain the party's identifying color (e.g. red), and the shortname template will just contain the name of the party as you want it to appear on the link (e.g. Labour).
You should also add something to the main article's talk page to indicate that these two templates exist. There is a template Template:Election box metadata that can be used to do this.
Following are some easy step-by-step instructions for adding the two sub-pages:
ArticleName/meta/color
. As this page does not yet exist, this will take you directly to the page creation screen.ArticleName/meta/shortname
sub-page.इस टेम्पलेट द्वारा उत्पादित एचटीएमएल मार्कअप में एचसीएडी माइक्रोफॉर्मैट शामिल है, जो व्यक्ति के विवरण कंप्यूटर द्वारा पार्स करने योग्य बनाता है, या तो विकिपीडिया में लेखों को कैटलॉग करने के लिए स्वचालित रूप से कार्य करता है या पाठक द्वारा संचालित ब्राउज़र टूल के माध्यम से (उदाहरण के लिए) विषय को किसी पते पर जोड़ता है किताब। विकिपीडिया पर माइक्रोफॉर्मेट्स के उपयोग के बारे में अधिक जानकारी के लिए, कृपया माइक्रोफॉर्मेट प्रोजेक्ट देखें।
जन्मतिथि ("बडे") जानकारी केवल माइक्रोफ़ॉर्मेट में शामिल की जाएगी अगर {{Birth date}} या {{Birth date and age}} (वैकल्पिक रूप से) {{birth-date}} infobox में उपयोग किया जाता है। (यदि तारीख १५८३ से पहले है तो इनका उपयोग न करें)। इनका उपयोग करने के बारे में सावधान रहें यदि व्यक्ति अभी भी जीवित है, प्रति डब्ल्यूपी: डीओबी। एक यूआरएल शामिल करने के लिए, उपयोग करें {{URL}}. कृपया इन उप-टेम्पलेट्स के उदाहरणों को न हटाएं।
कृपया इन वर्गों का नाम बदलें या हटाएं और न ही उन घोंसले वाले तत्वों को ध्वस्त करें जो उनका उपयोग करते हैं।
ऊपर दिए गए निर्देश साँचा:Election box candidate with party link/doc से लिए गए है।(संपादन | इतिहास) संपादक इस साँचे के प्रयोगस्थल व प्रयोग पन्नों में प्रयोग कर सकते है। sandbox (create) and testcases (create) pages. कृपया /doc उपपृष्ठ पर श्रेणियाँ व विकियों के बिच की कड़ियाँ जोड़े। इस साँचे के उपपृष्ठ। |