Template:Constituency representative
This template prints the current elected representative of an electoral constituency.
Usage
[edit]Add {{Constituency representative|qid|party|date}}
to print inline the linked name of current elected representative of an electoral constituency specified by |qid=
. If the underlying page is of the required electoral constituency itself, then |qid=
may be omitted.
To take care of verifiability, the output is printed only if atleast a reference is present with the requested wikidata property.
Parameter
[edit]It uses three parameters as follows:
|1=
or|qid=
(optional, positional): If|1=
eithertitle of the page of required electoral constituency
or (QID) of the wikidata item of that constituency or if|qid=
(QID) of the required electoral constituency, then name of the elected representative of the given constituency is printed.|party=
(optional): Ify
,yes
or1
, then additionally prints the name of the associated political party.|party=
(optional): Ify
,yes
or1
, then additionally prints the date of election of the representative.
Description
[edit]If |1=
name of the page of electoral constituency
, it finds its (QRAW) value, otherwise it takes the (QRAW) value from |qid=
or positional |1=
, whichever is given (first in that order).
Then its property significant event (P793) along with its qualifier point in time (P585) gives the wikidata item of latest election event in that area.
On the latest election event wikidata item, successful candidate (P991) with qualifier electoral district (P768) = (QID) of given electoral constituency gives the name of the current representative of the constituency.
Political party of the representative is printed from member of political party (P102) property of the representative's wikidata item.
Date of election is printed from point in time (P585) property of the latest election event wikidata item.
Examples
[edit]{{Constituency representative|Panipat City Assembly constituency}}
produces: Parmod Kumar Vij[1]{{Constituency representative|Q15653667|party=y}}
produces: Parmod Kumar Vij[1] (BJP[2]){{Constituency representative|qid=Q15653667|party=y|date=y}}
produces: Parmod Kumar Vij[1] (BJP[2]) (since 5 October 2024[3])
- ^ a b c "Parmod Kumar Vij ने Varinder Kumar Shah को हराया, जानें किसे मिले कितने वोट". Aaj Tak. Retrieved 1 March 2025.
- ^ a b "Candidate Details". affidavit.
- ^ "General Election to Legislative Assembly of Haryana 2024". Election Commission of India. Retrieved 1 March 2025.