Template:Commons-inline: Difference between revisions
Jump to navigation
Jump to search
(enable search parameter) |
m (1 revision imported) |
Latest revision as of 17:36, 13 August 2020
Media related to Lua error in Module:Commons_link at line 35: attempt to index field 'wikibase' (a nil value). at Wikimedia Commons
Usage
{{Commons-inline|Commons-gallery-page-name}}
Commons gallery page name is optional: if missing, template will look up associated gallery in wikidata. If that's missing, will find associated category. If that's missing, will fall back to 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 }}
Examples
- 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|]]}}
Media related to Foo and Bar at Wikimedia Commons
- 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]] :{{[[Commons:Template:Captions requested|Captions requested]]}} }}
Related media at Wikimedia Commons:
- 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
See also
- Template:Commons
- Template:Commons category
- Template:Commons category-inline – shows Commons category inline
- Template:Commons category multi – to list up to 6 categories
- Template:Commons and category – shows Commons gallery and category
- Template:Commons and category-inline – shows Commons gallery and category inline
- Template:Wikimedia Commons redirect – specialized soft redirect template for Commons
- Template:Sister project links – to link all Wikinews, Wikisource, etc.
- {{Wikibooks-inline}}
- {{Wikinews-inline}}
- {{Wikiquote-inline}}
- {{Wikisource-inline}}
- {{Wikispecies-inline}}
- {{Wikiversity-inline}}
- {{Wiktionary-inline}}