Difference between revisions of "Template:ForaDeJogo manager/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(update documentation and examples, add TemplateData, note use of Wikidata property P3661 if no "id".)
imported>Zyxw
(misc updates + see also)
Line 4: Line 4:
 
{{Lua|Module:EditAtWikidata}}
 
{{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].
+
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to an [[association football]] (soccer) coach or manager's page at [https://www.foradejogo.net/ ForaDeJogo.net].
  
 
== Usage ==
 
== Usage ==
Line 49: Line 49:
 
<templatedata>
 
<templatedata>
 
{
 
{
   "description": "This template displays an external link to an association football (soccer) coach or manager's profile at ForaDeJogo.net.",
+
   "description": "This template displays an external link to an association football (soccer) coach or manager's page at ForaDeJogo.net.",
 
   "params": {
 
   "params": {
 
     "id": {
 
     "id": {
 
       "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: 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.",
+
       "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",
 
       "type": "number",
 
       "required": false,
 
       "required": false,
Line 62: Line 62:
 
       "label": "name",
 
       "label": "name",
 
       "aliases": ["2"],  
 
       "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)\".",
+
       "description": "The \"name\" parameter (or unnamed parameter \"2\") may be used to specify the link text, which should be the name of the coach or manager. 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 68: Line 68:
 
     },
 
     },
 
     "accessdate": {
 
     "accessdate": {
       "label": "accessdate",
+
       "label": "access date",
 
       "aliases": ["access-date"],  
 
       "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.",
 
       "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.",
Line 85: Line 85:
 
==See also==
 
==See also==
 
* [[Template:ForaDeJogo]]
 
* [[Template:ForaDeJogo]]
 +
; Other coach/manager templates:
 +
* [[Template:BDFutbol manager]]
 +
* [[Template:TheFinalBall manager]]
 +
* [[Template:Soccerbase manager]]
 +
* [[Template:Soccerway coach]]
 +
* [[Template:TFF coach]]
 +
* [[Template:UEFA coach]]
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||

Revision as of 19:32, 29 May 2017

Template:Uses Wikidata

Template:ForaDeJogo manager displays an external link to an association football (soccer) coach or manager's page at ForaDeJogo.net.

Usage

Unnamed parameters:

Template:Tlcw
Template:Tlcw

Named parameters:

Template:Tlcw
Template:Tlcw
Template:Tlcw

Using Wikidata property P3661:

Template:Tlcw
Template:Tlcw
Template:Tlcw

Examples

Unnamed parameters

URL:

https://www.foradejogo.net/manager.php?manager=211&language=2

Usage:

Template:Tlcw

Output:

Toni manager stats at ForaDeJogoScript error: No such module "EditAtWikidata".

Named parameters

URL:

https://www.foradejogo.net/manager.php?manager=10439&language=2

Usage:

Template:Tlcw

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:

Template:Tlcw

Output:

Template:PAGENAMEBASE manager stats at ForaDeJogoScript error: No such module "EditAtWikidata".

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for ForaDeJogo manager

This template displays an external link to an association football (soccer) coach or manager's page at ForaDeJogo.net.

Template parameters

ParameterDescriptionTypeStatus
idid 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.

Default
Wikidata property P3661
Numberoptional
namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the coach or manager. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(footballer)" or "(soccer)".

Default
{{PAGENAMEBASE}}
Stringoptional
access dateaccessdate 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.

Dateoptional

See also

Other coach/manager templates