Difference between revisions of "Module:Wikidata entity link"

From blackwiki
Jump to navigation Jump to search
blackwiki>Zyxw
(Trim any leading or trailing spaces from unnamed parameter that would prevent template from working as expected.)
(wdurl)
Line 1: Line 1:
{{#switch:{{str left|{{{1|}}}|1}}
+
[{{#if:{{{1|}}}|{{#switch:{{uc:{{padleft:|1|{{#if:1|{{{1|}}}}}}}}}
| Q = [[d:{{#if:1|{{{1|}}}}}|{{label|{{#if:1|{{{1|}}}}}}} <small>({{#if:1|{{{1|}}}}})</small>]]
+
|Q|P={{#invoke:Wikibase/sandbox|wdurl|{{{1}}}}} {{#invoke:Wikibase/sandbox|label|{{{1}}}}} <small>({{{1|}}})</small>
| P = [[d:Property:{{#if:1|{{{1|}}}}}|{{label|{{#if:1|{{{1|}}}}}}} <small>({{#if:1|{{{1|}}}}})</small>]]
+
|#default={{#invoke:Wikibase/sandbox|wdurl|Q{{{1}}}}} {{#invoke:Wikibase/sandbox|label|Q{{{1}}}}} <small>(Q{{{1|}}})</small>
| [[d:Q{{#if:1|{{{1|}}}}}|{{label|Q{{#if:1|{{{1|}}}}}}} <small>(Q{{#if:1|{{{1|}}}}})</small>]]
+
}}|{{#invoke:Wikibase/sandbox|wdurl}} {{#invoke:Wikibase/sandbox|label}} <small>({{#invoke:Wikibase/sandbox|id}})</small>}}]<noinclude>{{documentation}}</noinclude>
}}<noinclude>
 
{{documentation}}
 
</noinclude>
 

Revision as of 21:09, 5 September 2017

[Lua error in Module:Wikibase/sandbox at line 16: attempt to index field 'wikibase' (a nil value). Lua error in Module:Wikibase/sandbox at line 22: attempt to index field 'wikibase' (a nil value). (no mw.wikibase)]

Module documentation[create]