টেমপ্লেট:Election box candidate for alliance

উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে

|- class="vcard" | style="background-color: {{Template:{{{party}}}/meta/color}}; width: 5px;" | | class="org" style="width: 130px" | | class="fn" | {{{candidate}}} | style="text-align: right; margin-right: 0.5em" | | style="background: ; color: #2C2C2C; vertical-align: middle; font-size: smaller; text-align: center;" class="table-na" | | style="background: ; color: #2C2C2C; vertical-align: middle; font-size: smaller; text-align: center;" class="table-na" |

|-

টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]

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:

General Election 2005: Strangford
দল প্রার্থী ভোট % ±%
Labour Party (UK) Tony Blair ৯,৯৯৯ ৫০.০ +১০.০
Conservative Party (UK) Michael Howard ৯,৯৯৯ ৫০.০ +১০.০

However, this does rely on some additional setup for each party. See below for more details.

নতুন দৃশ্যমান সম্পাদনা দ্বারা ব্যবহৃত টেমপ্লেটের জন্য টেমপ্লেটডাটা নথি।

Election box candidate for alliance শীর্ষ

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.

টেমপ্লেট প্যারামিটার[টেমপ্লেটের উপাত্ত সম্পাদনা করুন]

এই টেমপ্লেটটি প্যারামিটারের একই সরলরেখা বিন্যাসন পছন্দ করে।

প্যারামিটারবিবরণধরনঅবস্থা
Partyparty

The article name of the relevant party

উদাহরণ
Labour Party (UK)
পাতার নামপ্রয়োজনীয়
Candidate namecandidate

বিবরণ নেই

স্ট্রিংপ্রয়োজনীয়
Number of votesvotes

বিবরণ নেই

উদাহরণ
9,999
সংখ্যাপ্রয়োজনীয়
% vote sharepercentage

বিবরণ নেই

উদাহরণ
50.0
সংখ্যাপ্রয়োজনীয়
Vote share changechange

Number of percentage points more/less than the previous election.

উদাহরণ
+10.0
স্ট্রিংপ্রয়োজনীয়

Party set up[সম্পাদনা]

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:

  • Template:ArticleName/meta/color
  • Template:ArticleName/meta/shortname

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.

Step by step instructions[সম্পাদনা]

Following are some easy step-by-step instructions for adding the two sub-pages:

  1. First, go to the article about the party that you want to set up. E.g. Labour Party (UK).
  2. Click on the discussion tab to get to article's talk page.
  3. Click on the edit this page tab to start editing the page.
  4. Add the text {{Election box metadata}} somewhere on the page. This will create a section on the page that provides links to the meta pages, however they don't exist yet.
  5. Save the page.
  6. Click on the red link to the page ArticleName/meta/color. As this page does not yet exist, this will take you directly to the page creation screen.
  7. Enter just the identifying color of the party. This can be a color name, such as red or an RGB code such as #FF0000. If you use an RGB code you will need to type it as <nowiki>#FF0000</nowiki> otherwise it will be treated as a list element.
  8. Put the text For Template:Election box in the Edit Summary field (otherwise someone will flag it for speedy deletion)!
  9. Save the page.
  10. Repeat the previous four steps for the ArticleName/meta/shortname sub-page.

Example[সম্পাদনা]

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.

উপ-টেমপ্লেট[সম্পাদনা]

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).

To include a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

শ্রেণী[সম্পাদনা]

এইচকার্ড সহ এইচটিএমএল ক্লাস ব্যবহার করে:

  • adr
  • agent
  • bday
  • birthplace
  • religion
  • 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 candidate[সম্পাদনা]

Standard[সম্পাদনা]

Winning[সম্পাদনা]

Inline[সম্পাদনা]


Election summary[সম্পাদনা]

For parties without an article on Wikipedia.


Election box gain/hold/loss etc[সম্পাদনা]

Election box majority[সম্পাদনা]

Election box turnout[সম্পাদনা]

Election box total and related[সম্পাদনা]

Election box end[সম্পাদনা]