Template:Infobox Australian place is permanently protected from editing because it is a heavily used or highly visible template. 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. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This template was nominated for deletion. Please review the prior discussions if you are considering re-nomination:
|
This is the talk page for discussing improvements to the Infobox Australian place template. |
|
Archives: Index, 1, 2, 3, 4, 5, 6, 7, 8, 9Auto-archiving period: 183 days |
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||
|
Almost all major cities in Australia have both a flag and a shield, most of which are available in the Wikimedia commons for use. Why does this infobox omit these when the infoboxes for places in many other western countries have it? Could these parameters be added? Qwexcxewq (talk) 00:17, 27 December 2023 (UTC)
|logo=
. Innesw (talk) 02:17, 10 March 2024 (UTC)There is now a Lua version of the template. The Module (lua) code is at Module:Sandbox/Innesw/Infobox Australian place, the template to call to test the module is ((Sandbox/Innesw/Infobox Australian place|<infobox parameters>)).
Such a significant proposed change to a protected template obviously needs not only thorough testing of the output, but a careful independent review of the code. Therefore I don't think the template sandbox is the right place to put this yet.
Please test it for all possibilities, and put comments and (especially negative) test results either here or on the module talk page.
There are some changes in the lua version's output:
Old Behaviour | New Behaviour |
---|---|
for a non-numeric value for |pop= a population density calculation was attempted, and produced an error |
a non-numeric |pop= value means a population density is not calculated (and therefore not shown)
|
some tracking categories were output in all namespaces, ie: where
|
except in article namespace, output of all categories is suppressed (all the 'automatic' categories, and all the tracking categories) |
there is a colon at the end of the heading for the 'Places Near' sub-table | colon not output |
I have tested the output of each of the individual cases on the testcases page (a process which fixed some issues) and I believe the module now produces the same visual results in all these cases (except for the above changes).
There are a considerable number of calls to expand other templates (lframe:expandTemplate{...}), a number I would like to reduce if module equivalents exist. Suggestions welcome.
I would hope that transferring the template code to lua will make changes to the template easier - just by getting away from the obtuse syntax of templates. Innesw (talk) 09:40, 25 March 2024 (UTC)
Michael has asked for more testcases to add to what he says is the 'already very extensive' set in Template:Infobox Australian place/testcases. I admit I was remiss in asking vaguely for 'more testing' without an obvious pathway to achieving that. Somebody help me with some technical details please: if I just change Template:Infobox Australian place/sandbox to contain ((#invoke:Sandbox/Innesw/Infobox Australian place|main))<noinclude>((Documentation))</noinclude>
,
will that enable anybody to check the existing testcases? If so (but some further testing is reckoned necessary), or if not, what do I need to do as well / instead? Innesw (talk) 22:52, 26 March 2024 (UTC)