Content deleted Content added
→Search more than 1 column: the page name is a numbered parameter so needs trimming (so make sure no whitespace or linefeeds in invoke call (sandbox does the trim) |
→Search more than 1 column: examples now working with sandbox |
||
Line 130:
|}
: What am I missing? Could it be the page name with a colon that is invalid? — <span style="font-family:Arial;background:#d6ffe6;border:solid 1px;border-radius:5px;box-shadow:darkcyan 0px 1px 1px;"> [[User:Jts1882|Jts1882]] |[[User talk:Jts1882| talk]] </span> 13:41, 30 June 2021 (UTC)
:: There were a few issues:
::# The page name is a numbered parameter so should be trimmed. The sandbox does this now and the non-sandbox example above is edited to remove white space and linefeeds.
::# The search comparisons assume string values. The population data has numbers so these need to be converted before comparing (as done in the sandbox) or the module modified to use the types (more involved).
:: Anyway, this shows how the data in the data page at commons can be retrieved. The two examples (Afghanistan 1950 and Zambia 2020) get the right numbers. — <span style="font-family:Arial;background:#d6ffe6;border:solid 1px;border-radius:5px;box-shadow:darkcyan 0px 1px 1px;"> [[User:Jts1882|Jts1882]] |[[User talk:Jts1882| talk]] </span> 16:32, 30 June 2021 (UTC)
|