Difference between revisions of "Template:ForaDeJogo manager/doc"
imported>Zyxw (documentation and categories moved from main template) |
imported>Zyxw (update documentation and examples, add TemplateData, note use of Wikidata property P3661 if no "id".) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
| + | {{Uses Wikidata|P3661}} | ||
| + | {{Lua|Module:EditAtWikidata}} | ||
| + | |||
| + | '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [[association football]] ([[soccer]]) coach or manager's profile at [https://www.foradejogo.net/ ForaDeJogo.net]. | ||
== Usage == | == Usage == | ||
| − | < | + | Unnamed parameters: |
| − | + | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> }} | |
| + | : {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>NAME</var> }} | ||
| + | |||
| + | Named parameters: | ||
| + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> }} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> }} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> | accessdate{{=}} <var>ACCESS DATE</var> }} | ||
| + | |||
| + | Using [[Wikidata]] property [[d:Property:P3661|P3661]]: | ||
| + | : {{tlcw|{{BASEPAGENAME}}}} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }} | ||
| + | : {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> | accessdate{{=}} <var>ACCESS DATE</var> }} | ||
| + | |||
| + | == Examples == | ||
| + | |||
| + | === Unnamed parameters === | ||
| + | ''URL:'' | ||
| + | : <tt>[https://www.foradejogo.net/manager.php?manager=211&language=2 https://www.foradejogo.net/manager.php?manager={{Hilite|211}}&language=2]</tt> | ||
| + | ''Usage:'' | ||
| + | : {{tlcw|{{BASEPAGENAME}} | 211 | Toni }} | ||
| + | ''Output:'' | ||
| + | : {{{{BASEPAGENAME}} | 211 | Toni }} | ||
| + | |||
| + | === Named parameters === | ||
| + | ''URL:'' | ||
| + | : <tt>[https://www.foradejogo.net/manager.php?manager=10439&language=2 https://www.foradejogo.net/manager.php?manager={{Hilite|10439}}&language=2]</tt> | ||
| + | ''Usage:'' | ||
| + | : {{tlcw|{{BASEPAGENAME}} | id{{=}} 10439 | name{{=}} Daniel Kenedy | accessdate{{=}} {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }} | ||
| + | ''Output:'' | ||
| + | : {{{{BASEPAGENAME}} | id= 10439 | name= Daniel Kenedy | accessdate= {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }} | ||
| + | |||
| + | === No parameters and Wikidata property not defined === | ||
| + | ''Usage:'' | ||
| + | : {{tlcw|{{BASEPAGENAME}}}} | ||
| + | ''Output:'' | ||
| + | : {{{{BASEPAGENAME}}<!-- -->}} | ||
| − | + | == TemplateData == | |
| − | + | {{TemplateData header}} | |
| + | <templatedata> | ||
| + | { | ||
| + | "description": "This template displays an external link to an association football (soccer) coach or manager's profile at ForaDeJogo.net.", | ||
| + | "params": { | ||
| + | "id": { | ||
| + | "label": "id", | ||
| + | "aliases": ["1"], | ||
| + | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: 10439 is the ID portion of https://www.foradejogo.net/manager.php?manager=10439&language=2. This parameter is optional if Wikidata property P3661 exists, but required if not.", | ||
| + | "type": "number", | ||
| + | "required": false, | ||
| + | "default": "Wikidata property P3661" | ||
| + | }, | ||
| + | "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": "accessdate", | ||
| + | "aliases": ["access-date"], | ||
| + | "description": "The \"accessdate\" or \"access-date\" parameter may be used to specify the date when the ForaDeJogo profile was last accessed. It allows the template to be used as a reference, rather than as an external link. This parameter is optional.", | ||
| + | "type": "date", | ||
| + | "required": false | ||
| + | } | ||
| + | }, | ||
| + | "paramOrder": [ | ||
| + | "id", | ||
| + | "name", | ||
| + | "accessdate" | ||
| + | ] | ||
| + | } | ||
| + | </templatedata> | ||
==See also== | ==See also== | ||
| Line 16: | Line 90: | ||
[[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]] | ||
| − | + | [[Category:External link templates using Wikidata]] | |
}}</includeonly> | }}</includeonly> | ||
Revision as of 05:40, 29 March 2017
| 40px | This is a documentation subpage for Template:ForaDeJogo manager. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | This template uses Lua: |
Template:ForaDeJogo manager displays an external link to an association football (soccer) coach or manager's profile at ForaDeJogo.net.
Contents
Usage
Unnamed parameters:
Named parameters:
Using Wikidata property P3661:
Examples
Unnamed parameters
URL:
Usage:
Output:
- Toni manager stats at ForaDeJogoScript error: No such module "EditAtWikidata".
Named parameters
URL:
Usage:
Output:
- Daniel Kenedy manager stats at ForaDeJogo. Retrieved 20 August 2026.Script error: No such module "EditAtWikidata".
No parameters and Wikidata property not defined
Usage:
Output:
- Template:PAGENAMEBASE manager stats at ForaDeJogoScript error: No such module "EditAtWikidata".
TemplateData
TemplateData for ForaDeJogo manager
This template displays an external link to an association football (soccer) coach or manager's profile at ForaDeJogo.net.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 10439 is the ID portion of https://www.foradejogo.net/manager.php?manager=10439&language=2. This parameter is optional if Wikidata property P3661 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 |
| accessdate | accessdate access-date | The "accessdate" or "access-date" parameter may be used to specify the date when the ForaDeJogo profile was last accessed. It allows the template to be used as a reference, rather than as an external link. This parameter is optional. | Date | optional |
See also