ਫਰਮਾ:Election box candidate with party link/doc

ਵਿਕੀਪੀਡੀਆ, ਇੱਕ ਅਜ਼ਾਦ ਗਿਆਨਕੋਸ਼ ਤੋਂ

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

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

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.

ਫਰਮੇ ਦੇ ਮਾਪਦੰਡ

This template prefers inline formatting of parameters.

ਮਾਪਦੰਡਵੇਰਵਾਕਿਸਮਦਰਜਾ
Partyparty

The article name of the relevant party

Example
Labour Party (UK)
Page namerequired
Candidate namecandidate

no description

Stringrequired
Number of votesvotes

no description

Example
9,999
Numberrequired
% vote sharepercentage

no description

Example
50.0
Numberrequired
Vote share changechange

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

Example
+10.0
Stringrequired

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[ਸੋਧੋ]

ਇਸ ਟੈਪਲੇਟ ਦੁਆਰਾ ਬਣਾਏ HTML ਮਾਰਕਅੱਪ ਨੂੰ ਇੱਕ ਸ਼ਾਮਿਲ ਹੈ hCard ਸੰਪਰਕ ਵੇਰਵੇ ਪ੍ਰਕਾਸ਼ਿਤ ਕਰਨ ਲਈ ਇਕ ਮਾਈਕ੍ਰੋਫਾਰਮੈਟ ਹੈ ਜੋ ਕਿ ਵਿਅਕਤੀਆਂ ਦੇ ਵੇਰਵਿਆਂ ਨੂੰ ਕੰਪਿਊਟਰਾਂ ਦੁਆਰਾ ਪਾਰਸ ਕਰਨ ਯੋਗ ਬਣਾਉਂਦਾ ਹੈ, ਜਾਂ ਤਾਂ ਕਿਸੇ ਵਿਕ੍ਰੇਤਾ ਦੁਆਰਾ ਜਾਂ ਕਿਸੇ ਪਾਠਕ ਦੁਆਰਾ ਚਲਾਇਆ ਗਿਆ ਇੱਕ ਬ੍ਰਾਉਜ਼ਰ ਸਾਧਨ ਦੁਆਰਾ (ਜਿਵੇਂ ਕਿ) ਇੱਕ ਐਡਰੈੱਸ ਬੁੱਕ ਜਾਂ ਡਾਟਾਬੇਸ ਨਾਲ ਸਬੰਧਤ ਵਿਸ਼ਾ ਜੋੜੋ ਵਿਕੀਪੀਡੀਆ 'ਤੇ ਮਾਇਕ੍ਰੋਫਾਰਮੈਟਾਂ ਦੀ ਵਰਤੋਂ ਬਾਰੇ ਵਧੇਰੇ ਜਾਣਕਾਰੀ ਲਈ, ਕਿਰਪਾ ਕਰਕੇ ਮਾਈਕ੍ਰੋਫੋਰਮੈਟ ਪ੍ਰਾਜੈਕਟ ਨੂੰ ਦੇਖੋ.

ਉਪ-ਖਾਕੇ[ਸੋਧੋ]

ਮਿਤੀ ਦਾ ਜਨਮ ("ਬੀਡ") ਜਾਣਕਾਰੀ ਕੇਵਲ ਮਾਈਕਰੋਫਾਰਮੈਟ ਵਿਚ ਸ਼ਾਮਲ ਕੀਤੀ ਜਾਵੇਗੀ ਜੇ {{birth date}}, ਜਾਂ {{birth date and age}} ਇਨਫੌਬਕਸ ਵਿਚ ਵਰਤੇ ਜਾਂਦੇ ਹਨ. (ਇਹਨਾਂ ਦੀ ਵਰਤੋਂ ਨਾ ਕਰੋ ਜੇ 1583 ਤੋਂ ਪਹਿਲਾਂ ਦੀ ਤਾਰੀਖ ਹੋਵੇ). ਇਹਨਾਂ ਨੂੰ ਵਰਤਣ ਬਾਰੇ ਸਾਵਧਾਨ ਰਹੋ ਜੇਕਰ ਵਿਅਕਤੀ ਅਜੇ ਵੀ ਜੀਉਂਦਾ ਹੈ, ਪ੍ਰਤੀ ਨਿੱਜੀ ਜਾਣਕਾਰੀ ਦੀ ਗੋਪਨੀਯਤਾ ਅਤੇ ਪ੍ਰਾਇਮਰੀ ਸਰੋਤਾਂ ਦੀ ਵਰਤੋਂ. URL ਨੂੰ ਸ਼ਾਮਲ ਕਰਨ ਲਈ, ਵਰਤੋਂ {{URL}}.

ਕਿਰਪਾ ਕਰਕੇ ਇਹਨਾਂ ਉਪ-ਟੈਪਲੇਟਾਂ ਦੀਆਂ ਮਿਸਾਲਾਂ ਨੂੰ ਨਾ ਹਟਾਓ.

ਕਲਾਸਾਂ[ਸੋਧੋ]

hCard HTML ਕਲਾਸਾਂ ਦੀ ਵਰਤੋਂ ਵੀ ਕਰਦਾ ਹੈ:

  • adr
  • ਏਜੰਟ
  • bday
  • ਜਨਮ ਸਥਾਨ
  • ਸ਼੍ਰੇਣੀ
  • ਦੇਸ਼-ਨਾਮ
  • ਮੌਤ ਦੀ ਸਜ਼ਾ
  • ਮੌਤ ਸਥਾਨ
  • ਐਕਸਟੈਂਡਡ ਐਡਰੈੱਸ
  • ਖਾਨਦਾਨ ਦਾ ਨਾ
  • fn (ਲੋੜੀਂਦੀ)
  • ਸਨਮਾਨ-ਅਗੇਤਰ
  • ਮਾਣ ਸਤਿਕਾਰ
  • ਲੇਬਲ
  • ਇਲਾਕੇ
  • ਉਪਨਾਮ
  • ਨੋਟ ਕਰੋ
  • org
  • ਭੂਮਿਕਾ
  • url
  • vcard

ਕ੍ਰਿਪਾ ਕਰਕੇ ਇਹਨਾਂ ਸ਼੍ਰੇਣੀਆਂ ਦਾ ਨਾਂ ਨਾ ਬਦਲੋ ਜਾਂ ਨਾ ਹਟਾਓ ਅਤੇ ਉਹਨਾਂ ਦਾ ਇਸਤੇਮਾਲ ਕਰਨ ਵਾਲੇ ਨੇਸਟਡ ਤੱਤਾਂ ਨੂੰ ਨਾ ਤੋੜੋ.

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[ਸੋਧੋ]