Module talk:Wd/Archive 1: Difference between revisions

Content deleted Content added
m Archiving 1 discussion(s) from Module talk:Wd) (bot
m Archiving 1 discussion(s) from Module talk:Wd) (bot
Line 695:
::{{u|MSGJ}}, you seem to be talking about something different. Here's an example of what I'm trying to fix: at [https://en.wikipedia.org/w/index.php?title=Scripps_College&oldid=1006234399 this revision of Scripps College], the academic staff count in the infobox has been converted to draw from Wikidata, with the code (slightly simplified) <code><nowiki>{{wikidata|property|references|normal+|current|single|P1128|P518=Q5428874}}</nowiki></code>, generating {{tq|Academic staff: {{wikidata|property|references|normal+|current|single|P1128|P518=Q5428874|page=Scripps College}}}}. However, the Common Data Set is also used to support Scripps' student body size in the body of the article, using the more typical code <code><nowiki><ref name=CommonDataSet19-20>{{cite web|url=http://www.scrippscollege.edu/assessir/wp-content/uploads/sites/30/2019-2020-CDS_FINAL-4.pdf|title=Scripps College Common Data Set 2019-2020 |publisher=Scripps College}}</ref></nowiki></code>, generating <ref name=CommonDataSet19-20>{{cite web|url=http://www.scrippscollege.edu/assessir/wp-content/uploads/sites/30/2019-2020-CDS_FINAL-4.pdf|title=Scripps College Common Data Set 2019-2020 |publisher=Scripps College}}</ref>. These references are exactly the same, but they are not merged because the ref names are different (this is the bug I created a phab ticket for). We want to keep them separate in the code because, although they are using the same source, they are supporting different facts, and if the Wikidata reference is updated, it might switch to something that supports only the faculty count, not the student body size. However, we want them to be merged in the display for the reader because they are currently the same source. I'm pretty sure there's no way to do that until the phab ticket is resolved. <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 20:02, 11 February 2021 (UTC)
{{talkref}}
 
== Get language code ==
 
How can I get the language code for the value of a statement?
 
--[[User:Lectrician1|Lectrician1]] ([[User talk:Lectrician1|talk]]) 20:32, 12 February 2021 (UTC)
:Currently you can't. This will be supported in the upcoming update, though. [[User:Thayts|<span style="color:#466383;font-family:Georgia;font-style:italic;letter-spacing:1px">Thayts</span>]]&nbsp;[[User talk:Thayts|<span style="color:#7892A5">•••</span>]] 22:26, 12 February 2021 (UTC)