Media related to Commons-inline at Wikimedia Commons.mw-parser-output .documentation,.mw-parser-output .documentation-metadata{border:1px solid var(--border-col…
Media related to Commons-inline at Wikimedia Commons
| This template is used on approximately 25,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template uses Lua: |
This template relies on Template:Sister-inline.
This template can be used to generate a link to a page containing media related to a Commons category. It is intended for use in the "External links" section of an article.
* {{Commons-inline|Commons-gallery-page-name}}
Commons gallery page name is optional; if missing, the template will look up the associated gallery in Wikidata. If that's missing, it will find the associated category. If that's missing, it will finally fall back to a Commons search.
* {{Commons-inline
|list= wikitext for a list
|links= wikitext to override default link
|Commons-gallery-page-name=
|extratext= extra text
|search= string to search in Commons
|notrack= turn off tracking categories
|italic= italicize link text
}}
* {{Commons-inline|Work}}
Work is the link target and Puffle is the link label.
* {{Commons-inline|Work|Puffle}}
* {{Commons-inline|links=[[commons:Foo|]] and [[commons:Bar|]]}}
{{Commons-inline|list=
* [[commons:Foo|Foo]]
* [[commons:Bar|Bar]]
* [[commons:Row|Row]]
* [[commons:Dee|Dee]]
}}
Related media at Wikimedia Commons:
* {{Commons-inline|list=
:[[c:Commons:Timed Text|Commons:Timed Text]]
:<nowiki>{{</nowiki>[[Commons:Template:Captions requested|Captions requested]]<nowiki>}}</nowiki>
}}
* {{Commons-inline|Work|extratext= Extra text}}
* {{Commons-inline|search=Work}}
* {{Commons-inline|Work|notrack=1}}
TemplateData for Commons-inline
Add an inline link to Commons gallery or category related to article
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Commons gallery | 1 | Title of Commons gallery. If empty, looks up relevant gallery or category in Wikidata | String | optional |
| Display text | 2 | Link text to display. If empty, uses gallery or category title | String | optional |
| italic | italic | whether to italicize link text
| Boolean | optional |
| notrack | notrack | if true, turn off tracking categories
| Boolean | optional |
| links | links | wikitext to use instead of default links | Content | optional |
| list | list | bulletted list to use instead of generated text | Content | optional |
| extratext | extratext | Extra text to add after normal template result | Content | optional |
| short | short | Do not display any text, just logo and link
| Boolean | optional |
| search | search | If non-empty, string to search for in Commons | String | optional |
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.