Difference between revisions of "Template:Eduskunta/doc"
Jump to navigation
Jump to search
imported>Renamed user a2vv12zt2i m (ce) |
imported>Zyxw m (module note) |
||
(One intermediate revision by one other user not shown) | |||
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}}). | + | 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> | ||
− | + | all produce the same result in the MP's article (the first example works only if the MP ID is in Wikidata): | |
− | |||
* {{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== | ||
Line 25: | 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]] | ||
− | |||
− | |||
}}</includeonly> | }}</includeonly> |
Latest revision as of 04:27, 10 May 2019
![]() | This is a documentation subpage for Template:Eduskunta. It contains usage information, categories and other content that is not part of the original template page. |
Template:Uses Wikidata Template:Tracks Wikidata
![]() | This template uses Lua: |
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
- Category:Finnish MP ID not in Wikidata (0)
- Category:Finnish MP ID different from Wikidata (0)
- Category:Finnish MP ID same as Wikidata (0)
- Category:Eduskunta template with no id set (exists in template, not created)