You can edit almost every page by Creating an account and confirming your email.

Module:Commons category/doc

From EverybodyWiki Bios & Wiki

This is the documentation page for Module:Commons category

File:Commons-Wikidata links - 2015.svg
Schema of links between Wikipidia, Wikidata and Wikimedia Commons

This module supports Template:Commons category, by returning the name of Commons category which could be stored in one of the three places.

Usage

Exported function :

  • {{#invoke|Commons category|property373}} – returns Commons category associated with the current page
  • {{#invoke|Commons category|property373|Wikidata=Q4579913}} – returns Commons category associated with d:Q4579913 item


Examples

Wiki code Result
{{#invoke:Commons category|property373|Wikidata=Q7427769|link=1}} Lua error in Module:Commons_category at line 51: attempt to index field 'wikibase' (a nil value).
{{#invoke:Commons category|property373|Wikidata=Q4579913|link=2}} Lua error in Module:Commons_category at line 51: attempt to index field 'wikibase' (a nil value).
{{#invoke:Commons category|property373|Wikidata=Q6892020|link=3}} Lua error in Module:Commons_category at line 51: attempt to index field 'wikibase' (a nil value).
{{#invoke:Commons category|property373|Wikidata=Q7144547}} Lua error in Module:Commons_category at line 51: attempt to index field 'wikibase' (a nil value).

Notes and references