Template talk:Country population
Latest comment: 5 years ago by Guarapiranga in topic Errors
Edit template-protected request on 22 November 2019
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
The date option on this template uses a thousands separator for numeric years, that is, the year "2019" is written as "2,019", which is clearly not the common way to write numeric years. An example of this in use can be found on the following page: List of South American countries by population. I am requesting that the template be edited to remove the thousands seperator from the date option. Maranello10 (talk) 04:43, 22 November 2019 (UTC)
- This template is not protected, so you could have attempted to fix it, although it uses some tricky string manipulation. It looks like the entire fetched string is having
formatnum
applied to it, including the year. There are multiple ways that this could be fixed; I will let the only editor of this template, Guarapiranga, have the first crack at it. I have created a testcases page, which should have been created and debugged before this template was used in article space. In the meantime, I have reverted List of South American countries by population to the last good working version, since this template should not be used in articles while it is broken. – Jonesey95 (talk) 05:40, 22 November 2019 (UTC)- Yes, it's a nuisance that I couldn't get rid of. All suggestions are welcome. However, the version you reverted to, Jonesey95, has far graver problems than a comma on the year. The data is completely off from current estimates. That was completely unnecessary. Guarapiranga (talk) 05:48, 22 November 2019 (UTC)
- See my response on the article's talk page. This template should not be used on articles until the "nuisance" of the mis-formatted year value is fixed. I think you may have to process the first part of the string (the population) and the second part of the string (the date) with two separate statements. – Jonesey95 (talk) 15:15, 22 November 2019 (UTC)
- Yes, it's a nuisance that I couldn't get rid of. All suggestions are welcome. However, the version you reverted to, Jonesey95, has far graver problems than a comma on the year. The data is completely off from current estimates. That was completely unnecessary. Guarapiranga (talk) 05:48, 22 November 2019 (UTC)
Errors
edit@Guarapiranga: Recent edits to this template have introduced some "Expression error" problems at List of North American countries by population. Please investigate. Johnuniq (talk) 02:44, 30 November 2019 (UTC)
- Thanks for the heads up, Johnuniq. I reverted to a previous "working" version (kinda), till I sort out the problem. Guarapiranga (talk) 07:19, 30 November 2019 (UTC)