Template talk:Infobox Australian place: Difference between revisions
AussieLegend (talk | contribs) →Infobox conversion: new section |
|||
Line 57: | Line 57: | ||
::: looks good to me. I cleaned up the code a bit to make the handling of the image size and captions more robust. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 17:39, 27 November 2012 (UTC) |
::: looks good to me. I cleaned up the code a bit to make the handling of the image size and captions more robust. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 17:39, 27 November 2012 (UTC) |
||
:::Thank you - perfect! -- [[User:Mattinbgn|Mattinbgn]] ([[User talk:Mattinbgn|talk]]) 06:24, 29 November 2012 (UTC) |
:::Thank you - perfect! -- [[User:Mattinbgn|Mattinbgn]] ([[User talk:Mattinbgn|talk]]) 06:24, 29 November 2012 (UTC) |
||
== Infobox conversion == |
|||
{{Infobox Australian place/sandbox |
|||
| type = town |
|||
| name = Raymond Terrace |
|||
| state = nsw |
|||
| latd = 32 |
|||
| latm = 45 |
|||
| lats = 41.3 |
|||
| longd = 151 |
|||
| longm = 44 |
|||
| longs = 38.6 |
|||
| pushpin_label_position = left |
|||
| pop = 12,725 |
|||
| pop_year = [[Census in Australia#2011|2011]] |
|||
| pop_footnotes = <ref name=abs2011pop>{{Census 2011 AUS|id=SSC11952|name=Raymond Terrace (State Suburb)|accessdate=1 October 2012|quick=on}}</ref> |
|||
}} |
|||
Recently I've been involved in some discussions where it was implied that older infoboxes like this may not be supported after implementation of Lua. I'm not sure how true that is but, at the same time the Australian roads project has been discussing conversion of articles to use {{tl|Infobox road}} instead of {{tl|Infobox Australian road}}. This was previously, vehemently opposed at two TfDs but that's another issue. The worst case scenario that is if the infobox is not supported, we could be forced to go to {{tl|Infobox settlement}}. With this in mind I looked at converting the current format of this infobox to use {{tl|Infobox}}, which I've now done, at least in the sandbox. I've setup some [[Template:Infobox Australian place/testcases|testcases]] and am interested in getting some feedback. The new version results in a more compact infobox in most cases. I've made some minor tweaks as well. It has become common to add a year after the population figure so I've made that simpler by adding a <code>pop_year</code> parameter which is autoformatted to produce the result you can see to the right. I've also added the ability to add alt text to the images (as we're supposed to). In the original infobox we had to use a properly formatted set of coordinates using {{tl|coord}}. The locator map was added later, and if you wanted coordinates ''and'' a locator map you needed to provide both. The new version builds the inline coordinates display from the locator map and <code>state</code> parameters. You can still use {{tld|coord}}, but you don't have to and it doesn't hurt to have both. This was necessary to ensure backward compatibility with the current version of the infobox. Although I don't see any problems, the new version needs to be tested well, as the infobox is transcluded to 9,719 articles, and obviously we need to ensure minimal disruption to articles. --[[User:AussieLegend|'''<span style="color:green;">Aussie</span><span style="color:gold;">Legend</span>''']] ([[User talk:AussieLegend#top|<big>✉</big>]]) 11:33, 4 May 2013 (UTC) |
|||
{{reflist|close=1}} |
Revision as of 11:33, 4 May 2013
Australia: Places Template‑class | ||||||||||
|
Cities Template‑class | |||||||
|
This template was considered for deletion on 2009 September 6. The result of the discussion was "keep (withdrawn by nominator)". |
Core policies for this box
- KISS
- Keep this box as simple as possible.
- Scope
- Make sure you remember that this box is used on more than 4,500 pages, of 5 different types. Whatever you do needs to be applicable to a good number of those pages.
- Discussion/Community
- Its very important to discuss everything that's going to change. And before you suggest something, look in the archives, it may have been suggested before.
Include "Country" field?
I was stub-sorting Naring, Victoria and noticed that the infobox does not include "Australia". It has the state, Victoria in the heading of the infobox, but no mention of the country. A spot check of some places in South Africa, UK, Austria and France finds that these have the country in the infobox, and even the USA does too, so I suggest you should consider including it in this template too. PamD 09:51, 11 December 2011 (UTC)
ACTgov, NTgov
The addition yesterday of NTgov
[1] lead me to check to see whether the new parameter was documented. At the same time I discovered ACTgov
, which was added in 2007.[2] Neither of these are documented. Presently, they are used in 104 articles (101 ACT, 3 NT) but the parameters seem unnecessary. The headings link to Australian Capital Territory Legislative Assembly for ACTgov
and Northern Territory Legislative Assembly for ACTgov
, while stategov
links to Electorates of the Australian states and territories for all states. The article also includes links for both the ACT and NT so separate parameters, just to provide different links seems unnecessary. If it's good enough for all states to link to the same article, then why not for the two territories? --AussieLegend (talk) 19:52, 17 September 2012 (UTC)
- Yeah, that was me (adding
NTgov
). The main issue is that the heading refers to "State electorate" and the ACT and NT are not states. Yes, ideally the same parameter could be used for all articles, and they should link to the Electorates of the Australian states and territories. Can the infobox code detect that the state parameter is "act
" or "nt
" and display a "Territory electorate" heading instead? Adding theNTgov
parameter was about the limit of my infobox coding skills! Alternatively, the heading forstategov
could be "State or territory electorate" but that seems pretty clunky. --Canley (talk) 05:57, 20 September 2012 (UTC)
Somewhere Australian Capital Territory | |
---|---|
Territory electorate(s) | Division of something |
Error: |type= not defined (help) |
- It could be changed to autodetect but, in the meantime, I changed the heading so that it covers both states and territories, which it should always have done. --AussieLegend (talk) 06:05, 20 September 2012 (UTC)
- Great, thank you. I'll change back the three NT towns I did and make a start on the ACT ones. --Canley (talk) 06:10, 20 September 2012 (UTC)
- It could be changed to autodetect but, in the meantime, I changed the heading so that it covers both states and territories, which it should always have done. --AussieLegend (talk) 06:05, 20 September 2012 (UTC)
Hundred
I've boldly removed the |hundred=
parameter, which was only used in 2 articles. This was previously discussed here and here, where I was the only person opposing removal. My opposition was mainly to removal of county
and parish
from NSW articles, but removal of hundred
was not opposed. Better late than never. --AussieLegend (talk) 22:08, 17 September 2012 (UTC)
Request - additional field for LG map
The infobox is designed to support use in Australian local government area articles. However, it does not support a field for a map of the local government area which then is required to use the "image" field. See Weddin Shire Council for an example where an image suitable for the infobox has to be squashed down at the bottom of the article because the map is using the "image" field.
It would be preferable to use the "image" field for an actual photograph rather than the map. Is it possible to add an additional field for a map to appear immediately underneath the infobox photograph, in a similar fashion to how the infobox appears town articles, such as Grenfell, New South Wales? -- Mattinbgn (talk) 07:48, 23 November 2012 (UTC)
- Note that {{Infobox Settlement}} includes fields for map, image and "seal" (logo) - see Compton, California for an example. -- Mattinbgn (talk) 07:50, 23 November 2012 (UTC)
- LGA maps are supported by use of
alternative_location_map
(see Joondalup (suburb), Langwarrin, Victoria and Arthurs Seat, Victoria), anduse_lga_map
(see Nhill, Benalla and Longford, Victoria). The problem is not lack of support for LGA maps, it's that we don't have the associated location map templates in Category:Australia location map templates. It's possible to display the LGA location using the locator map and still have an image, as in this version of City of Newcastle, but User:Rangasyd recently changed a number of articles, as he did here to City of Newcastle, eliminating the possibility of having both an image and a map. --AussieLegend (✉) 08:48, 23 November 2012 (UTC)
- LGA maps are supported by use of
- Thanks for the reply. The examples you show are not exactly what I am looking for however. I know how to show towns in their respective LGA in the infobox. What I want to be able to do is to include this image in a map field and this image in an image field in this article so that both the map and the photograph appear in the infobox. I don't appear to be able to do this at present. The locator map only provides a point, not an area and is not what I am looking for. -- Mattinbgn (talk) 08:38, 27 November 2012 (UTC)
- To use File:Old lga SouthMelb.png as a map you just need to create a suitable LGA template and then link to that in
use_lga_map
. The pin in the locator map would need to be set to the coordinates of the red dot in the image and that would achieve what you want. I can see the benefit of adding the ability to use an image, rather than having to go to the trouble of making a template. That would make things a lot easier. --AussieLegend (✉) 10:06, 27 November 2012 (UTC) - As I indicated above, we don't have a lot of LGA templates, but we do have a lot of LGA map images, and a lot of LGA articles suffer the same problem that City of South Melbourne does, or rather did. It was a simple process to add code for a second image so that both File:Old lga SouthMelb.png and File:South Melbourne Town Hall 001.JPG could be used in the article without the need to create an LGA template and this will benefit numerous other articles. I hope that's what you were after. --AussieLegend (✉) 11:09, 27 November 2012 (UTC)
- looks good to me. I cleaned up the code a bit to make the handling of the image size and captions more robust. Frietjes (talk) 17:39, 27 November 2012 (UTC)
- Thank you - perfect! -- Mattinbgn (talk) 06:24, 29 November 2012 (UTC)
- To use File:Old lga SouthMelb.png as a map you just need to create a suitable LGA template and then link to that in
Infobox conversion
Raymond Terrace New South Wales | |
---|---|
Population | 12,725 (2011)[1] |
Recently I've been involved in some discussions where it was implied that older infoboxes like this may not be supported after implementation of Lua. I'm not sure how true that is but, at the same time the Australian roads project has been discussing conversion of articles to use {{Infobox road}} instead of {{Infobox Australian road}}. This was previously, vehemently opposed at two TfDs but that's another issue. The worst case scenario that is if the infobox is not supported, we could be forced to go to {{Infobox settlement}}. With this in mind I looked at converting the current format of this infobox to use {{Infobox}}, which I've now done, at least in the sandbox. I've setup some testcases and am interested in getting some feedback. The new version results in a more compact infobox in most cases. I've made some minor tweaks as well. It has become common to add a year after the population figure so I've made that simpler by adding a pop_year
parameter which is autoformatted to produce the result you can see to the right. I've also added the ability to add alt text to the images (as we're supposed to). In the original infobox we had to use a properly formatted set of coordinates using {{coord}}. The locator map was added later, and if you wanted coordinates and a locator map you needed to provide both. The new version builds the inline coordinates display from the locator map and state
parameters. You can still use {{coord}}
, but you don't have to and it doesn't hurt to have both. This was necessary to ensure backward compatibility with the current version of the infobox. Although I don't see any problems, the new version needs to be tested well, as the infobox is transcluded to 9,719 articles, and obviously we need to ensure minimal disruption to articles. --AussieLegend (✉) 11:33, 4 May 2013 (UTC)
- ^ Australian Bureau of Statistics (31 October 2012). "Raymond Terrace (State Suburb)". 2011 Census QuickStats. Retrieved 1 October 2012.