Module talk:Country population: Difference between revisions

Content deleted Content added
Bug: Guinea-Bissau section labels not set properly
remove page from Special:WantedTemplates
 
(2 intermediate revisions by 2 users not shown)
Line 28:
 
::I wonder what I need to do to get this to work:
::{{Country populations|hide_years=true|ARG|BOL|BRA|COL|PER|VEN|CHL|ECU|PRY|URY|GUY|GUF|SUR|FLK}}
:::Yeah, well, I know it works like that{{--}}{{tlx|Country populations|hide_years=true|ARG|BOL|BRA|COL|PER|VEN|CHL|ECU|PRY|URY|GUY|GUF|SUR|FLK}}{{--}}but what I really wanted was:
:::<code><nowiki>{{Country populations|{{List of countries in South America|ISO=y}}}}</nowiki></code>
:::<nowiki>{{Country populations|{{List of countries in South America|ISO=y}}}}</nowiki>
:::The motive here is replicating the good work you did with {{tl|Country populations}} to, say, {{tl|Country areas}}, {{tl|Country densities}}, etc, so that the list of countries in each region could be centrally maintained in a single template for each. — [[User:Guarapiranga|𝐆𝐮𝐚𝐫𝐚𝐩𝐢𝐫𝐚𝐧𝐠𝐚]]&nbsp;[[User talk:Guarapiranga|☎]] 21:59, 13 June 2021 (UTC)
:::: The problem there is that the result of that is to set parameter <nowiki>{{para|1|{{List of countries in South America|ISO=y}}}}</nowiki>.
:::: I don't think you can use a template to supply a series of parameters. The solutions is to get the module to handle a list (e.g. comma delimited). If the module is handling it, then the lists may as well be stored in a subpage and be provided a via a parameter, e.g. {{para|list=South America}}. —&nbsp;<span style="font-family:Arial;background:#d6ffe6;border:solid 1px;border-radius:5px;box-shadow:darkcyan 0px 1px 1px;">&nbsp;[[User:Jts1882|Jts1882]]&nbsp;&#124;[[User talk:Jts1882|&nbsp;talk]]&nbsp;</span> 08:24, 14 June 2021 (UTC)