Difference between revisions of "Template:Futbolme/doc"
imported>Zyxw (update documentation and examples, add TemplateData) |
imported>Zyxw (update examples) |
||
| Line 16: | Line 16: | ||
=== Unnamed parameters === | === Unnamed parameters === | ||
| − | ; | + | ; URLs |
| − | : <kbd>[https://futbolme.com/jugador.php?id= | + | : <kbd>[https://futbolme.com/jugador.php?id=14664 https://futbolme.com/jugador.php?id={{Hilite|14664}}]</kbd> |
| + | : <kbd>[https://futbolme.com/resultados-directo/jugador/dani-gail/14664 https://futbolme.com/resultados-directo/jugador/dani-gail/{{Hilite|14664}}]</kbd> | ||
; Usage | ; Usage | ||
| − | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | 14664 | Dani Gail (Daniel Gail Bricios) }}</code> |
; Output | ; Output | ||
| − | : {{{{BASEPAGENAME}} | | + | : {{{{BASEPAGENAME}} | 14664 | Dani Gail (Daniel Gail Bricios) }} |
=== Named parameters === | === Named parameters === | ||
| − | ; | + | ; URLs |
| − | : <kbd>[https://futbolme.com/jugador.php?id= | + | : <kbd>[https://futbolme.com/jugador.php?id=15301 https://futbolme.com/jugador.php?id={{Hilite|15301}}]</kbd> |
| + | : <kbd>[https://futbolme.com/resultados-directo/jugador/roldan/15301 https://futbolme.com/resultados-directo/jugador/roldan/{{Hilite|15301}}]</kbd> | ||
; Usage | ; Usage | ||
| − | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= | + | : <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= 15301 | name= Roldán (Antonio Gómez Roldán) }}</code> |
; Output | ; Output | ||
| − | : {{{{BASEPAGENAME}} | id= | + | : {{{{BASEPAGENAME}} | id= 15301 | name= Roldán (Antonio Gómez Roldán) }} |
| − | + | ||
== TemplateData == | == TemplateData == | ||
{{TemplateData header}} | {{TemplateData header}} | ||
| Line 44: | Line 46: | ||
"label": "id", | "label": "id", | ||
"aliases": ["1"], | "aliases": ["1"], | ||
| − | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: | + | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 14664 is the ID portion of https://futbolme.com/jugador.php?id=14664 or https://futbolme.com/resultados-directo/jugador/dani-gail/14664.", |
"type": "number", | "type": "number", | ||
"required": true | "required": true | ||
Revision as of 08:38, 31 August 2017
| 40px | This is a documentation subpage for Template:Futbolme. It contains usage information, categories and other content that is not part of the original template page. |
Template:Futbolme displays an external link to an association football (soccer) player's profile at Futbolme.com. It is intended for use in the external links section of an article.
Usage
- Unnamed parameters
{{Futbolme | ID }}{{Futbolme | ID | NAME }}
- Named parameters
{{Futbolme | id= ID }}{{Futbolme | id= ID | name= NAME }}
Examples
Unnamed parameters
- URLs
- https://futbolme.com/jugador.php?id=14664
- https://futbolme.com/resultados-directo/jugador/dani-gail/14664
- Usage
{{Futbolme | 14664 | Dani Gail (Daniel Gail Bricios) }}
- Output
- Dani Gail (Daniel Gail Bricios) at Futbolme (in Spanish)Script error: No such module "EditAtWikidata".
Named parameters
- URLs
- https://futbolme.com/jugador.php?id=15301
- https://futbolme.com/resultados-directo/jugador/roldan/15301
- Usage
{{Futbolme | id= 15301 | name= Roldán (Antonio Gómez Roldán) }}
- Output
- Roldán (Antonio Gómez Roldán) at Futbolme (in Spanish)Script error: No such module "EditAtWikidata".
TemplateData
TemplateData for Futbolme
This template displays an external link to an association football (soccer) player's profile at Futbolme.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: 14664 is the ID portion of https://futbolme.com/jugador.php?id=14664 or https://futbolme.com/resultados-directo/jugador/dani-gail/14664. | 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 |
See also