Difference between revisions of "Template:FMD designer/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (Zyxw moved page Template:Fashiondesigner/doc to Template:FMD designer/doc: more accurate name to indicate link to FMD website)
imported>Zyxw
(reorganize sections)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
{{Larger|{{Template redirect|Fashiondesigner}}}}
  
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a designer's profile at the [[Fashion Model Directory]] (FMD) website.
 
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays an external link to a designer's profile at the [[Fashion Model Directory]] (FMD) website.
Line 15: Line 16:
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | ''ID'' | ''NAME'' }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code>
 
: <code><nowiki>{{</nowiki>{{BASEPAGENAME}} | id= ''ID'' | name= ''NAME'' }}</code>
 
== Template data ==
 
{{TemplateDataHeader}}
 
<templatedata>
 
{
 
        "description": "This template displays an external link to a designer's profile at the Fashion Model Directory (FMD) website.",
 
"params": {
 
"1": {
 
"label": "ID",
 
"aliases": [ "id" ],
 
"description": "ID string used in the URL.  If not specified it defaults to the article's {{PAGENAME}}, without disambiguation and urlencoded.",
 
"type": "string",
 
"required": false
 
},
 
"2": {
 
"label": "Name",
 
"aliases": [ "name" ],
 
"description": "Name displayed in the link text. If not specified it defaults to the article's {{PAGENAME}}, without disambiguation.",
 
"type": "string",
 
                        "required": false
 
}
 
}
 
}
 
</templatedata>
 
  
 
== Examples ==
 
== Examples ==
Line 72: Line 49:
 
: {{{{BASEPAGENAME}} | richie-rich-and-traver-rains | Richie Rich and Traver Rains }}
 
: {{{{BASEPAGENAME}} | richie-rich-and-traver-rains | Richie Rich and Traver Rains }}
 
: {{{{BASEPAGENAME}} | id= richie-rich-and-traver-rains | name= Richie Rich and Traver Rains }}
 
: {{{{BASEPAGENAME}} | id= richie-rich-and-traver-rains | name= Richie Rich and Traver Rains }}
 +
 +
== Template data ==
 +
{{TemplateDataHeader}}
 +
<templatedata>
 +
{
 +
        "description": "This template displays an external link to a designer's profile at the Fashion Model Directory (FMD) website.",
 +
"params": {
 +
"1": {
 +
"label": "ID",
 +
"aliases": [ "id" ],
 +
"description": "ID string used in the URL.  If not specified it defaults to the article's {{PAGENAME}}, without disambiguation and urlencoded.",
 +
"type": "string",
 +
"required": false
 +
},
 +
"2": {
 +
"label": "Name",
 +
"aliases": [ "name" ],
 +
"description": "Name displayed in the link text. If not specified it defaults to the article's {{PAGENAME}}, without disambiguation.",
 +
"type": "string",
 +
                        "required": false
 +
}
 +
}
 +
}
 +
</templatedata>
  
 
== See also ==
 
== See also ==
Line 80: Line 81:
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 +
[[Category:Fashion templates]]
 
[[Category:People and person external link templates]]
 
[[Category:People and person external link templates]]
[[Category:Fashion templates]]
 
 
}}</includeonly>
 
}}</includeonly>

Revision as of 23:18, 29 October 2017

Template:Template redirect

Template:FMD designer displays an external link to a designer's profile at the Fashion Model Directory (FMD) website.

Usage

No parameters (uses the Wikipedia article title as the ID string for URL and as the link text):

{{FMD designer}}

One parameter (uses the Wikipedia article title as the link text):

{{FMD designer | ID }}
{{FMD designer | id= ID }}

Two parameters (uses the specified name as the link text):

{{FMD designer | ID | NAME }}
{{FMD designer | id= ID | name= NAME }}

Examples

No parameters

The following example shows a link using the Wikipedia article title in the URL:

http://www.fashionmodeldirectory.com/designers/page-name/

Usage:

{{FMD designer}}

Results:

Template:PAGENAMEBASE at FMDScript error: No such module "EditAtWikidata".

One parameter

The following example shows a link to the page for Giorgio Armani:

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

Usage:

{{FMD designer | giorgio-armani }}
{{FMD designer | id= giorgio-armani }}

Results:

Template:PAGENAMEBASE at FMDScript error: No such module "EditAtWikidata".
Template:PAGENAMEBASE at FMDScript error: No such module "EditAtWikidata".

Two parameters

The following example shows a link to the page for Richie Rich and Traver Rains:

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

Usage:

{{FMD designer | richie-rich-and-traver-rains | Richie Rich and Traver Rains }}
{{FMD designer | id= richie-rich-and-traver-rains | name= Richie Rich and Traver Rains }}

Results:

Richie Rich and Traver Rains at FMDScript error: No such module "EditAtWikidata".
Richie Rich and Traver Rains at FMDScript error: No such module "EditAtWikidata".

Template data

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 Fashion Model Directory (FMD) website.

Template parameters

ParameterDescriptionTypeStatus
ID1 id

ID string used in the URL. If not specified it defaults to the article's {{PAGENAME}}, without disambiguation and urlencoded.

Stringoptional
Name2 name

Name displayed in the link text. If not specified it defaults to the article's {{PAGENAME}}, without disambiguation.

Stringoptional

See also