Difference between revisions of "Template:90minut"
blackwiki>Zyxw m (Fixes for empty id/name parameters. Remove {{Trim|}} since {{#if:}} will do same thing. If Wikidata property has multiple values, only use the first one. using AWB) |
blackwiki>Zyxw (don't add categories for "same as Wikidata" or "using Wikidata") |
||
| Line 1: | Line 1: | ||
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P3605}} | {{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P3605}} | ||
| − | | [http://www.90minut.pl/kariera.php?id={{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|{{#property:P3605}}|sep=,}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at 90minut.pl {{pl icon}}<includeonly>{{EditAtWikidata|pid=P3605|{{{1|{{{id|}}}}}}}}</includeonly>{{WikidataCheck|property=P3605|value={{{1|{{{id|}}}}}}|category=90minut template with ID|namespaces=0 | + | | [http://www.90minut.pl/kariera.php?id={{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|{{#property:P3605}}|sep=,}} }} {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at 90minut.pl {{pl icon}}<includeonly>{{EditAtWikidata|pid=P3605|{{{1|{{{id|}}}}}}}}</includeonly>{{WikidataCheck|property=P3605|value={{{1|{{{id|}}}}}}|category=90minut template with ID|namespaces=0|nocatsame=1}} |
| <span class="error">{{[[Template:90minut|90minut]]}} template missing ID and not present in Wikidata.</span>{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:90minut template missing ID and not in Wikidata]]}} | | <span class="error">{{[[Template:90minut|90minut]]}} template missing ID and not present in Wikidata.</span>{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:90minut template missing ID and not in Wikidata]]}} | ||
Revision as of 22:35, 27 April 2019
{{{name}}} at 90minut.pl Template:Pl iconTemplate:WikidataCheck
Template:Uses Wikidata Template:Tracks Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).
Template:90minut displays an external link to an association football (soccer) player's profile at the 90minut.pl website. It is intended for use in the external links section of an article.
Contents
Usage
Unnamed parameters:
Named parameters:
Using Wikidata property P3605:
Examples
Unnamed parameters
URL:
Usage:
Output:
- Jerzy Dudek at 90minut.pl Template:Pl iconScript error: No such module "EditAtWikidata".Template:WikidataCheck
Named parameters
URL:
Usage:
Output:
- Miloš Krasić at 90minut.pl Template:Pl iconScript error: No such module "EditAtWikidata".Template:WikidataCheck
No parameters and Wikidata property not defined
Usage:
Output:
- Template:PAGENAMEBASE at 90minut.pl Template:Pl iconScript error: No such module "EditAtWikidata".Template:WikidataCheck
TemplateData
TemplateData for 90minut
This template displays an external link to an association football (soccer) player's profile at the 90minut.pl website. It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 392 is the ID portion of http://www.90minut.pl/kariera.php?id=392. This parameter is optional if Wikidata property P3605 exists, but required if not.
| Number | optional |
| name | name 2 | The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the player. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(footballer)" or "(soccer)".
| String | optional |
Tracking categories
- ID parameter exists
- Category:90minut template with ID different from Wikidata (0)
- Category:90minut template with ID not in Wikidata (0)
- ID parameter does not exist
| The above documentation is transcluded from Template:90minut/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |