Пређи на садржај

Шаблон:Wikidata image/док

Iz Vojne Enciklopedije

{{#ifeq:док |док

    | 

{{#ifeq:show |show

|

        }}{{#if: |
         |   {{#ifexist:Шаблон:Wikidata image
                  | [[Категорија:Документација {{#switch:Шаблон |Шаблон=шаблона |Модул=модула |Корисник=корисничких страница |#default=Википедије}}]]
                  | 
                 }}
        }}
    | 
   }}

{{#switch:док

 |sandbox |testcases |doc= 
 |#default = {{#switch:
 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Шаблон|Шаблон 
   | template 
   | other 
   }}
 }}

| template | шаблон | šablon =

| other | #default = {{#switch:

 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Шаблон|Модул
   | module
   | other
   }}
 }}

| module =

| other | #default = {{#switch:

 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Шаблон|Категорија
   | category
   | other
   }}
 }}

| category =

| other | #default =

}}

}}

}}

 }}

Template:Wikidata image can be used in infobox templates. It adds all articles using the template that have no image, but do have an image on Wikidata, to Category:No local image but image on Wikidata.

See User:Taketa/Wikidata Images for more information.

Usage

Add the following to a template and change the "image" to whatever that templates uses, like "image" or "Image":

<includeonly>{{Wikidata image|1={{{image|}}} }}</includeonly>