Template:WWE superstar/sandbox
WWE superstar/sandbox's profile on WWE.com
This is the template sandbox page for Template:WWE superstar (diff). See also the companion subpage for test cases. |
This template uses Lua: |
Template:WWE superstar displays an external link to a professional wrestler's profile on the WWE website (www.wwe.com). It is intended for use in the external links section of an article.
Usage
[edit]- Unnamed parameters
{{WWE superstar | ID }}
{{WWE superstar | ID | NAME }}
{{WWE superstar | ID | NAME | link= yes/no }}
- Named parameters
{{WWE superstar | id= ID }}
{{WWE superstar | id= ID | name= NAME }}
{{WWE superstar | id= ID | name= NAME | link= yes/no }}
- Using Wikidata property
{{WWE superstar}}
{{WWE superstar | name= NAME }}
{{WWE superstar | name= NAME | link= yes/no }}
Examples
[edit]Unnamed parameters
[edit]- Usage
* {{WWE superstar | cmpunk | CM Punk }}
Named parameters
[edit]- Usage
* {{WWE superstar |id= jesseventura |name= Jesse Ventura |link= no }}
- Output
-
- Jesse Ventura on WWE
No parameters and Wikidata property not defined
[edit]- Usage
* {{WWE superstar}}
- Output
-
- {{WWE superstar}} template missing ID and not present in Wikidata.
TemplateData
[edit]TemplateData for WWE superstar
This template displays an external link to a professional wrestler's profile on the WWE website (www.wwe.com). 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 cmpunk in http://www.wwe.com/superstars/cmpunk. This parameter is optional if Wikidata property P2857 exists, but required if not.
| String | optional |
name | name 2 | The link text, which should be the name of the professional wrestler. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(wrestler)".
| String | optional |
link | link | The "link" parameter may be used to prevent a wiki-link from being added to the WWE text displayed after the external link. Normally this text is "on [[WWE]].com", but if link=no it is "on WWE". | String | optional |