Difference between revisions of "Template:Eduskunta"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(use PAGENAMEBASE)
imported>Pigsonthewing
(use wikidata)
Line 1: Line 1:
<includeonly>[http://www.eduskunta.fi/triphome/bin/hx5000.sh?{hnro}={{{id|{{{1}}}}}}&amp;{kieli}=su&amp;{haku}=kaikki {{{name|{{PAGENAMEBASE}}}}}]. ''Edustajamatrikkeli. Kansanedustajat 1907 &ndash;''. Eduskunta (Parliament of Finland). {{fi icon}}</includeonly><noinclude>
+
<includeonly>[http://www.eduskunta.fi/triphome/bin/hx5000.sh?{hnro}={{Trim|{{{1|{{{id|{{#property:P2181|[[Category:Eduskunta template with no id set]]}}}}}}}}}}&amp;{kieli}=su&amp;{haku}=kaikki {{{name|{{PAGENAMEBASE}}}}}]. ''Edustajamatrikkeli. Kansanedustajat 1907 &ndash;''. Eduskunta (Parliament of Finland). {{fi icon}}</includeonly><noinclude>{{Documentation}}</noinclude>
This template links to the list of Finnish MPs (1907 –) maintained by the Parliament of Finland.<br />
 
Usage:
 
<pre>
 
* {{Eduskunta|910216}}
 
* {{Eduskunta|id=910216|name=Pekka Aakula}}
 
</pre>
 
produces
 
* {{Eduskunta|910216}}
 
* {{Eduskunta|id=910216|name=Pekka Aakula}}
 
 
 
[[Category:People and person external link templates]]
 
</noinclude>
 

Revision as of 16:52, 27 July 2016

50px Template documentation[view] [edit] [history] [purge]

Template:Uses Wikidata Template:Tracks Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).

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

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

Tracking categories