Difference between revisions of "Template:Eduskunta/doc"

From blackwiki
Jump to navigation Jump to search
imported>Renamed user a2vv12zt2i
m (ce)
imported>Kyykaarme
(added instructions about wikidata use, User:Manelolo: it does work also without parameters if the ID is in wikidata)
Line 4: Line 4:
 
{{Tracks Wikidata|P2181}}
 
{{Tracks Wikidata|P2181}}
  
This template links to the list of Finnish MPs (1907 –) maintained by the Parliament of Finland ({{lang-fi|Eduskunta}}). Parameter 1 (id) required.<br />
+
This template links to the list of Finnish MPs (1907 –) maintained by the Parliament of Finland ({{lang-fi|Eduskunta}}).<br />
 +
 
 +
The number used as a parameter is found in the URL of the MP's profile on [http://www.eduskunta.fi eduskunta.fi], for example the number 911594 in <code><nowiki>https://www.eduskunta.fi/EN/kansanedustajat/Pages/911594.aspx</nowiki></code>.
 +
 
 +
If the ID number for the MP is in Wikidata ({{Wikidata property link|P2181}}, the template works also without any parameters.
  
 
== Usage ==
 
== Usage ==
 +
These example codes
 
<pre>
 
<pre>
 +
* {{Eduskunta}}
 
* {{Eduskunta|910216}}
 
* {{Eduskunta|910216}}
 
* {{Eduskunta|id=910216|name=Pekka Aakula}}
 
* {{Eduskunta|id=910216|name=Pekka Aakula}}
 
</pre>
 
</pre>
  
produces
+
all produce the same result in the MP's article (the first example works only if the MP ID is in Wikidata):
* {{Eduskunta|910216}}
 
 
* {{Eduskunta|id=910216|name=Pekka Aakula}}
 
* {{Eduskunta|id=910216|name=Pekka Aakula}}
 +
 +
If the template is used in another article, the parameters ''id'' and ''name'' are required to produce the right result.
  
 
==Tracking categories==
 
==Tracking categories==

Revision as of 18:07, 16 March 2018

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