Difference between revisions of "Template:Fashionmodel"
imported>Zyxw (Fixes for empty id/name parameters. Remove {{Trim|}} since {{#if:}} does same. If Wikidata property has multiple values, only use first one.) |
imported>Zyxw (Use https to avoid redirect at website. Update link and tracking category.) |
||
| Line 1: | Line 1: | ||
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P2266}} | {{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P2266}} | ||
| − | | [ | + | | [https://www.fashionmodeldirectory.com/models/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P2266}}|sep=,}} }}/ {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at [[Fashion Model Directory|FMD]]<includeonly>{{EditAtWikidata|pid=P2266|{{{id|{{{1|}}}}}}}}</includeonly> |
| − | | <span class="error">{{[[Template: | + | | <span class="error">{{[[Template:FMD model|FMD model]]}} template missing ID and not present in Wikidata.</span>{{Main other|[[Category:FMD model template missing ID and not in Wikidata]]}} |
}}<noinclude> | }}<noinclude> | ||
{{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. --> | {{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. --> | ||
</noinclude> | </noinclude> | ||
Revision as of 14:30, 24 March 2019
{{{name}}} at FMD
Template:Template redirect Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value). Template:Uses Wikidata
This template displays an external link to a model's profile at the FMD website. It is intended for use in the external links section of an article.
Contents
Usage
Unnamed parameters:
Named parameters:
Using Wikidata property Template:Property:
Examples
Unnamed parameters
URL:
Usage:
Output:
- Emily Ratajkowski at FMDScript error: No such module "EditAtWikidata".
Named parameters
URL:
Usage:
Output:
- Georgia May Jagger at FMDScript error: No such module "EditAtWikidata".
No parameters and Wikidata property not defined
Usage:
Output:
- Template:PAGENAMEBASE at FMDScript error: No such module "EditAtWikidata".
TemplateData
TemplateData for Fashionmodel
This template displays an external link to a model's profile at the FMD website. It is intended for use in the external links section of an article.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id 1 | The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: emily_ratajkowski is the ID portion of https://www.fashionmodeldirectory.com/models/emily_ratajkowski/. This parameter is optional if Wikidata property P2266 exists, but required if not.
| String | optional |
| name | name 2 | The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the model. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(model)".
| String | optional |
Tracking category
See also
- {{FMD designer}} for link to a designer's profile at the FMD website
- {{FMD photographer}} for link to a photographer's profile at the FMD website
- {{IMDb name}}
- {{Official website}}
| The above documentation is transcluded from Template:Fashionmodel/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. |