Difference between revisions of "Module:Depicted people/doc"
Jump to navigation
Jump to search
Imported>Sarang m (+cat) |
m (1 revision imported) |
(No difference)
| |
Latest revision as of 16:48, 13 September 2020
The Module:Depicted people lists provided subjects. They can be both strings or Wikidata entity IDs. When they are Wikidata entity IDs, a wikilink on the user's language Wikipedia to that subject is provided.
Actually it list whatever Wikidata entity is provided, so the name should be Module:Wikidata labels or something more clear.
From Wikitext
Usage example:
{{#invoke:Depicted people|main|Q62849|Foo Bar|Q7259|Q188954|Q7439}}
Output:
Lua error in Module:Wikidata_label at line 283: attempt to index field 'wikibase' (a nil value).
From Lua
Use something as follow from Lua to have the same behaviour as above:
<source lang="lua"> local s = require('Module:Depicted people')._main( { 'Q62849', 'Foo Bar', 'Q7259', 'Q188954', 'Q7439' } ) </source>