Difference between revisions of "Template:FMD designer/doc"
imported>Jonesey95 (Fix Linter errors) |
imported>Zyxw (updates for use of Wikidata and tracking of missing ID) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata | + | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata --> |
| − | + | {{Template redirect|Fashiondesigner}} | |
| − | {{Wikidata | + | {{Lua|Module:EditAtWikidata}} |
| + | {{Uses Wikidata|P2412}} | ||
| − | + | This template displays an external link to a designer's profile at the [[Fashion Model Directory|FMD]] website. It is intended for use in the [[Wikipedia:External links|external links]] section of an article. | |
== Usage == | == Usage == | ||
| − | + | Unnamed parameters: | |
| − | : < | + | : {{tlcw|FMD designer | <var>ID</var> }} |
| + | : {{tlcw|FMD designer | <var>ID</var> | <var>NAME</var> }} | ||
| − | + | Named parameters: | |
| − | : | + | : {{tlcw|FMD designer | id{{=}} <var>ID</var> }} |
| − | : < | + | : {{tlcw|FMD designer | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> }} |
| − | + | Using [[Wikidata]] property {{Property|P2412}}: | |
| − | : | + | : {{tlcw|FMD designer}} |
| − | : | + | : {{tlcw|FMD designer | name{{=}} <var>NAME</var> }} |
== Examples == | == Examples == | ||
| − | === | + | === Unnamed parameters === |
| − | + | ''URL:'' | |
| − | : < | + | : <kbd>[https://www.fashionmodeldirectory.com/designers/giorgio-armani/ https://www.fashionmodeldirectory.com/designers/{{Hilite|giorgio-armani}}/]</kbd> |
| − | Usage: | + | ''Usage:'' |
| − | : | + | : {{tlcw|a=1|FMD designer | giorgio-armani | Giorgio Armani }} |
| − | |||
| − | |||
| − | + | ''Output:'' | |
| − | + | :* {{FMD designer | giorgio-armani | Giorgio Armani }} | |
| − | : | ||
| − | + | === Named parameters === | |
| − | : < | + | ''URL:'' |
| − | : | + | : <kbd>[https://www.fashionmodeldirectory.com/designers/richie-rich-and-traver-rains/ https://www.fashionmodeldirectory.com/designers/{{Hilite|richie-rich-and-traver-rains}}/]</kbd> |
| − | |||
| − | |||
| − | |||
| − | + | ''Usage:'' | |
| − | + | : {{tlcw|a=1|FMD designer | id{{=}} richie-rich-and-traver-rains | name{{=}} Richie Rich and Traver Rains }} | |
| − | |||
| − | + | ''Output:'' | |
| − | : | + | :* {{FMD designer | id= richie-rich-and-traver-rains | name= Richie Rich and Traver Rains }} |
| − | |||
| − | |||
| − | |||
| − | |||
| − | == | + | === No parameters and Wikidata property not defined === |
| − | {{ | + | ''Usage:'' |
| + | : {{tlcw|a=1|FMD designer}} | ||
| + | |||
| + | ''Output:'' | ||
| + | :* {{FMD designer}} | ||
| + | |||
| + | == TemplateData == | ||
| + | {{TemplateData header}} | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| − | + | "description": "This template displays an external link to a designer's profile at the FMD website. It is intended for use in the external links section of an article.", | |
"params": { | "params": { | ||
| − | " | + | "id": { |
| − | "label": " | + | "label": "id", |
| − | "aliases": [ " | + | "aliases": ["1"], |
| − | "description": "ID | + | "description": "The \"id\" parameter (or unnamed parameter \"1\") should contain the ID portion of the URL. Example: giorgio-armani is the ID portion of https://www.fashionmodeldirectory.com/designers/giorgio-armani/. This parameter is optional if Wikidata property P2412 exists, but required if not.", |
"type": "string", | "type": "string", | ||
| − | "required": false | + | "required": false, |
| + | "default": "Wikidata property P2412" | ||
}, | }, | ||
| − | " | + | "name": { |
| − | "label": " | + | "label": "name", |
| − | "aliases": [ " | + | "aliases": ["2"], |
| − | "description": " | + | "description": "The \"name\" parameter (or unnamed parameter \"2\") may be used to specify the link text, which should be the name of the designer. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as \"(designer)\".", |
"type": "string", | "type": "string", | ||
| − | + | "required": false, | |
| + | "default": "{{PAGENAMEBASE}}" | ||
} | } | ||
| − | } | + | }, |
| + | "paramOrder": [ | ||
| + | "id", | ||
| + | "name" | ||
| + | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
| + | |||
| + | == Tracking category == | ||
| + | * {{clc|FMD designer template missing ID and not in Wikidata}} | ||
== See also == | == See also == | ||
| − | * {{tl|FMD model}} | + | * {{tl|FMD model}} for link to a model's profile at the FMD website |
* {{tl|IMDb name}} | * {{tl|IMDb name}} | ||
* {{tl|Official website}} | * {{tl|Official website}} | ||
| − | <includeonly>{{ | + | <includeonly>{{Sandbox other|| |
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Fashion templates]] | [[Category:Fashion templates]] | ||
[[Category:People and person external link templates]] | [[Category:People and person external link templates]] | ||
| + | [[Category:External link templates using Wikidata]] | ||
| + | [[Category:Templates that add a tracking category]] | ||
}}</includeonly> | }}</includeonly> | ||
Revision as of 14:28, 24 March 2019
| This is a documentation subpage for Template:FMD designer. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
This template displays an external link to a designer'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:
- Giorgio Armani at FMDScript error: No such module "EditAtWikidata".
Named parameters
URL:
Usage:
Output:
- Richie Rich and Traver Rains 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 FMD designer
This template displays an external link to a designer'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: giorgio-armani is the ID portion of https://www.fashionmodeldirectory.com/designers/giorgio-armani/. This parameter is optional if Wikidata property P2412 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 designer. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as "(designer)".
| String | optional |
Tracking category
See also
- {{FMD model}} for link to a model's profile at the FMD website
- {{IMDb name}}
- {{Official website}}