Template:WBF/doc
This is a documentation subpage for Template:WBF. It contains usage information, categories and other content that is not part of the original template page. |
This template is a Citation Style 1 wrapper template based on {{Cite web}}. For centralised Citation Style 1 discussions, see Help talk:Citation Style 1. |
This template uses Lua: |
This template uses the Wikidata property: Lua error in Module:Uses_Wikidata at line 13: attempt to index field 'wikibase' (a nil value). |
This template tracks the Wikidata property: Lua error in Module:Uses_Wikidata at line 13: attempt to index field 'wikibase' (a nil value). |
Template:WBF displays an external link to a contract bridge player's international record at the website of the World Bridge Federation (WBF), which is the international governing body for contract bridge. The template is usually placed in the "External links" or "References" section of the player's Wikipedia article.
Usage
Unnamed parameters:
{{WBF|ID}}
{{WBF|ID|NAME}}
{{WBF|ID|NAME|ACCESS-DATE}}
Named parameters:
{{WBF|id=ID}}
{{WBF|id=ID|name=NAME}}
{{WBF|id=ID|name=NAME|access-date=ACCESS-DATE}}
Using Wikidata property P3172:
{{WBF}}
{{WBF|name=NAME}}
{{WBF|name=NAME|access-date=ACCESS-DATE}}
Parameters
|id=
- The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 1122 is the ID portion of http://www.worldbridge.org/people/person.asp?qryid=1122 or http://www.worldbridge.org/Repository/peopleforscrap/person.asp?qryid=1122. This parameter is optional if Wikidata property P3172 exists, but required if not. If not provided, the template will attempt to fetch it from Wikidata.
|name=
- The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the athlete. This parameter is optional when the template is used in the player's Wikipedia article; it defaults to the article name, without any disambiguation such as "(bridge)". It should be provided if the template is used other articles.
|access-date=
- The "access-date" parameter (or unnamed parameter "3") is for use in references.
How to find the "id"
One of the following methods may be used to find a player's WBF page and determine the id number:
- Go to the WBF People Finder and search for the player's surname. If the surname is unknown, try different parts of the known name separately.
- Use a web search engine such as Google or Bing (examples for Riki Markus):
- Google search:
Rixi Markus site:worldbridge.org
- Bing search:
Rixi Markus site:worldbridge.org
- Google search:
The id number for the person can be seen at the end of the URL, such as 1122:
- http://www.worldbridge.org/people/person.asp?qryid=1122
- http://www.worldbridge.org/Repository/peopleforscrap/person.asp?qryid=1122
Examples
Unnamed parameters
{{WBF | 1122 | Rixi Markus }}
{{WBF | 1122 | Rixi Markus | September 14, 2012 }}
- "International record for Rixi Markus". World Bridge Federation. Retrieved September 14, 2012.
Named parameters
{{WBF |id= 553 |name= Omar Sharif }}
{{WBF |id= 553 |name= Omar Sharif |access-date= 29 December 2016 }}
- "International record for Omar Sharif". World Bridge Federation. Retrieved 29 December 2016.
No parameters and Wikidata property not defined
{{WBF}}
- word%5d%5d "International record for WBF/doc" Check
|url=
value (help). World Bridge Federation.Lua error in Module:EditAtWikidata at line 36: attempt to index field 'wikibase' (a nil value).
Incorrect use
The "name" parameter (or unnamed parameter "2") defaults to the article name, so it should not be omitted if the template is used anywhere other than the player's Wikipedia article.
{{WBF | 1122 }}
{{WBF |id= 553 }}
Tracking categories
- "id" parameter exists
- Category:World Bridge Federation ID not in Wikidata (0)
- Category:World Bridge Federation ID different from Wikidata (0)
- Category:World Bridge Federation ID same as Wikidata (0)
- "id" parameter does not exist