Jump to content

Template:Population WD/sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
fumbling around with specifying the sep= parameter as a [set] including nbsp
what has to be done to pass   as a sep?
 
Line 1: Line 1:
{{#ifeq:{{{show|}}}|value|<!--
{{#ifeq:{{{show|}}}|value|<!--
-->{{first word|sep=[\&nbsp;%s]|{{#invoke:WikidataIB |getValue |P1082 |qid={{{qid|{{Get QID|{{{1|}}}}}}}} |fwd=ALL |rank=best |osd=no |qual=DATES|qdf={{{qdf|y}}}|noicon={{{noicon|TRUE}}}|list=p-1}}}}|<!-- If show=value, only show the population value, no date, no +/- interval, not if estimation or census
-->{{first word|sep=&nbsp;|{{#invoke:WikidataIB |getValue |P1082 |qid={{{qid|{{Get QID|{{{1|}}}}}}}} |fwd=ALL |rank=best |osd=no |qual=DATES|qdf={{{qdf|y}}}|noicon={{{noicon|TRUE}}}|list=p-1}}}}|<!-- If show=value, only show the population value, no date, no +/- interval, not if estimation or census
-->{{#ifeq:{{{show|}}}|year|{{#invoke:Ustring|gsub|{{#invoke:WikidataIB |getValue |P1082 |qid={{{qid|{{Get QID|{{{1|}}}}}}}} |fwd=ALL |rank=best |osd=no |qual=P585|qdf=y|noicon={{{noicon|TRUE}}}|list=p-1}}|^[%d,± ]* %((%d%d%d%d)%)|%1}}|<!-- If show=year, only show the year, no value, not if estimation, no +/-interval
-->{{#ifeq:{{{show|}}}|year|{{#invoke:Ustring|gsub|{{#invoke:WikidataIB |getValue |P1082 |qid={{{qid|{{Get QID|{{{1|}}}}}}}} |fwd=ALL |rank=best |osd=no |qual=P585|qdf=y|noicon={{{noicon|TRUE}}}|list=p-1}}|^[%d,± ]* %((%d%d%d%d)%)|%1}}|<!-- If show=year, only show the year, no value, not if estimation, no +/-interval
-->{{str rep|{{#invoke:WikidataIB |getValue |P1082 |qid={{{qid|{{Get QID|{{{1|}}}}}}}} |fwd=ALL |rank=best |osd=no |qual=ALL|qdf={{{qdf|y}}}|noicon={{{noicon|FALSE}}}|list=p-1}}|estimation|est}}}}}}<!-- Otherwize, show value and date, sometimes +/- interval, somtimes if it is an estimation or a census value
-->{{str rep|{{#invoke:WikidataIB |getValue |P1082 |qid={{{qid|{{Get QID|{{{1|}}}}}}}} |fwd=ALL |rank=best |osd=no |qual=ALL|qdf={{{qdf|y}}}|noicon={{{noicon|FALSE}}}|list=p-1}}|estimation|est}}}}}}<!-- Otherwize, show value and date, sometimes +/- interval, somtimes if it is an estimation or a census value

Latest revision as of 09:29, 22 May 2024