Difference between revisions of "Template:Fashionmodel/doc"
imported>Jonesey95 (fix linter errors (misc tidy formatting error, div inside of span)) |
imported>Zyxw (update examples, TemplateData, and categories) |
||
| 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|FMD model}} | {{Template redirect|FMD model}} | ||
{{Lua|Module:EditAtWikidata}} | {{Lua|Module:EditAtWikidata}} | ||
{{Uses Wikidata|P2266}} | {{Uses Wikidata|P2266}} | ||
| − | |||
| − | + | This template displays an external link to a model'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 model | <var>ID</var> }} |
| + | : {{tlcw|FMD model | <var>ID</var> | <var>NAME</var> }} | ||
| − | + | Named parameters: | |
| − | : {{ | + | : {{tlcw|FMD model | id{{=}} <var>ID</var> }} |
| − | : {{ | + | : {{tlcw|FMD model | id{{=}} <var>ID</var> | name{{=}} <var>NAME</var> }} |
| − | + | Using [[Wikidata]] property {{Property|P2266}}: | |
| − | : {{ | + | : {{tlcw|FMD model}} |
| − | : {{ | + | : {{tlcw|FMD model | name{{=}} <var>NAME</var> }} |
== Examples == | == Examples == | ||
| − | === | + | === Unnamed parameters === |
| − | + | ''URL:'' | |
| − | : < | + | : <kbd>[https://www.fashionmodeldirectory.com/models/emily_ratajkowski/ https://www.fashionmodeldirectory.com/models/{{Hilite|emily_ratajkowski}}/]</kbd> |
| − | Usage: | + | ''Usage:'' |
| − | : {{ | + | : {{tlcw|a=1|FMD model | emily_ratajkowski | Emily Ratajkowski }} |
| − | + | ||
| − | + | ''Output:'' | |
| − | : {{ | + | :* {{FMD model | emily_ratajkowski | Emily Ratajkowski }} |
| − | |||
| − | === | + | === Named parameters === |
| − | + | ''URL:'' | |
| − | : < | + | : <kbd>[https://www.fashionmodeldirectory.com/models/Georgia+May_Jagger/ https://www.fashionmodeldirectory.com/models/{{Hilite|Georgia+May_Jagger}}/]</kbd> |
| − | Usage: | + | ''Usage:'' |
| − | : {{ | + | : {{tlcw|a=1|FMD model | id{{=}} Georgia+May_Jagger | name{{=}} Georgia May Jagger }} |
| − | + | ||
| − | + | ''Output:'' | |
| − | : | + | :* {{FMD model | id= Georgia+May_Jagger | name= Georgia May Jagger }} |
| − | : {{ | ||
=== No parameters and Wikidata property not defined === | === No parameters and Wikidata property not defined === | ||
''Usage:'' | ''Usage:'' | ||
| − | : {{ | + | : {{tlcw|a=1|FMD model}} |
| + | |||
''Output:'' | ''Output:'' | ||
| − | : {{ | + | :* {{FMD model}} |
| − | == | + | == TemplateData == |
{{TemplateData header}} | {{TemplateData header}} | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| − | + | "description": "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.", | |
| − | |||
"params": { | "params": { | ||
"id": { | "id": { | ||
| − | "label": " | + | "label": "id", |
| − | "aliases": [ "1" ], | + | "aliases": ["1"], |
| − | "description": "ID | + | "description": "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.", |
"type": "string", | "type": "string", | ||
| − | "required": false | + | "required": false, |
| + | "default": "Wikidata property P2266" | ||
}, | }, | ||
"name": { | "name": { | ||
| − | "label": " | + | "label": "name", |
| − | "aliases": [ "2" ], | + | "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 model. This parameter is optional; it defaults to the Wikipedia article name, without any disambiguation such as \"(model)\".", |
"type": "string", | "type": "string", | ||
| − | + | "required": false, | |
| + | "default": "{{PAGENAMEBASE}}" | ||
} | } | ||
| − | } | + | }, |
| + | "paramOrder": [ | ||
| + | "id", | ||
| + | "name" | ||
| + | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
| − | ==Tracking | + | ==Tracking category== |
| − | * {{clc| | + | * {{clc|FMD model template missing ID and not in Wikidata}} |
== See also == | == See also == | ||
| − | * {{tl|FMD designer}} | + | * {{tl|FMD designer}} for link to a designer'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:External link templates using Wikidata]] | ||
| + | [[Category:Templates that add a tracking category]] | ||
}}</includeonly> | }}</includeonly> | ||
Revision as of 14:32, 24 March 2019
| 40px | This is a documentation subpage for Template:Fashionmodel. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | This template uses Lua: |
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 Fashion Model DirectoryScript error: No such module "EditAtWikidata".
Named parameters
URL:
Usage:
Output:
- Georgia May Jagger at Fashion Model DirectoryScript error: No such module "EditAtWikidata".
No parameters and Wikidata property not defined
Usage:
Output:
- Template:PAGENAMEBASE at Fashion Model DirectoryScript 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
- {{IMDb name}}
- {{Official website}}