Difference between revisions of "Template:IAFD name"
Jump to navigation
Jump to search
imported>Trivialist (+tracking category) |
imported>Zyxw (When ID not specified, use Wikidata property P3869 or P4505 if available and add edit link. Display message if no ID and no Wikidata. Add fix for empty "name" parameter.) |
||
| Line 1: | Line 1: | ||
| − | [http://www.iafd.com/person.rme/perfid={{Trim|{{{1|{{{id}}}}}}}}/gender={{Trim|{{{2|{{{gender<includeonly>|male</includeonly>}}}}}}}} {{{3|{{{name<includeonly>|{{PAGENAMEBASE}}</includeonly>}}}}}}] at the [[Internet Adult Film Database]]<includeonly>{{Main other|[[Category:Articles using Template:IAFD name]]|<!-- Don't categorize when not in main (article) space. -->}}</includeonly><noinclude> | + | {{#if: {{{1|}}} {{{id<includeonly>|</includeonly>}}} |
| + | | [http://www.iafd.com/person.rme/perfid={{Trim|{{{1|{{{id}}}}}}}}/gender={{Trim|{{{2|{{{gender<includeonly>|male</includeonly>}}}}}}}} {{#if:{{{3|{{{name<includeonly>|</includeonly>}}}}}}|{{{3|{{{name}}}}}}|{{PAGENAMEBASE}}}}] at the [[Internet Adult Film Database]] | ||
| + | |||
| + | | {{#if: {{#property:P3869}} | ||
| + | | [http://www.iafd.com/person.rme/perfid={{First word|{{#property:P3869}}|sep=,}}/gender=f {{#if:{{{3|{{{name<includeonly>|</includeonly>}}}}}}|{{{3|{{{name}}}}}}|{{PAGENAMEBASE}}}}] at the [[Internet Adult Film Database]]{{EditAtWikidata|pid=P3869}} | ||
| + | |||
| + | | {{#if: {{#property:P4505}} | ||
| + | | [http://www.iafd.com/person.rme/perfid={{First word|{{#property:P4505}}|sep=,}}/gender=m {{#if:{{{3|{{{name<includeonly>|</includeonly>}}}}}}|{{{3|{{{name}}}}}}|{{PAGENAMEBASE}}}}] at the [[Internet Adult Film Database]]{{EditAtWikidata|pid=P4505}} | ||
| + | |||
| + | | <span class="error">{{[[Template:IAFD name|IAFD name]]}} template missing ID and not present in Wikidata.</span> | ||
| + | }} | ||
| + | }} | ||
| + | }}<includeonly>{{Main other|[[Category:Articles using Template:IAFD name]]|<!-- Don't categorize when not in main (article) space. -->}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 01:45, 29 July 2018
{{{name}}} at the Internet Adult Film Database
Template:Uses Wikidata Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).
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}}.
Contents
Usage
Unnamed parameters:
Named parameters:
Using Wikidata property Template:Wpl or Template:Wpl:
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:
- m or male for male performer credits (default)
- f or female for female performer credits
- 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:
Named parameters:
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:
Named parameters:
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:
Named parameters:
ID in Wikidata
Usage in the article Laura Gemser:
Output:
No ID in template or Wikidata
Usage:
Output:
- Template:PAGENAMEBASE at the Internet Adult Film DatabaseScript error: No such module "EditAtWikidata".
Tracking category
See also
Other templates for this website:
- {{IAFD movie}}
- {{IAFD distributor}}
- {{IAFD studio}}
Similar templates for other websites:
- {{IMDb name}}
- {{AFDB name}}
- {{BGAFD name}}
- {{EGAFD actress}}
- {{EGAFD actor}}
| The above documentation is transcluded from Template:IAFD name/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |