Difference between revisions of "Template:LaPreferente/doc"
imported>Jonesey95 |
imported>Zyxw (note Wikidata property, update examples and URLs, add TemplateData, add category) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| + | <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> | ||
| + | {{Wikidata property|P7359}} | ||
| − | + | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [[association football]] ([[soccer]]) player's profile at [https://www.lapreferente.com LaPreferente.com]. | |
| − | |||
| − | : | ||
| − | <code><nowiki>{{ | + | == Usage == |
| − | : | + | ; Unnamed parameters |
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' }}</code> | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code> | ||
| + | |||
| + | ; Named parameters | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' }}</code> | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code> | ||
| + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' | accessdate= ''DATE'' }}</code> | ||
==Examples== | ==Examples== | ||
=== Unnamed parameters === | === Unnamed parameters === | ||
| − | + | ; Usage | |
| − | * <code>[ | + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 112727 | Cristian Salvador }}</code> |
| − | + | ||
| − | + | ; Output | |
| − | + | :* {{{{BASEPAGENAME}} | 112727 | Cristian Salvador }} | |
| + | |||
| + | ; Current URLs | ||
| + | : [https://www.lapreferente.com/index.php?IDjugador=112727 https://www.lapreferente.com/index.php?IDjugador={{hilite|112727}}] | ||
| + | : [https://www.lapreferente.com/J112727/.html https://www.lapreferente.com/J{{hilite|112727}}/.html] | ||
| + | : [https://www.lapreferente.com/J112727/cristian.html https://www.lapreferente.com/J{{hilite|112727}}/cristian.html] | ||
| + | : [https://www.lapreferente.com/J112727/real-sporting-b/cristian.html https://www.lapreferente.com/J{{hilite|112727}}/real-sporting-b/cristian.html] | ||
| − | + | ; Former URLs | |
| − | + | : <nowiki>http://</nowiki>www.lapreferente.net/index.php?IDjugador={{hilite|112727}} | |
| − | + | : <nowiki>http://</nowiki>www.lapreferente.net/J{{hilite|112727}}/.html | |
| − | + | : <nowiki>http://</nowiki>www.lapreferente.net/J{{hilite|112727}}/cristian.html ([https://web.archive.org/web/20170108191610/http://www.lapreferente.net/J112727/cristian.html archive]) | |
| − | + | : <nowiki>http://</nowiki>www.lapreferente.net/J{{hilite|112727}}/real-sporting-b/cristian.html ([https://web.archive.org/web/20170210135710/http://www.lapreferente.net/J112727/real-sporting-b/cristian.html archive]) | |
| − | |||
| − | |||
| − | |||
| − | |||
=== Named parameters === | === Named parameters === | ||
| − | + | ; Usage | |
| − | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= 211345 | name= Juan Moreno | accessdate= {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}</code> | |
| − | + | ||
| − | + | ; Output | |
| − | + | : {{{{BASEPAGENAME}} | id= 211345 | name= Juan Moreno | accessdate= {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }} | |
| + | |||
| + | ; Current URLs | ||
| + | : [https://www.lapreferente.com/index.php?IDjugador=211345 https://www.lapreferente.com/index.php?IDjugador={{hilite|211345}}] | ||
| + | : [https://www.lapreferente.com/J211345/.html https://www.lapreferente.com/J{{hilite|211345}}/.html] | ||
| + | : [https://www.lapreferente.com/J211345/juan-moreno.html https://www.lapreferente.com/J{{hilite|211345}}/juan-moreno.html] | ||
| + | : [https://www.lapreferente.com/J211345C6792/atletico-de-madrid/juan-moreno.html https://www.lapreferente.com/J{{hilite|211345}}C6792/atletico-de-madrid/juan-moreno.html] | ||
| + | |||
| + | ; Former URLs | ||
| + | : <nowiki>http://</nowiki>www.lapreferente.net/index.php?IDjugador={{hilite|211345}} | ||
| + | : <nowiki>http://</nowiki>www.lapreferente.net/J{{hilite|211345}}/.html | ||
| + | : <nowiki>http://</nowiki>www.lapreferente.net/J{{hilite|211345}}/juan-moreno.html | ||
| + | : <nowiki>http://</nowiki>www.lapreferente.net/J{{hilite|211345}}C6792/atletico-de-madrid/juan-moreno.html | ||
| + | |||
| + | === No parameters === | ||
| + | ; Usage | ||
| + | : <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}}}</code> | ||
| + | |||
| + | ; Output | ||
| + | :* {{ {{BASEPAGENAME}} }} | ||
| − | + | == TemplateData == | |
| − | + | {{TemplateData header}} | |
| − | + | <templatedata> | |
| − | + | { | |
| − | + | "description": "This template displays an external link to an association football (soccer) player's profile at LaPreferente.com. It is intended for use in the external links section of an article.", | |
| − | + | "params": { | |
| − | + | "id": { | |
| − | + | "label": "ID", | |
| − | + | "aliases": ["1"], | |
| + | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 112727 is the ID portion of https://www.lapreferente.com/index.php?IDjugador=112727 or https://www.lapreferente.com/J112727/real-sporting-b/cristian.html.", | ||
| + | "type": "number", | ||
| + | "required": true | ||
| + | }, | ||
| + | "name": { | ||
| + | "label": "Name", | ||
| + | "aliases": ["2"], | ||
| + | "description": "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)\".", | ||
| + | "type": "string", | ||
| + | "required": false, | ||
| + | "default": "{{PAGENAMEBASE}}" | ||
| + | }, | ||
| + | "accessdate": { | ||
| + | "label": "Access Date", | ||
| + | "description": "The \"accessdate\" parameter may be used to specify the date when the URL was last accessed. This parameter is optional.", | ||
| + | "type": "date", | ||
| + | "required": false | ||
| + | } | ||
| + | }, | ||
| + | "paramOrder": [ | ||
| + | "id", | ||
| + | "name", | ||
| + | "accessdate" | ||
| + | ] | ||
| + | } | ||
| + | </templatedata> | ||
| − | ==See also== | + | == See also == |
* [[Template:BDFutbol]] | * [[Template:BDFutbol]] | ||
* [[Template:BDFutbol manager]] | * [[Template:BDFutbol manager]] | ||
* [[Template:Futbolme]] | * [[Template:Futbolme]] | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
| + | <!-- Categories below this line; interwikis at Wikidata --> | ||
[[Category:Association football external link templates]] | [[Category:Association football external link templates]] | ||
[[Category:People and person external link templates]] | [[Category:People and person external link templates]] | ||
| − | </includeonly> | + | [[Category:External link templates with accessdate parameter]] |
| + | }}</includeonly> | ||
Revision as of 07:45, 24 March 2020
| 40px | This is a documentation subpage for Template:LaPreferente. It contains usage information, categories and other content that is not part of the original template page. |
Template:LaPreferente displays an external link to an association football (soccer) player's profile at LaPreferente.com.
Contents
Usage
- Unnamed parameters
{{LaPreferente | ID }}{{LaPreferente | ID | NAME }}
- Named parameters
{{LaPreferente | id= ID }}{{LaPreferente | id= ID | name= NAME }}{{LaPreferente | id= ID | name= NAME | accessdate= DATE }}
Examples
Unnamed parameters
- Usage
* {{LaPreferente | 112727 | Cristian Salvador }}
- Output
-
- Cristian Salvador at LaPreferente.com (in Spanish)Script error: No such module "EditAtWikidata".
- Current URLs
- https://www.lapreferente.com/index.php?IDjugador=112727
- https://www.lapreferente.com/J112727/.html
- https://www.lapreferente.com/J112727/cristian.html
- https://www.lapreferente.com/J112727/real-sporting-b/cristian.html
- Former URLs
- http://www.lapreferente.net/index.php?IDjugador=112727
- http://www.lapreferente.net/J112727/.html
- http://www.lapreferente.net/J112727/cristian.html (archive)
- http://www.lapreferente.net/J112727/real-sporting-b/cristian.html (archive)
Named parameters
- Usage
{{LaPreferente | id= 211345 | name= Juan Moreno | accessdate= 18 August 2026 }}
- Output
- Juan Moreno at LaPreferente.com (in Spanish). Retrieved 18 August 2026.Script error: No such module "EditAtWikidata".
- Current URLs
- https://www.lapreferente.com/index.php?IDjugador=211345
- https://www.lapreferente.com/J211345/.html
- https://www.lapreferente.com/J211345/juan-moreno.html
- https://www.lapreferente.com/J211345C6792/atletico-de-madrid/juan-moreno.html
- Former URLs
- http://www.lapreferente.net/index.php?IDjugador=211345
- http://www.lapreferente.net/J211345/.html
- http://www.lapreferente.net/J211345/juan-moreno.html
- http://www.lapreferente.net/J211345C6792/atletico-de-madrid/juan-moreno.html
No parameters
- Usage
* {{LaPreferente}}
- Output
-
- Template:PAGENAMEBASE at LaPreferente.com (in Spanish)Script error: No such module "EditAtWikidata".
TemplateData
TemplateData for LaPreferente
This template displays an external link to an association football (soccer) player's profile at LaPreferente.com. 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: 112727 is the ID portion of https://www.lapreferente.com/index.php?IDjugador=112727 or https://www.lapreferente.com/J112727/real-sporting-b/cristian.html. | Number | required |
| 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 |
| Access Date | accessdate | The "accessdate" parameter may be used to specify the date when the URL was last accessed. This parameter is optional. | Date | optional |
See also