Difference between revisions of "Template:Adult Film Database name/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Trivialist
(→‎Tracking category: adding category)
blackwiki>Zyxw
(formatting)
Line 25: Line 25:
 
=== Unnamed parameters ===
 
=== Unnamed parameters ===
 
''URLs:''
 
''URLs:''
: <tt>[http://www.adultfilmdatabase.com/actor.cfm?actorid=36967 http://www.adultfilmdatabase.com/actor.cfm?actorid={{hilite|36967}}]</tt>
+
: <kbd>[http://www.adultfilmdatabase.com/actor.cfm?actorid=36967 http://www.adultfilmdatabase.com/actor.cfm?actorid={{hilite|36967}}]</kbd>
: <tt>[http://www.adultfilmdatabase.com/actor/brianna-beach-36967/ http://www.adultfilmdatabase.com/actor/brianna-beach-{{hilite|36967}}/]</tt>
+
: <kbd>[http://www.adultfilmdatabase.com/actor/brianna-beach-36967/ http://www.adultfilmdatabase.com/actor/brianna-beach-{{hilite|36967}}/]</kbd>
 +
 
 
''Usage:''
 
''Usage:''
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | 36967 | Brianna Beach }}</code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | 36967 | Brianna Beach }}</code>
 +
 
 
''Output:''
 
''Output:''
* {{{{BASEPAGENAME}} | 36967 | Brianna Beach }}
+
:* {{{{BASEPAGENAME}} | 36967 | Brianna Beach }}
  
 
=== Named parameters ===
 
=== Named parameters ===
 
''URLs:''
 
''URLs:''
: <tt>[http://www.adultfilmdatabase.com/actor.cfm?actorid=4246 http://www.adultfilmdatabase.com/actor.cfm?actorid={{hilite|4246}}]</tt>
+
: <kbd>[http://www.adultfilmdatabase.com/actor.cfm?actorid=4246 http://www.adultfilmdatabase.com/actor.cfm?actorid={{hilite|4246}}]</kbd>
: <tt>[http://www.adultfilmdatabase.com/actor/john-holmes-4246/ http://www.adultfilmdatabase.com/actor/john-holmes-{{hilite|4246}}/]</tt>
+
: <kbd>[http://www.adultfilmdatabase.com/actor/john-holmes-4246/ http://www.adultfilmdatabase.com/actor/john-holmes-{{hilite|4246}}/]</kbd>
 +
 
 
''Usage:''
 
''Usage:''
* <code><nowiki>{{</nowiki>{{BASEPAGENAME}} |id= 4246 |name= John Holmes }}</code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}} | id= 4246 | name= John Holmes }}</code>
 +
 
 
''Output:''
 
''Output:''
* {{{{BASEPAGENAME}} |id= 4246 |name= John Holmes }}
+
:* {{{{BASEPAGENAME}} | id= 4246 | name= John Holmes }}
  
 
===No parameters===
 
===No parameters===
When used without an "id" parameter, this template will call data from [[Wikidata]], if available. If none is available, the category [[:Category:AdultFilm db name template missing ID]] will be applied and an error message will be displayed.
+
When used without an "id" parameter, this template will call data from [[Wikidata]], if available. If none is available, an error message will be displayed and the category [[:Category:AdultFilm db name template missing ID]] will be applied.
  
 
''Usage:''
 
''Usage:''
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
+
: <code><nowiki>* {{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code>
 +
 
 
''Output:''
 
''Output:''
: {{ {{BASEPAGENAME}} }}
+
:* {{ {{BASEPAGENAME}} }}
  
 
== TemplateData ==
 
== TemplateData ==
Line 84: Line 89:
  
 
== See also ==
 
== See also ==
* [[Template:AdultFilm db movie]]
+
Other templates for this website:
* [[Template:IAFD name]]
+
* {{tl|AdultFilm db movie}}, with shortcut {{tl|AFDB movie}}
* [[Template:BGAFD name]]
+
Similar templates for other websites:
* [[Template:EGAFD actress]]
+
* {{tl|IMDb name}}
* [[Template:EGAFD actor]]
+
* {{tl|IAFD name}}
* [[Template:IMDb name]]
+
* {{tl|BGAFD name}}
 +
* {{tl|EGAFD actress}}
 +
* {{tl|EGAFD actor}}
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||

Revision as of 00:01, 29 July 2018

Template:Uses Wikidata Template:Tracks Wikidata

Template:Adult Film Database name displays an external link to an actor's page at the Adult Film Database website (adultfilmdatabase.com). It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

{{Adult Film Database name | ID }}
{{Adult Film Database name | ID | NAME }}

Named parameters:

{{Adult Film Database name | id= ID }}
{{Adult Film Database name | id= ID | name= NAME }}

Using Wikidata property P3351:

{{Adult Film Database name}}
{{Adult Film Database name | name= NAME }}

Examples

Unnamed parameters

URLs:

http://www.adultfilmdatabase.com/actor.cfm?actorid=36967
http://www.adultfilmdatabase.com/actor/brianna-beach-36967/

Usage:

* {{Adult Film Database name | 36967 | Brianna Beach }}

Output:

Named parameters

URLs:

http://www.adultfilmdatabase.com/actor.cfm?actorid=4246
http://www.adultfilmdatabase.com/actor/john-holmes-4246/

Usage:

* {{Adult Film Database name | id= 4246 | name= John Holmes }}

Output:

No parameters

When used without an "id" parameter, this template will call data from Wikidata, if available. If none is available, an error message will be displayed and the category Category:AdultFilm db name template missing ID will be applied.

Usage:

* {{Adult Film Database name}}

Output:

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 Adult Film Database name

This template displays an external link to an actor's page at the Adult Film Database website (adultfilmdatabase.com). It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
idid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: 36967 is the ID portion of http://www.adultfilmdatabase.com/actor.cfm?actorid=36967 or http://www.adultfilmdatabase.com/actor/brianna-beach-36967/. This parameter is optional if Wikidata property P3351 exists, but required if not.

Default
Wikidata property P3351
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 subject of the link. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation.

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories

See also

Other templates for this website:

Similar templates for other websites: