Template:BoxRec/doc
This is a documentation subpage for Template:BoxRec. It contains usage information, categories and other content that is not part of the original template page. |
This template tracks the Wikidata property: Lua error in Module:Uses_Wikidata at line 13: attempt to index field 'wikibase' (a nil value). |
This template uses Lua: |
Template:BoxRec displays an external link to a professional boxer's page at the BoxRec website (boxrec.com). It is intended for use in the external links section of an article.
Usage
Unnamed parameters:
{{BoxRec | ID }}
{{BoxRec | ID | NAME }}
Named parameters:
{{BoxRec | id= ID }}
{{BoxRec | id= ID | name= NAME }}
{{BoxRec | id= ID | archive= NUMBER }}
{{BoxRec | id= ID | name= NAME | archive= NUMBER }}
Using Wikidata property (P1967):
{{BoxRec}}
{{BoxRec | name= NAME }}
{{BoxRec | archive= NUMBER }}
{{BoxRec | name= NAME | archive= NUMBER }}
Examples
Unnamed parameters
URLs:
Usage:
* {{BoxRec | 180 | Muhammad Ali }}
Output:
Named parameters
URLs:
Usage:
* {{BoxRec | id= 9027 | name= Joe Louis | archive= 20170224101131 }}
Output:
No parameters and Wikidata property not defined
Usage:
* {{BoxRec}}
Output:
- [[boxrec:{{#property:P1967}} | Professional boxing record for BoxRec/doc]] from BoxRec
Instructions
- Go to the BoxRec website and enter the boxer's name in the search box.
- On the search results page, click the correct link for the boxer's page.
- The page URL should look like
http://boxrec.com/boxer/ID
orhttp://boxrec.com/en/boxer/ID
, whereID
is the ID number for the boxer. - Add one of the following to the external links section of the boxer's Wikipedia article:
* {{BoxRec|ID}}
* {{BoxRec|ID|NAME}}
- where
ID
is the boxer's ID number from the URL - and
NAME
is the boxer's name. If the name is not specified, the template will display the Wikipedia article name, without any disambiguation such as "(boxer)".
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 BoxRec
<templatedata> {
"description": "This template displays an external link to a professional boxer's page at the BoxRec website (boxrec.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: 180 is the ID portion of http://boxrec.com/boxer/180 or http://boxrec.com/en/boxer/180. This parameter is optional if Wikidata property P1967 exists, but required if not.", "type": "number", "required": false, "default": "Wikidata property P1967" }, "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 boxer. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as \"(boxer)\".", "type": "string", "required": false, "default": "BoxRec/doc" }, "archive": { "label": "archive", "description": "Number representing the date/time in an Internet Archive URL, such as 20170224101131 in https://web.archive.org/web/20170224101131/http://boxrec.com/boxer/9027.", "type": "number", "required": false } }, "paramOrder": [ "id", "name", "archive" ]
} </templatedata>
Tracking categories
- "id" parameter exists
- Category:BoxRec template with ID same as Wikidata (0)
- Category:BoxRec template with ID different from Wikidata (0)
- Category:BoxRec template with ID not in Wikidata (1)
- "id" parameter does not exist
- Category:BoxRec template using Wikidata (6)
- Category:BoxRec template missing ID and not in Wikidata (0)
See also