Difference between revisions of "Template:Commons-inline"

From blackwiki
Jump to navigation Jump to search
test>Delldot
(rm tfd notice)
test>Suntag
(Added documentation)
Line 3: Line 3:
 
'''{{{list}}}'''
 
'''{{{list}}}'''
 
|* [[Image:Commons-logo.svg|16px|Wikimedia Commons logo]] Media related to {{{links|[[commons:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]}}} at [[Wikimedia Commons]]
 
|* [[Image:Commons-logo.svg|16px|Wikimedia Commons logo]] Media related to {{{links|[[commons:{{{1|Special:Search/{{PAGENAME}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]}}} at [[Wikimedia Commons]]
}}<noinclude>[[Category:Interwiki link templates|Commons-inline]]
+
}}<noinclude>
[[ru:template:commons-inline]]
+
{{Documentation}}
[[fi:Malline:Commons-rivi]]</noinclude>
+
</noinclude>

Revision as of 01:03, 25 November 2008

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

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

{{Commons-inline|Work|Puffle}}
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]]
}}

* Foo

Another list format, including Commons templates
{{Commons-inline|list=
:[[c:Commons:Timed Text|Commons:Timed Text]]
:{{[[Commons:Template:Captions requested|Captions requested]]}}
}}


:Commons:Timed Text

{{Captions requested}}
Extra text
{{Commons-inline|Work|extratext= Extra text}}
Force Commons search
{{Commons-inline|search=Work}}
Turn off tracking categories (for use inside other templates)
{{Commons-inline|Work|notrack=1}}

See also