Difference between revisions of "Template:Commons-inline/doc"
Jump to navigation
Jump to search
imported>BoldLuis |
imported>Hike395 (document notrack) |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | {{Documentation subpage}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
| + | {{Lua|Module:Commons link}} | ||
===Usage=== | ===Usage=== | ||
| Line 15: | Line 16: | ||
|extratext= extra text | |extratext= extra text | ||
|search= string to search in Commons | |search= string to search in Commons | ||
| + | |notrack= turn off tracking categories | ||
}} | }} | ||
</pre> | </pre> | ||
| Line 24: | Line 26: | ||
; Text override | ; Text override | ||
| + | Work is the link target and Puffle is the link label. | ||
<pre>{{Commons-inline|Work|Puffle}}</pre> | <pre>{{Commons-inline|Work|Puffle}}</pre> | ||
| − | {{Commons-inline|Work|Puffle}} | + | {{Commons-inline|Work|Puffle}}<br> |
; Full link override | ; Full link override | ||
| Line 43: | Line 46: | ||
* [[commons:Row|Row]] | * [[commons:Row|Row]] | ||
* [[commons:Dee|Dee]] | * [[commons:Dee|Dee]] | ||
| + | }} | ||
| + | |||
| + | ; Another list format, including Commons templates: | ||
| + | <pre>{{Commons-inline|list= | ||
| + | :[[c:Commons:Timed Text|Commons:Timed Text]] | ||
| + | :<nowiki>{{</nowiki>[[Commons:Template:Captions requested|Captions requested]]<nowiki>}}</nowiki> | ||
| + | }}</pre> | ||
| + | |||
| + | {{Commons-inline|list= | ||
| + | :[[c:Commons:Timed Text|Commons:Timed Text]] | ||
| + | :<nowiki>{{</nowiki>[[Commons:Template:Captions requested|Captions requested]]<nowiki>}}</nowiki> | ||
}} | }} | ||
| Line 52: | Line 66: | ||
<pre>{{Commons-inline|search=Work}}</pre> | <pre>{{Commons-inline|search=Work}}</pre> | ||
{{Commons-inline|search=Work}} | {{Commons-inline|search=Work}} | ||
| + | |||
| + | ; Turn off tracking categories (for use inside other templates) | ||
| + | <pre>{{Commons-inline|Work|notrack=1}}</pre> | ||
| + | {{Commons-inline|Work|notrack=1}} | ||
===See also=== | ===See also=== | ||
Latest revision as of 11:16, 29 September 2020
| 40px | This is a documentation subpage for Template:Commons-inline. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | This template uses Lua: |
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
|notrack= turn off tracking categories
}}
Examples
- Normal
{{Commons-inline|Work}}
16x16px Media related to Work at Wikimedia Commons
- Text override
Work is the link target and Puffle is the link label.
{{Commons-inline|Work|Puffle}}
16x16px Media related to Puffle at Wikimedia Commons
- Full link override
{{Commons-inline|links=[[commons:Foo|]] and [[commons:Bar|]]}}
16x16px 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]]
}}
16x16px 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]]}}
}}
16x16px Related media at Wikimedia Commons:
- Extra text
{{Commons-inline|Work|extratext= Extra text}}
16x16px Media related to Work at Wikimedia Commons Extra text
- Force Commons search
{{Commons-inline|search=Work}}
16x16px Media related to Work at Wikimedia Commons
- Turn off tracking categories (for use inside other templates)
{{Commons-inline|Work|notrack=1}}
16x16px 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}}