Difference between revisions of "Template:Commons-inline"

From blackwiki
Jump to navigation Jump to search
test>Very Fluffy Sheep
imported>Hike395
(add notrack parameter)
 
(14 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<center>
+
{{sister-inline
<big><b>[[User:Meepsheep|Meepsheep]] has placed this here.</b></big><br/>
+
|short={{{short|}}}
[[File:Man anus retracted, jjpiercings74.jpg|700px|link=http://meep.wikipaste.eu]]<br/>
+
|project=commons
Nĩĝĝers, kǐkês, etc.<br/>
+
|list={{{list|}}}
[[File:Animated Noise.gif|10000px|link=http://meep.wikipaste.eu]][[File:Animated Noise.gif|10000px|link=http://meep.wikipaste.eu]]
+
|links={{#if:{{{links|}}}|{{{links}}}|<!--
<div style="font-size:999999999999999999999pt;background-color:green;color:red">
+
  -->{{#invoke:Commons link|getGalleryOrCategory|{{{1|}}}|linktext={{{2|}}}|search={{{search|}}}|<!--
 +
          -->qid={{{qid|}}}|tracking={{#if:{{{search|}}}{{{notrack|}}}||1}}}}}}
 +
|extratext={{{extratext|}}}}}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 11:14, 29 September 2020

Media related to Lua error in Module:Commons_link at line 35: attempt to index field 'wikibase' (a nil value). at Wikimedia Commons

Template documentation[view] [edit] [history] [purge]

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}}

File:Commons-logo.svg Media related to Work at Wikimedia Commons

Text override

Work is the link target and Puffle is the link label.

{{Commons-inline|Work|Puffle}}

File:Commons-logo.svg Media related to Puffle at Wikimedia Commons

Full link override
{{Commons-inline|links=[[commons:Foo|]] and [[commons:Bar|]]}}

File:Commons-logo.svg 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]]
}}

File:Commons-logo.svg 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]]}}
}}

File:Commons-logo.svg Related media at Wikimedia Commons:

Commons:Timed Text
{{Captions requested}}
Extra text
{{Commons-inline|Work|extratext= Extra text}}

File:Commons-logo.svg Media related to Work at Wikimedia Commons Extra text

Force Commons search
{{Commons-inline|search=Work}}

File:Commons-logo.svg Media related to Work at Wikimedia Commons

Turn off tracking categories (for use inside other templates)
{{Commons-inline|Work|notrack=1}}

File:Commons-logo.svg Media related to Work at Wikimedia Commons

See also