Content deleted Content added
m Archiving 1 discussion(s) from Module talk:Wd) (bot |
m Archiving 2 discussion(s) from Module talk:Wd) (bot |
||
Line 645:
:<nowiki>{{subst:#invoke:wd|properties|Q151973|P26|format=\{\{:%p\}\}<br>}}</nowiki>
:[[User:Thayts|<span style="color:#466383;font-family:Georgia;font-style:italic;letter-spacing:1px">Thayts</span>]] [[User talk:Thayts|<span style="color:#7892A5">•••</span>]] 21:48, 18 January 2021 (UTC)
== References ==
Is <code>references</code> supposed to return all the references, because it seems to be returning just the first one? Example:
<code><nowiki>{{#invoke:wd|property|references|Q3395654|P2043}}</nowiki></code> -> {{#invoke:wd|property|references|Q3395654|P2043}}
— Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 21:18, 19 January 2021 (UTC)
{{talkref}}
:There is actually only one reference for that statement, but it has two reference URLs. This module only picks the first one, as it assumes there will be a maximum of one reference URL per reference. What could be done is to split the reference into two on Wikidata. [[User:Thayts|<span style="color:#466383;font-family:Georgia;font-style:italic;letter-spacing:1px">Thayts</span>]] [[User talk:Thayts|<span style="color:#7892A5">•••</span>]] 19:23, 20 January 2021 (UTC)
::Perfect, thanks! — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 10:30, 21 January 2021 (UTC)
== Red link ==
When using ''linked'' option, the module will not return a link if the article does not exist. Is there any option to create a red link in this case? If not, could this option be considered? Best regards — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 20:51, 7 January 2021 (UTC)
:I suppose I could just get the raw label and put <nowiki>[[ ]]</nowiki> around it. But the problem with that approach is it might link to a completely different article, so an ifexist check is needed. I would like to draw the attention of this module's maintainers to the logic employed at [[Template:Wikidata fallback link]], which will product a redlink if the article indicated by the label does not yet exist. Could some of that logic be employed here? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 10:17, 8 January 2021 (UTC)
::If you create a link out of a label, then there is no guarantee that it will be red. If it happens to be equal to an existing article's name, then it might link to an irrelevant article. [[User:Thayts|<span style="color:#466383;font-family:Georgia;font-style:italic;letter-spacing:1px">Thayts</span>]] [[User talk:Thayts|<span style="color:#7892A5">•••</span>]] 21:44, 18 January 2021 (UTC)
:::Exactly - that's why I mentioned the logic in [[Template:Wikidata fallback link]] — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 10:31, 21 January 2021 (UTC)
|