Difference between revisions of "Template:IAFD name/doc"

From blackwiki
Jump to navigation Jump to search
imported>Svensson1
m
imported>Zyxw
m (→‎ID in Wikidata: update example to match image used by template)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- Categories and interwikis go at the bottom of this page. -->
+
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
{{Uses Wikidata|P3869|P4505}}
 +
{{Lua|Module:EditAtWikidata}}
 +
 
 +
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a page at the [[Internet Adult Film Database]] website ([http://www.iafd.com/ IAFD.com]). It is intended for use in the [[Wikipedia:External links|external links]] section of an article.
 +
 
 +
: ''For a film, use {{Tl|IAFD movie}}.''
 +
: ''For a distributor, use {{Tl|IAFD distributor}}.''
 +
: ''For a studio, use {{Tl|IAFD studio}}.''
  
 
== Usage ==
 
== Usage ==
<nowiki>{{IAFD name| id=<performer ID> | gender=<male/female/director> | name=<name>}}</nowiki>
+
Unnamed parameters:
 +
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> }}
 +
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>male/female/director</var> }}
 +
: {{tlcw|{{BASEPAGENAME}} | <var>ID</var> | <var>male/female/director</var> | <var>NAME</var> }}
 +
 
 +
Named parameters:
 +
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> }}
 +
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | gender{{=}} <var>male/female/director</var> }}
 +
: {{tlcw|{{BASEPAGENAME}} | id{{=}} <var>ID</var> | gender{{=}} <var>male/female/director</var> | name{{=}} <var>NAME</var> }}
 +
 
 +
Using [[Wikidata]] property {{wpl|P3869}} or {{wpl|P4505}}:
 +
: {{tlcw|{{BASEPAGENAME}} }}
 +
: {{tlcw|{{BASEPAGENAME}} | name{{=}} <var>NAME</var> }}
 +
 
 +
== Parameters ==
 +
; id
 +
: The "id" parameter (or unnamed parameter "1") is required and should contain the ID portion of the URL.
 +
: <kbd>[http://www.iafd.com/person.rme/perfid=glynn/gender=f/ginger-lynn.htm http://www.iafd.com/person.rme/perfid={{hilite|glynn}}/gender=f/ginger-lynn.htm]</kbd>
 +
 
 +
; gender
 +
: The "gender" parameter (or unnamed parameter "2") should contain one of the following:
 +
:# <var>m</var> or <var>male</var> for male performer credits (default)
 +
:# <var>f</var> or <var>female</var> for female performer credits
 +
:# <var>d</var> or <var>director</var> for director credits
 +
 
 +
; name
 +
: The "name" parameter (or unnamed parameter "3") 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.
 +
 
 +
== Examples ==
 +
 
 +
=== Male ===
 +
''URLs:''
 +
: <kbd>[http://www.iafd.com/person.rme/perfid=sstcroix/gender=m/steven-st%2e-croix.htm http://www.iafd.com/person.rme/perfid={{hilite|sstcroix}}/gender={{hilite|m}}/steven-st%2e-croix.htm]</kbd>
 +
: <kbd>[http://www.iafd.com/person.rme/perfid=SStCroix/gender=male http://www.iafd.com/person.rme/perfid={{hilite|SStCroix}}/gender={{hilite|male}}]</kbd>
 +
 
 +
''Unnamed parameters:''
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | sstcroix | m | Steven St. Croix }}
 +
:* {{{{BASEPAGENAME}} | sstcroix | m | Steven St. Croix }}
 +
 
 +
''Named parameters:''
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} SStCroix | gender{{=}} male | name{{=}} Steven St. Croix }}
 +
:* {{{{BASEPAGENAME}} | id= SStCroix | gender= male | name= Steven St. Croix }}
 +
 
 +
=== Female ===
 +
''URLs:''
 +
: <kbd>[http://www.iafd.com/person.rme/perfid=glynn/gender=f/ginger-lynn.htm http://www.iafd.com/person.rme/perfid={{hilite|glynn}}/gender={{hilite|f}}/ginger-lynn.htm]</kbd>
 +
: <kbd>[http://www.iafd.com/person.rme/perfid=GLynn/gender=female http://www.iafd.com/person.rme/perfid={{hilite|GLynn}}/gender={{hilite|female}}]</kbd>
 +
 
 +
''Unnamed parameters:''
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | glynn | f | Ginger Lynn }}
 +
:* {{{{BASEPAGENAME}} | glynn | f | Ginger Lynn }}
 +
 
 +
''Named parameters:''
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} GLynn | gender{{=}} female | name{{=}} Ginger Lynn }}
 +
:* {{{{BASEPAGENAME}} | id= GLynn | gender= female | name= Ginger Lynn }}
 +
 
 +
=== Director ===
 +
''URLs:''
 +
: <kbd>[http://www.iafd.com/person.rme/perfid=rmalone/gender=d/roberto-malone.htm http://www.iafd.com/person.rme/perfid={{hilite|rmalone}}/gender={{hilite|d}}/roberto-malone.htm]</kbd>
 +
: <kbd>[http://www.iafd.com/person.rme/perfid=RMalone/gender=director http://www.iafd.com/person.rme/perfid={{hilite|RMalone}}/gender={{hilite|director}}]</kbd>
  
"name" will default to the article page name and "gender" will default to male if not set.
+
''Unnamed parameters:''
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | rmalone | d | Roberto Malone }}
 +
:* {{{{BASEPAGENAME}} | rmalone | d | Roberto Malone }}
 +
 
 +
''Named parameters:''
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | id{{=}} RMalone | gender{{=}} director | name{{=}} Roberto Malone }}
 +
:* {{{{BASEPAGENAME}} | id= RMalone | gender= director | name= Roberto Malone }}
 +
 
 +
=== ID in Wikidata ===
 +
''Usage in the article [[Laura Gemser]]:''
 +
: {{tlcw|a=1|{{BASEPAGENAME}} }}
 +
: {{tlcw|a=1|{{BASEPAGENAME}} | name{{=}} Laura Gemser }}
 +
 
 +
''Output:''
 +
:* {{{{BASEPAGENAME}} | lauragemser | f | Laura Gemser }} [[File:OOjs UI icon edit-ltr-progressive.svg |frameless |text-top |10px |alt=Edit this at Wikidata |link=https://www.wikidata.org/wiki/Q240527#P3869 |Edit this at Wikidata]]
 +
 
 +
=== No ID in template or Wikidata ===
 +
''Usage:''
 +
: {{tlcw|a=1|{{BASEPAGENAME}} }}
 +
 
 +
''Output:''
 +
:* {{{{BASEPAGENAME}} }}
 +
 
 +
== Tracking category ==
 +
* {{clc|Articles using Template:IAFD name}}
  
 
== See also ==
 
== See also ==
*[[Template:Afdb name]]
+
Other templates for this website:
*[[Template:Bgafd name]]
+
* {{tl|IAFD movie}}
*[[Template:Egafd name]]
+
* {{tl|IAFD distributor}}
*[[Template:Egafd male name]]
+
* {{tl|IAFD studio}}
 +
Similar templates for other websites:
 +
* {{tl|IMDb name}}
 +
* {{tl|AFDB name}}
 +
* {{tl|BGAFD name}}
 +
* {{tl|EGAFD actress}}
 +
* {{tl|EGAFD actor}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
<!-- Categories and interwikis go here: -->
+
<!-- Categories below this line; interwikis at Wikidata -->
 
[[Category:Film external link templates]]
 
[[Category:Film external link templates]]
 
[[Category:People and person external link templates]]
 
[[Category:People and person external link templates]]
 +
[[Category:External link templates using Wikidata]]
 +
[[Category:Templates using multiple Wikidata external identifiers]]
 +
[[Category:Templates that add a tracking category]]
 
[[Category:WikiProject Pornography]]
 
[[Category:WikiProject Pornography]]
 
+
}}</includeonly>
</includeonly>
 

Latest revision as of 08:21, 9 December 2019

Template:Uses Wikidata

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

For a film, use {{IAFD movie}}.
For a distributor, use {{IAFD distributor}}.
For a studio, use {{IAFD studio}}.

Usage

Unnamed parameters:

Template:Tlcw
Template:Tlcw
Template:Tlcw

Named parameters:

Template:Tlcw
Template:Tlcw
Template:Tlcw

Using Wikidata property Template:Wpl or Template:Wpl:

Template:Tlcw
Template:Tlcw

Parameters

id
The "id" parameter (or unnamed parameter "1") is required and should contain the ID portion of the URL.
http://www.iafd.com/person.rme/perfid=glynn/gender=f/ginger-lynn.htm
gender
The "gender" parameter (or unnamed parameter "2") should contain one of the following:
  1. m or male for male performer credits (default)
  2. f or female for female performer credits
  3. d or director for director credits
name
The "name" parameter (or unnamed parameter "3") 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.

Examples

Male

URLs:

http://www.iafd.com/person.rme/perfid=sstcroix/gender=m/steven-st%2e-croix.htm
http://www.iafd.com/person.rme/perfid=SStCroix/gender=male

Unnamed parameters:

Template:Tlcw

Named parameters:

Template:Tlcw

Female

URLs:

http://www.iafd.com/person.rme/perfid=glynn/gender=f/ginger-lynn.htm
http://www.iafd.com/person.rme/perfid=GLynn/gender=female

Unnamed parameters:

Template:Tlcw

Named parameters:

Template:Tlcw

Director

URLs:

http://www.iafd.com/person.rme/perfid=rmalone/gender=d/roberto-malone.htm
http://www.iafd.com/person.rme/perfid=RMalone/gender=director

Unnamed parameters:

Template:Tlcw

Named parameters:

Template:Tlcw

ID in Wikidata

Usage in the article Laura Gemser:

Template:Tlcw
Template:Tlcw

Output:

No ID in template or Wikidata

Usage:

Template:Tlcw

Output:

Tracking category

See also

Other templates for this website:

Similar templates for other websites: