![]() |
Module:Wd is permanently
protected from editing because it is a
heavily used or highly visible module. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by
consensus, editors may use {{
edit template-protected}} to notify an administrator or template editor to make the requested edit.
|
This is the
talk page for discussing improvements to the
Wd module. |
|
Archives:
1Auto-archiving period: 90 days
![]() |
![]() | Wikidata | |||
|
![]() | Use Wikipedia talk:Wikidata for general Wikidata support discussions. |
Related pages |
---|
Wikidata:Q6045892 page contains population values between 2007-2022. However, when I type the wikidata:Property:P1082 value, the template calls the population value for 2007. What should I do to have it call up the population value for the most recent year?
{{wd|property|Q6045892|P1082}}
→ 2,010Thank you. Sadrettin ( talk) 10:48, 7 April 2024 (UTC)
{{#invoke:wd
|property
|P1082
|P585={{#invoke:Wikidata
|getRawQualifier
|qualifier=P585
|property=P1082
|sort=P585
|invert=true
|limit=1
}}
}}
|P459=Q6042918
after |P1082
, then the result is also filtered by determination method.
Serresmap (
talk)
18:55, 18 April 2024 (UTC)
If a reference doesn't have a title, the URL isn't shown and "Error: Unable to display the reference properly. See the documentation for details." is shown instead.
Would it be possible to not use {{
Cite web}} if there's no title so that the URL is shown?
The RedBurn (
ϕ)
15:59, 11 May 2024 (UTC)
References
{{
cite web}}
: Missing or empty |title=
(
help)
to not use {{ Cite web}}in your comment as "to use {{ Cite web}}". As for this, we could probably not; see this discussion. To quote an editor from the discussion:
Titles are required so when {{cite web}}
emits a missing title error, that is a good thing, because someone can go to wikidata and fix it
.I propose to modify the module to ignore references containing these properties. This seems to be the correct way of handling them – these references should not contain any information useful for Wikipedia references. Any thoughts? Janhrach ( talk) 15:17, 15 June 2024 (UTC)
While creating a variant template for use on Andhra Pradesh Village articles which uses{{ Infobox settlement}}, I needed wikipedia site link text in plain form so that I can change the visible text to remove suffixes in label names like district or mandal. I am unable to do that, as the current linked form gives a full fledged link with site link text and label as its visible text. I am unable to process such text as the response has pipe symbol in it. Is there any other way to get only Wikipedia article link text in plain form? Arjunaraoc ( talk) 11:18, 21 June 2024 (UTC)
There are 2 URLs in the source of the 2023 population data on this page: reference URL However, one of them appears on Wikipedia. Is it possible for 2 URLs to appear? Sadrettin ( talk) 10:21, 24 June 2024 (UTC)
![]() |
Module:Wd is permanently
protected from editing because it is a
heavily used or highly visible module. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by
consensus, editors may use {{
edit template-protected}} to notify an administrator or template editor to make the requested edit.
|
This is the
talk page for discussing improvements to the
Wd module. |
|
Archives:
1Auto-archiving period: 90 days
![]() |
![]() | Wikidata | |||
|
![]() | Use Wikipedia talk:Wikidata for general Wikidata support discussions. |
Related pages |
---|
Wikidata:Q6045892 page contains population values between 2007-2022. However, when I type the wikidata:Property:P1082 value, the template calls the population value for 2007. What should I do to have it call up the population value for the most recent year?
{{wd|property|Q6045892|P1082}}
→ 2,010Thank you. Sadrettin ( talk) 10:48, 7 April 2024 (UTC)
{{#invoke:wd
|property
|P1082
|P585={{#invoke:Wikidata
|getRawQualifier
|qualifier=P585
|property=P1082
|sort=P585
|invert=true
|limit=1
}}
}}
|P459=Q6042918
after |P1082
, then the result is also filtered by determination method.
Serresmap (
talk)
18:55, 18 April 2024 (UTC)
If a reference doesn't have a title, the URL isn't shown and "Error: Unable to display the reference properly. See the documentation for details." is shown instead.
Would it be possible to not use {{
Cite web}} if there's no title so that the URL is shown?
The RedBurn (
ϕ)
15:59, 11 May 2024 (UTC)
References
{{
cite web}}
: Missing or empty |title=
(
help)
to not use {{ Cite web}}in your comment as "to use {{ Cite web}}". As for this, we could probably not; see this discussion. To quote an editor from the discussion:
Titles are required so when {{cite web}}
emits a missing title error, that is a good thing, because someone can go to wikidata and fix it
.I propose to modify the module to ignore references containing these properties. This seems to be the correct way of handling them – these references should not contain any information useful for Wikipedia references. Any thoughts? Janhrach ( talk) 15:17, 15 June 2024 (UTC)
While creating a variant template for use on Andhra Pradesh Village articles which uses{{ Infobox settlement}}, I needed wikipedia site link text in plain form so that I can change the visible text to remove suffixes in label names like district or mandal. I am unable to do that, as the current linked form gives a full fledged link with site link text and label as its visible text. I am unable to process such text as the response has pipe symbol in it. Is there any other way to get only Wikipedia article link text in plain form? Arjunaraoc ( talk) 11:18, 21 June 2024 (UTC)
There are 2 URLs in the source of the 2023 population data on this page: reference URL However, one of them appears on Wikipedia. Is it possible for 2 URLs to appear? Sadrettin ( talk) 10:21, 24 June 2024 (UTC)