Difference between revisions of "Template:FMD designer"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
m (Protected "Template:FMD designer": semi-protection of high-usage templates to combat systematic vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefinite)))
imported>Zyxw
(Use https to avoid redirect at website. When ID not specified, use Wikidata property P2412 if available and add edit link. Display message and add tracking category if no ID and no Wikidata.)
 
Line 1: Line 1:
[http://www.fashionmodeldirectory.com/designers/{{urlencode:{{{1|{{{id|{{PAGENAMEBASE}}}}}}}}}}/ {{{2|{{{name|{{PAGENAMEBASE}}}}}}}}] at the [[Fashion Model Directory]]<noinclude>
+
{{#if: {{{1<includeonly>|</includeonly>}}} {{{id|}}} {{#property:P2412}}
{{documentation}}
+
 
 +
| [https://www.fashionmodeldirectory.com/designers/{{#if: {{{1|{{{id<includeonly>|</includeonly>}}}}}} | {{{1|{{{id}}}}}} | {{First word|1={{#property:P2412}}|sep=,}} }}/ {{#if: {{{2|{{{name<includeonly>|</includeonly>}}}}}} | {{{2|{{{name}}}}}} | {{PAGENAMEBASE}} }}] at [[Fashion Model Directory|FMD]]<includeonly>{{EditAtWikidata|pid=P2412|{{{id|{{{1|}}}}}}}}</includeonly>
 +
 
 +
| <span class="error">&#123;&#123;[[Template:FMD designer|FMD designer]]&#125;&#125; template missing ID and not present in Wikidata.</span>{{Main other|[[Category:FMD designer template missing ID and not in Wikidata]]}}
 +
 
 +
}}<noinclude>
 +
{{Documentation}}<!-- Please add categories to the /doc subpage & add interwikis to Wikidata. -->
 
</noinclude>
 
</noinclude>

Latest revision as of 14:29, 24 March 2019

{{{name}}} at FMD

50px Template documentation[view] [edit] [history] [purge]

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 designer's profile at the FMD website. It is intended for use in the external links section of an article.

Usage

Unnamed parameters:

Template:Tlcw
Template:Tlcw

Named parameters:

Template:Tlcw
Template:Tlcw

Using Wikidata property Template:Property:

Template:Tlcw
Template:Tlcw

Examples

Unnamed parameters

URL:

https://www.fashionmodeldirectory.com/designers/giorgio-armani/

Usage:

Template:Tlcw

Output:

Named parameters

URL:

https://www.fashionmodeldirectory.com/designers/richie-rich-and-traver-rains/

Usage:

Template:Tlcw

Output:

No parameters and Wikidata property not defined

Usage:

Template:Tlcw

Output:

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

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.

Template parameters

ParameterDescriptionTypeStatus
idid 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.

Default
Wikidata property P2412
Stringoptional
namename 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)".

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking category

See also