This is the documentation page for Module:Commons category
| Alpha | This module is rated as alpha. It is ready for third-party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome. |
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
