Шаблон:Fashionmodel/док
{{#ifeq:док |док
|
{{#ifeq:show |show
|
| Ово је документациона подстраница за Шаблон:Fashionmodel. Садржи информације о коришћењу, категоријама и другом садржају који није део оригиналне странице. |
}}{{#if: |
| {{#ifexist:Шаблон:Fashionmodel
| [[Категорија:Документација {{#switch:Шаблон |Шаблон=шаблона |Модул=модула |Корисник=корисничких страница |#default=Википедије}}]]
|
}}
}}
|
}}
{{#switch:
| none =
| =
[[File:{{#switch: data
| commons = Commons-logo.svg
| meta|metawiki|m = Wikimedia Community Logo.svg
| wikibooks|wbk|wb|b = Wikibooks-logo-en-noslogan.svg
| wikidata|data = Wikidata-logo.svg
| wikiquote|quote|wqt|q = Wikiquote-logo.svg
| wikipedia|wp|w = Wikipedia-logo-v2.svg
| wikisource|source|ws|s = Wikisource-logo.svg
| wiktionary|wkt|wdy|d = Wiktionary-logo-sr.png
| wikinews|news|wnw|n = Wikinews-logo.svg
| wikispecies|species = Wikispecies-logo.svg
| wikiversity|wvy|v = Wikiversity-logo.svg
| wikivoyage|voyage|voy = Wikivoyage-Logo-v3-icon.svg
| mediawiki|mw = Mediawiki.png
| outreachwiki|outreach = Wikimedia Outreach.png
| incubator = Incubator-notext.svg
| #default = Wikimedia-logo.svg
}}|40x40px|class=noviewer|alt=|link=
]]
| #default =
}} |
Овај {{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Модул
| module
| other
}}
}}
| module = модул | other | #default = шаблон }} користи {{#if: | једно или више својстава Википодатака; погледајте [[#{{{section}}}|§ {{{section}}}]] за детаље. | својства Википодатака: Lua грешка in Модул:Uses_Wikidata at line 10: attempt to index field 'wikibase' (a nil value). }} |
{{#switch:док
|sandbox |testcases |doc= |#default= }}
Шаблон:Fashionmodel displays an external link to a model's profile at the Fashion Model Directory (FMD) website.
Usage
- Without parameters (uses ID from Wikidata and title from article)
{{{{#if:Fashionmodel|Fashionmodel| tlc|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}
- One parameter (uses the Wikipedia article title as the link text)
{{{{#if:Fashionmodel|Fashionmodel| tlc|...}}{{#ifeq:ID |ID | |ID | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}{{{{#if:Fashionmodel|Fashionmodel| tlc|...}}{{#ifeq:id=ID|id=ID| |id=ID | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}
- Two parameters (uses the specified name as the link text)
{{{{#if:Fashionmodel|Fashionmodel| tlc|...}}{{#ifeq:ID|ID| |ID | }}{{#ifeq:NAME|NAME| |NAME | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}{{{{#if:Fashionmodel|Fashionmodel| tlc|...}}{{#ifeq:id= ID|id= ID| |id= ID | }}{{#ifeq:name=NAME|name=NAME| |name=NAME | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}
Template data
TemplateData за Fashionmodel
{{#ifeq:док|sandbox||
}} <templatedata> {
"description": "This template displays an external link to a model's profile at the Fashion Model Directory (FMD) website.",
"format": "inline", "params": { "id": { "label": "ID", "aliases": [ "1" ], "description": "ID string used in the URL.", "type": "string", "required": false }, "name": { "label": "Name", "aliases": [ "2" ], "description": "Name displayed in the link text. If not specified it defaults to the article's title without disambiguation.", "type": "string",
"required": false
} } } </templatedata>
Examples
One parameter
The following example shows a link to the FMD model profile for Emily Ratajkowski:
http://www.fashionmodeldirectory.com/models/{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|emily_ratajkowski|emily_ratajkowski}}|emily_ratajkowski}}/
Usage:
{{{{#if:Fashionmodel|Fashionmodel| tlc|...}}{{#ifeq:emily_ratajkowski|emily_ratajkowski| |emily_ratajkowski | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}{{{{#if:Fashionmodel|Fashionmodel| tlc|...}}{{#ifeq:id=emily_ratajkowski|id=emily_ratajkowski| |id=emily_ratajkowski | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}
Results:
- safesubst:#if:1|emily_ratajkowski}}/ Fashionmodel/док на сајту FMD {{#ifeq:|el|(jezik: engleski){{#if:true
|}}|(језик: енглески){{#if:true
|}}}}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|
| main
| other
}}
}}
| main = {{#if:emily_ratajkowski||{{#if:{{#property:P2266}}||}}}} | other | #default = }}
- safesubst:#if:1|emily_ratajkowski}}/ Fashionmodel/док на сајту FMD {{#ifeq:|el|(jezik: engleski){{#if:true
|}}|(језик: енглески){{#if:true
|}}}}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|
| main
| other
}}
}}
| main = {{#if:emily_ratajkowski||{{#if:{{#property:P2266}}||}}}} | other | #default = }}
Two parameters
The following example shows a link to the FMD model profile for Georgia May Jagger:
http://www.fashionmodeldirectory.com/models/{{#if:|{{#ifexpr:({{#time:U|{{{3}}}}} - {{#time:U|now}}) > 0|Georgia+May_Jagger|Georgia+May_Jagger}}|Georgia+May_Jagger}}/
Usage:
{{{{#if:Fashionmodel|Fashionmodel| tlc|...}}{{#ifeq:Georgia+May_Jagger|Georgia+May_Jagger| |Georgia+May_Jagger | }}{{#ifeq:Georgia May Jagger|Georgia May Jagger| |Georgia May Jagger | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}{{{{#if:Fashionmodel|Fashionmodel| tlc|...}}{{#ifeq:id=Georgia+May_Jagger|id=Georgia+May_Jagger| |id=Georgia+May_Jagger | }}{{#ifeq:name=Georgia May Jagger|name=Georgia May Jagger| |name=Georgia May Jagger | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}
Results:
- safesubst:#if:1|Georgia+May_Jagger}}/ Georgia May Jagger на сајту FMD {{#ifeq:|el|(jezik: engleski){{#if:true
|}}|(језик: енглески){{#if:true
|}}}}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|
| main
| other
}}
}}
| main = {{#if:Georgia+May_Jagger||{{#if:{{#property:P2266}}||}}}} | other | #default = }}
- safesubst:#if:1|Georgia+May_Jagger}}/ Georgia May Jagger на сајту FMD {{#ifeq:|el|(jezik: engleski){{#if:true
|}}|(језик: енглески){{#if:true
|}}}}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|
| main
| other
}}
}}
| main = {{#if:Georgia+May_Jagger||{{#if:{{#property:P2266}}||}}}} | other | #default = }}
Tracking categories
- Category:Fashionmodel template with no ID set (exists in template, not created)
See also
- {{Fashiondesigner}} – link to a designer's profile at the FMD website
- {{IMDb name}}
- {{Official website}}