Difference between revisions of "Template:Foreign relations of Australia"

From blackwiki
Jump to navigation Jump to search
imported>Sawol
imported>WhatamIdoing
(Restoring WP:TemplateData)
Line 102: Line 102:
  
 
{{collapsible option}}
 
{{collapsible option}}
 
+
<templatedata>
 +
{
 +
        "description": "A template showing a box with lists of articles about the foreign relations of Australia",
 +
        "params": {
 +
                "state": {
 +
                        "label": "Collapsed status",
 +
                        "description": "Whether or not the template is collapsed into one line. Allowed values:collapsed/expanded/autocollapse. Autocollapse only collapses if there are more than one of this same template on the page (unusual)",
 +
                        "type": "string",
 +
                        "required": false
 +
                        }
 +
                }
 +
}
 +
</templatedata>
 
[[Category:Foreign relations of Australia|*]]
 
[[Category:Foreign relations of Australia|*]]
 
[[Category:Australia politics and government templates]]
 
[[Category:Australia politics and government templates]]
 
[[Category:Foreign relations by country templates|Australia]]
 
[[Category:Foreign relations by country templates|Australia]]
 
</noinclude>
 
</noinclude>

Revision as of 17:21, 18 February 2016

Initial visibility: currently defaults to autocollapse

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Foreign relations of Australia|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Foreign relations of Australia|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Foreign relations of Australia|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.

A template showing a box with lists of articles about the foreign relations of Australia

Template parameters

ParameterDescriptionTypeStatus
Collapsed statusstate

Whether or not the template is collapsed into one line. Allowed values:collapsed/expanded/autocollapse. Autocollapse only collapses if there are more than one of this same template on the page (unusual)

Stringoptional