Template:Sambafoot/doc: Difference between revisions
update examples |
add URL |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> |
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> |
||
{{Template redirect|Sambafoot player}} |
|||
{{Uses Wikidata|P3668}} |
{{Uses Wikidata|P3668}} |
||
{{Tracks Wikidata|P3668}} |
{{Tracks Wikidata|P3668}} |
||
Line 36: | Line 37: | ||
: <kbd>[https://www.sambafoot.com/players/275-neymar https://www.sambafoot.com/'''players'''/{{Highlight|275-neymar}}]</kbd> |
: <kbd>[https://www.sambafoot.com/players/275-neymar https://www.sambafoot.com/'''players'''/{{Highlight|275-neymar}}]</kbd> |
||
: <kbd>[https://www.sambafoot.com/en/players/275-neymar https://www.sambafoot.com/'''en/players'''/{{Highlight|275-neymar}}]</kbd> |
: <kbd>[https://www.sambafoot.com/en/players/275-neymar https://www.sambafoot.com/'''en/players'''/{{Highlight|275-neymar}}]</kbd> |
||
: <kbd>[https://www.sambafoot.com/pt/jogadores/275-neymar https://www.sambafoot.com/'''pt/jogadores'''/{{Highlight|275-neymar}}]</kbd> |
: <kbd>[https://www.sambafoot.com/pt/jogadores/275-neymar https://www.sambafoot.com/'''pt/jogadores'''/{{Highlight|275-neymar}}]</kbd> (redirect) |
||
: <kbd>[https://www.sambafoot.com/br/jogadores/275-neymar https://www.sambafoot.com/'''br/jogadores'''/{{Highlight|275-neymar}}]</kbd> |
|||
: <kbd>[https://www.sambafoot.com/fr/joueurs/275-neymar https://www.sambafoot.com/'''fr/joueurs'''/{{Highlight|275-neymar}}]</kbd> |
: <kbd>[https://www.sambafoot.com/fr/joueurs/275-neymar https://www.sambafoot.com/'''fr/joueurs'''/{{Highlight|275-neymar}}]</kbd> |
||
: <kbd>[https://www.sambafoot.com/es/jugadores/275-neymar https://www.sambafoot.com/'''es/jugadores'''/{{Highlight|275-neymar}}]</kbd> |
: <kbd>[https://www.sambafoot.com/es/jugadores/275-neymar https://www.sambafoot.com/'''es/jugadores'''/{{Highlight|275-neymar}}]</kbd> |
||
Line 85: | Line 87: | ||
"label": "id", |
"label": "id", |
||
"aliases": ["1"], |
"aliases": ["1"], |
||
"description": "The |
"description": "The ID portion of the URL, such as current ID 275-neymar in https://www.sambafoot.com/players/275-neymar or former ID 4206_neymar in http://www.sambafoot.com/en/players/4206_neymar.html. This parameter is optional if Wikidata property P3668 exists, but required if not.", |
||
"type": "string", |
"type": "string", |
||
"required": false, |
"required": false, |
||
Line 93: | Line 95: | ||
"label": "name", |
"label": "name", |
||
"aliases": ["2"], |
"aliases": ["2"], |
||
"description": "The |
"description": "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", |
"type": "string", |
||
"required": false, |
"required": false, |
||
Line 111: | Line 113: | ||
* {{clc|Sambafoot template using old ID}} |
* {{clc|Sambafoot template using old ID}} |
||
* {{clc|Sambafoot template missing ID and not in Wikidata}} |
* {{clc|Sambafoot template missing ID and not in Wikidata}} |
||
== External links == |
|||
* [https://www.sambafoot.com/players Players page at Sambafoot.com] |
|||
<includeonly>{{sandbox other|| |
<includeonly>{{sandbox other|| |
Latest revision as of 19:52, 31 December 2022
This is a documentation subpage for Template:Sambafoot. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Template:Sambafoot displays an external link to an association football (soccer) player's profile at the Sambafoot.com website. It is intended for use in the external links section of an article.
Usage
[edit]- Named parameters
{{Sambafoot | id= ID }}
{{Sambafoot | id= ID | name= NAME }}
- Unnamed parameters
{{Sambafoot | ID }}
{{Sambafoot | ID | NAME }}
- Using Wikidata property
{{Sambafoot}}
{{Sambafoot | name= NAME }}
Examples
[edit]Named parameters
[edit]- Usage
* {{Sambafoot | id= 275-neymar | name= Neymar }}
* {{Sambafoot | id= 275-neymar | name= Neymar | old_id= 4206_neymar }}
* {{Sambafoot | id= 4206_neymar | name= Neymar }}
- Current URLs with new ID
- https://www.sambafoot.com/players/275-neymar
- https://www.sambafoot.com/en/players/275-neymar
- https://www.sambafoot.com/pt/jogadores/275-neymar (redirect)
- https://www.sambafoot.com/br/jogadores/275-neymar
- https://www.sambafoot.com/fr/joueurs/275-neymar
- https://www.sambafoot.com/es/jugadores/275-neymar
- Former URLs with old ID (until January 2021)
- http://www.sambafoot.com/en/players/4206_neymar.html (archived 2020-11-26)
- http://www.sambafoot.com/pt/jogadores/4206_neymar.html (archived 2020-12-04)
- http://www.sambafoot.com/fr/joueurs/4206_neymar.html (archived 2021-01-16)
- http://www.sambafoot.com/es/jugadores/4206_neymar.html (archived 2021-01-16)
Unnamed parameters
[edit]- Usage
* {{Sambafoot | 48_roberto_carlos | Roberto Carlos }}
- Output
-
- Roberto Carlos at Sambafoot (archived)
- Former URLs with old ID (until January 2021)
- http://www.sambafoot.com/en/players/48_roberto_carlos.html (archive 2020-09-18)
- http://www.sambafoot.com/pt/jogadores/48_roberto_carlos.html (archive 2020-01-13)
- http://www.sambafoot.com/fr/joueurs/48_roberto_carlos.html (archived 2021-01-15)
- http://www.sambafoot.com/es/jugadores/48_roberto_carlos.html (archived 2020-06-11)
- Former URLs with different ID (2009–2010)
- http://en.sambafoot.com/players/48_Roberto_Carlos.html (archive)
- http://br.sambafoot.com/jogadores/48_Roberto_Carlos.html (archive)
- http://fr.sambafoot.com/joueurs/48_Roberto_Carlos.html (archive)
- Former URLs with different ID (2007–2008)
- http://www.sambafoot.co.uk/players/48_Roberto_Carlos.html (archive)
- http://www.sambafoot.com.br/jogadores/48_Roberto_Carlos.html (archive)
- http://www.sambafoot.fr/joueurs/48_Roberto_Carlos.html (archive)
No parameters and Wikidata property not defined
[edit]- Usage
{{Sambafoot}}
- Output
- {{Sambafoot}} template missing ID and not present in Wikidata.
TemplateData
[edit]TemplateData for Sambafoot
This template displays an external link to an association football (soccer) player's profile at the Sambafoot.com website. It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
id | id 1 | The ID portion of the URL, such as current ID 275-neymar in https://www.sambafoot.com/players/275-neymar or former ID 4206_neymar in http://www.sambafoot.com/en/players/4206_neymar.html. This parameter is optional if Wikidata property P3668 exists, but required if not.
| String | optional |
name | name 2 | 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
[edit]- Category:Sambafoot template with ID different from Wikidata (184)
- Category:Sambafoot template with ID not in Wikidata (32)
- Category:Sambafoot template using old ID (696)
- Category:Sambafoot template missing ID and not in Wikidata (0)
External links
[edit]