Cèṭa'an:Commons-inline
Media related to Commons-inline at Wikimedia Commons
src
attribute must not be empty.This template is used on many 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. |
src
attribute must not be empty.This template uses Lua: |
This template relies on Template:Sister-inline.
Usage
beccè'* {{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.
- Full syntax
* {{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
}}
Examples
beccè'- Normal
* {{Commons-inline|Work}}
- Media related to Work at Wikimedia Commons
- Text override
Work is the link target and Puffle is the link label.
* {{Commons-inline|Work|Puffle}}
- Media related to Puffle at Wikimedia Commons
- Full link override
* {{Commons-inline|links=[[commons:Foo|]] and [[commons:Bar|]]}}
- List format
* {{Commons-inline|list=
* [[commons:Foo|Foo]]
* [[commons:Bar|Bar]]
* [[commons:Row|Row]]
* [[commons:Dee|Dee]]
}}
Related media at Wikimedia Commons:
- Another list format, including Commons templates
* {{Commons-inline|list=
:[[c:Commons:Timed Text|Commons:Timed Text]]
:<nowiki>{{</nowiki>[[Commons:Template:Captions requested|Captions requested]]<nowiki>}}</nowiki>
}}
- Extra text
* {{Commons-inline|Work|extratext= Extra text}}
- Media related to Work at Wikimedia Commons Extra text
- Force Commons search
* {{Commons-inline|search=Work}}
- Media related to Work at Wikimedia Commons
- Turn off tracking categories (for use inside other templates)
* {{Commons-inline|Work|notrack=1}}
- Media related to Work at Wikimedia Commons
Tracking categories
beccè'Normal categories
beccè'Maintenance categories
beccè'- Bhângsa:Commons link is defined as the pagename (2)
- Bhângsa:Commons link is locally defined (1)
- Bhângsa:Commons link is the pagename (0)
- Bhângsa:Inconsistent wikidata for Commons gallery (0)
See also
beccè'Cèṭa'an:Commons templates see also
TemplateData
beccè'TemplateData for Commons-inline
Add an inline link to Commons gallery or category related to article
Parameter | Keterangan | Jenis | Status | |
---|---|---|---|---|
Commons gallery | 1 | Title of Commons gallery. If empty, looks up relevant gallery or category in Wikidata | Kata | opsional |
Display text | 2 | Link text to display. If empty, uses gallery or category title | Kata | opsional |
italic | italic | whether to italicize link text
| Boolean | opsional |
notrack | notrack | if true, turn off tracking categories
| Boolean | opsional |
links | links | wikitext to use instead of default links | Isi | opsional |
list | list | bulletted list to use instead of generated text | Isi | opsional |
extratext | extratext | Extra text to add after normal template result | Isi | opsional |
short | short | Do not display any text, just logo and link
| Boolean | opsional |
search | search | If non-empty, string to search for in Commons | Kata | opsional |