Difference between revisions of "Module:Commons link/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Hike395
(create documentation)
 
blackwiki>Hike395
(upgrade to beta)
Line 1: Line 1:
{{Module rating|alpha}}
+
{{Module rating|beta}}
 
== Usage ==
 
== Usage ==
  

Revision as of 00:29, 16 March 2020

Usage

{{#invoke:Commons link|getGallery}}

Use wikidata to find Commons gallery corresponding to this article. If unable to find gallery in wikidata, default to searching for PAGENAME in Commons.

{{#invoke:Commons link|getGallery|title|linktext=text}}

Link to Commons gallery at title. Optionally, use text as displayed link text.

{{#invoke:Commons link|getGallery|search=string|linktext=text}}

Link to Commons search for string. Optionally, use text as displayed link text.

{{#invoke:Commons link|getCategory}}

Use wikidata to find Commons category corresponding to this article. If unable to find category in wikidata, default to searching for Category:PAGENAME in Commons.

{{#invoke:Commons link|getCategory|title|linktext=text}}

Link to Commons category at Category:title. Optionally, use text as displayed link text.

{{#invoke:Commons link|getCategory|search=string|linktext=text}}

Link to Commons search for Category:string. Optionally, use text as displayed link text.