Difference between revisions of "Template:Eduskunta/doc"

From blackwiki
Jump to navigation Jump to search
imported>Kyykaarme
(added instructions about wikidata use, User:Manelolo: it does work also without parameters if the ID is in wikidata)
imported>Zyxw
m (module note)
 
Line 3: Line 3:
 
{{Uses Wikidata|P2181}}
 
{{Uses Wikidata|P2181}}
 
{{Tracks Wikidata|P2181}}
 
{{Tracks Wikidata|P2181}}
 +
{{Lua|Module:EditAtWikidata|Module:WikidataCheck}}
  
 
This template links to the list of Finnish MPs (1907 –) maintained by the Parliament of Finland ({{lang-fi|Eduskunta}}).<br />
 
This template links to the list of Finnish MPs (1907 –) maintained by the Parliament of Finland ({{lang-fi|Eduskunta}}).<br />
Line 32: Line 33:
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:People and person external link templates]]
 
[[Category:People and person external link templates]]
 +
[[Category:External link templates using Wikidata]]
 
[[Category:Templates that add a tracking category]]
 
[[Category:Templates that add a tracking category]]
 
[[Category:External link templates using Wikidata]]
 
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 04:27, 10 May 2019

Template:Uses Wikidata Template:Tracks Wikidata

This template links to the list of Finnish MPs (1907 –) maintained by the Parliament of Finland (Finnish: Eduskunta).

The number used as a parameter is found in the URL of the MP's profile on eduskunta.fi, for example the number 911594 in https://www.eduskunta.fi/EN/kansanedustajat/Pages/911594.aspx.

If the ID number for the MP is in Wikidata (Template:Wikidata property link, the template works also without any parameters.

Usage

These example codes

* {{Eduskunta}}
* {{Eduskunta|910216}}
* {{Eduskunta|id=910216|name=Pekka Aakula}}

all produce the same result in the MP's article (the first example works only if the MP ID is in Wikidata):

  • Pekka Aakula. Edustajamatrikkeli. Kansanedustajat 1907 –. Eduskunta (Parliament of Finland). (in Finnish)Script error: No such module "EditAtWikidata".Template:WikidataCheck

If the template is used in another article, the parameters id and name are required to produce the right result.

Tracking categories