Jump to content

Template:Infobox Australian place/doc: Difference between revisions

m 1 revision imported
m Text replacement - "Help:Substitution" to "wikipedia:Help:Substitution"
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{redirect|WP:IAP|text=For the essay, see [[Wikipedia:Ignore all precedent]] ([[WP:IAPD]])}}</includeonly>{{Documentation subpage}}
<includeonly>{{redirect|WP:IAP|text=For the essay, see [[Wikipedia:Ignore all precedent]] ([[wikipedia:WP:IAPD]])}}</includeonly>{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
{{High-use|1=14430 }}
{{High-use|1=14430 }}
Line 13: Line 13:
The infobox has been extensively customised for Australia and includes automation that results in some parameters being redundant to other parameters. For example, if population density (in the {{para|density}} parameter) is not specified, this will be automatically generated based on the {{para|pop}} and {{para|area}} parameters. It is therefore important to read parameter descriptions thoroughly, to avoid unnecessarily providing redundant or incorrect information.
The infobox has been extensively customised for Australia and includes automation that results in some parameters being redundant to other parameters. For example, if population density (in the {{para|density}} parameter) is not specified, this will be automatically generated based on the {{para|pop}} and {{para|area}} parameters. It is therefore important to read parameter descriptions thoroughly, to avoid unnecessarily providing redundant or incorrect information.


For infoboxes that require reformatting, general cleanup or addition of missing parameters, [[Template:Infobox Australian place/cleanup]] can be [[Help:Substitution|substituted]]. This will reformat the infobox and remove invalid parameters.
For infoboxes that require reformatting, general cleanup or addition of missing parameters, [[Template:Infobox Australian place/cleanup]] can be [[wikipedia:Help:Substitution|substituted]]. This will reformat the infobox and remove invalid parameters.


== Usage ==
== Usage ==
Line 193: Line 193:
| all  
| all  
| Width of image of the locality (in relation to default thumbnail size)
| Width of image of the locality (in relation to default thumbnail size)
| The size should not be set to a value that would result in an image width greater than 300px. See [[#Calculating "image_upright"|help below]] for guidance on determining the value to be used, and [[WP:IMGSIZE]] for rationale.
| The size should not be set to a value that would result in an image width greater than 300px. See [[#Calculating "image_upright"|help below]] for guidance on determining the value to be used, and [[wikipedia:WP:IMGSIZE]] for rationale.
| <!-- Potential sources -->
| <!-- Potential sources -->
| Unformatted number. If not specified, the image width defaults to <code>1.23</code>, which is approximately 270px for readers that haven't changed their default thumbnail size at [[Special:Preferences]].
| Unformatted number. If not specified, the image width defaults to <code>1.23</code>, which is approximately 270px for readers that haven't changed their default thumbnail size at [[Special:Preferences]].
Line 221: Line 221:
| all
| all
| Width of the second image of the locality (in relation to default thumbnail size)
| Width of the second image of the locality (in relation to default thumbnail size)
| The size should not be set to a value that would result in an image width greater than 300px. See [[#Calculating "image_upright"|help below]] for guidance on determining the value to be used, and [[WP:IMGSIZE]] for rationale.
| The size should not be set to a value that would result in an image width greater than 300px. See [[#Calculating "image_upright"|help below]] for guidance on determining the value to be used, and [[wikipedia:WP:IMGSIZE]] for rationale.
| <!-- Potential sources -->
| <!-- Potential sources -->
| Unformatted number. If not specified, the image width defaults to <code>1.23</code>, which is approximately 270px for readers that haven't changed their default thumbnail size at [[Special:Preferences]].
| Unformatted number. If not specified, the image width defaults to <code>1.23</code>, which is approximately 270px for readers that haven't changed their default thumbnail size at [[Special:Preferences]].
Line 556: Line 556:
| all{{pb}}(recommended for lga)
| all{{pb}}(recommended for lga)
| Width of logo (in relation to default thumbnail size)
| Width of logo (in relation to default thumbnail size)
| The size should not be set to a value that would result in an logo width greater than 300px. See [[#Calculating "image_upright"|help below]] for guidance on determining the value to be used, and [[WP:IMGSIZE]] for rationale.
| The size should not be set to a value that would result in an logo width greater than 300px. See [[#Calculating "image_upright"|help below]] for guidance on determining the value to be used, and [[wikipedia:WP:IMGSIZE]] for rationale.
| <!-- Potential sources -->
| <!-- Potential sources -->
| Unformatted number. If not specified, the logo width defaults to <code>1.23</code>, which is approximately 270px for readers that haven't changed their default thumbnail size at [[Special:Preferences]].
| Unformatted number. If not specified, the logo width defaults to <code>1.23</code>, which is approximately 270px for readers that haven't changed their default thumbnail size at [[Special:Preferences]].
Line 757: Line 757:


{| class="wikitable plainrowheaders" style="background-color: white; width:100%;"
{| class="wikitable plainrowheaders" style="background-color: white; width:100%;"
|+ [[Wikidata]]-generated map
|+ [[wikipedia:Wikidata|Wikidata]]-generated map
! scope="col" style="background-color: whitesmoke;" | Parameter
! scope="col" style="background-color: whitesmoke;" | Parameter
! scope="col" style="background-color: whitesmoke;" | Available for {{para|type}}
! scope="col" style="background-color: whitesmoke;" | Available for {{para|type}}
Line 809: Line 809:
<section begin=image_upright />
<section begin=image_upright />
=== Calculating "image_upright" ===
=== Calculating "image_upright" ===
The <code>image_upright</code> parameter, and <code>image2_upright</code> and <code>logo_upright</code> where applicable, is/are provided so as to facilitate the use of scalable images in this infobox, in accordance with the instructions at [[WP:IMAGESIZE]], which advises against the use of "px" (for example: <code>thumb|300px</code>), as this forces a fixed image width.
The <code>image_upright</code> parameter, and <code>image2_upright</code> and <code>logo_upright</code> where applicable, is/are provided so as to facilitate the use of scalable images in this infobox, in accordance with the instructions at [[wikipedia:WP:IMAGESIZE]], which advises against the use of "px" (for example: <code>thumb|300px</code>), as this forces a fixed image width.


Scalable images respect the user's base preference, which may have been selected for that user's particular devices. [[Module:InfoboxImage]], which is used in this infobox, accommodates the use of scaling. However, setting the appropriate scale is slightly more complex than setting a raw "px" value. This guide provides a quick conversion table to make the process of setting a scale easier. It is based on a default thumbnail setting of 220px. <!-- This is not a real sentence in any way: (size is default multiplied by upright value then rounded to nearest 10) -->
Scalable images respect the user's base preference, which may have been selected for that user's particular devices. [[Module:InfoboxImage]], which is used in this infobox, accommodates the use of scaling. However, setting the appropriate scale is slightly more complex than setting a raw "px" value. This guide provides a quick conversion table to make the process of setting a scale easier. It is based on a default thumbnail setting of 220px. <!-- This is not a real sentence in any way: (size is default multiplied by upright value then rounded to nearest 10) -->