Difference between revisions of "Template:Australia topic/doc"

From blackwiki
Jump to navigation Jump to search
imported>ClaretAsh
m (correction)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Documentation subpage}}<!--only displayed when viewed from /doc page-->
+
{{Documentation subpage}}<!-- only displayed when viewed from /doc page -->
{{Template sandbox notice}}<!--only displayed when viewed from /sandbox page-->
+
{{Template sandbox notice}}<!-- only displayed when viewed from /sandbox page -->
{{Intricate template}}  
+
{{Intricate template}}
<!---PLEASE ADD METADATA (categories, interwikis) TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE. EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE--->  
+
<!-- PLEASE ADD METADATA (categories, interwikis) TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE. EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
  
 
This template allows for the quick creation of a [[Wikipedia:Navigation templates|navigational template]] for any group of articles which contains the names of Australian states. It uses {{tlx|Navbox}} to create the navigation box.
 
This template allows for the quick creation of a [[Wikipedia:Navigation templates|navigational template]] for any group of articles which contains the names of Australian states. It uses {{tlx|Navbox}} to create the navigation box.
Line 9: Line 9:
 
<pre>
 
<pre>
 
{{Australia topic
 
{{Australia topic
<!--passed through to Template:Navbox-->
+
<!-- passed through to Template:Navbox -->
|name      =
+
| name      =  
|state      =  
+
| state      =  
|title      =  
+
| title      =  
|titlestyle =
+
| titlestyle =  
|bodystyle  =  
+
| bodystyle  =  
|groupstyle =  
+
| groupstyle =  
<!--specific to Template:Australia topic-->
+
<!-- specific to Template:Australia topic -->
|prefix =
+
| prefix =  
|suffix =
+
| suffix =  
|exclude-int =
+
| exclude-int =  
|exclude-ext =
+
| exclude-ext =  
 
}}
 
}}
 
</pre>
 
</pre>
  
 
== Parameters ==
 
== Parameters ==
===Mandatory===
+
=== Mandatory ===
 
; ''name''
 
; ''name''
 
: Mandatory when creating a new template (i.e. [[Template:Hospitals in Australia]]), otherwise the "view{{·}} talk{{·}} edit" links will connect to [[Template:Australia topic]]. You can enter <code><nowiki>{{subst:PAGENAME}}</nowiki></code> for this value as a shortcut.
 
: Mandatory when creating a new template (i.e. [[Template:Hospitals in Australia]]), otherwise the "view{{·}} talk{{·}} edit" links will connect to [[Template:Australia topic]]. You can enter <code><nowiki>{{subst:PAGENAME}}</nowiki></code> for this value as a shortcut.
  
''One of the following combinations is needed to create the links:
+
''One of the following combinations is needed to create the links:''
 
; ''prefix''
 
; ''prefix''
: Places text before the state or territory name.
+
: Places text before the state or territory name.
  
 
; ''suffix''
 
; ''suffix''
Line 39: Line 39:
 
: Places text before and after the state or territory name.
 
: Places text before and after the state or territory name.
  
===Optional===
+
=== Optional ===
 
; ''state''
 
; ''state''
: A navbox with <code>autocollapse</code> will start out collapsed if there are two or more tables on the same page that use <tt>collapsible</tt>. If set to <code>collapsed</code>, the navbox will always start out in a collapsed state. If set to blank or anything other than <code>autocollapse</code> or <code>collapsed</code>, the navbox will always start out in an expanded state.
+
: A navbox with <code>autocollapse</code> will start out collapsed if there are two or more tables on the same page that use <kbd>collapsible</kbd>. If set to <code>collapsed</code>, the navbox will always start out in a collapsed state. If set to blank or anything other than <code>autocollapse</code> or <code>collapsed</code>, the navbox will always start out in an expanded state.
 
: Default is: <code>autocollapse</code>.
 
: Default is: <code>autocollapse</code>.
  
Line 50: Line 50:
 
:: Defaults to <code>Tnavbar</code>. If set to <code>plain</code>, the <small>v • d • e</small> links on the left side of the titlebar will not be displayed, and padding will be automatically used to keep the title centered.  Use <code>off</code> to remove the <small>v • d • e</small> links, but not apply padding (this is for advanced use only; the "plain" option should suffice for most applications where a navbar is not desired).  Note that it is highly recommended that one does not hide the navbar, in order to make it easier for users to edit the template, and to keep a standard style across pages.
 
:: Defaults to <code>Tnavbar</code>. If set to <code>plain</code>, the <small>v • d • e</small> links on the left side of the titlebar will not be displayed, and padding will be automatically used to keep the title centered.  Use <code>off</code> to remove the <small>v • d • e</small> links, but not apply padding (this is for advanced use only; the "plain" option should suffice for most applications where a navbar is not desired).  Note that it is highly recommended that one does not hide the navbar, in order to make it easier for users to edit the template, and to keep a standard style across pages.
  
====Excluding groups====
+
==== Excluding groups ====
 
In some instances, the territories may not have their own articles on particular topics. To disable their inclusion in the template and avoid unnecessary [[Wikipedia:Red link|red link]]s, add any or all of the following parameters:
 
In some instances, the territories may not have their own articles on particular topics. To disable their inclusion in the template and avoid unnecessary [[Wikipedia:Red link|red link]]s, add any or all of the following parameters:
  
Line 59: Line 59:
 
: Set to any value this excludes display of the group named ''External territories'' which links to [[Christmas Island]], [[Coral Sea Islands]] and the other external territories.
 
: Set to any value this excludes display of the group named ''External territories'' which links to [[Christmas Island]], [[Coral Sea Islands]] and the other external territories.
  
====Adding groups and lists====
+
==== Adding groups and lists ====
 
Some templates may require a list of links not already included in the template. These can be specified as follows:
 
Some templates may require a list of links not already included in the template. These can be specified as follows:
  
Line 80: Line 80:
 
: A full-width cell (no group header) displayed ''below'' the template's body.
 
: A full-width cell (no group header) displayed ''below'' the template's body.
  
====Change state name used in link====
+
==== Change state name used in link ====
 
Links for Victoria may use "Victoria (Australia)". The following parameter allows for substitution where the article name does not use the default.
 
Links for Victoria may use "Victoria (Australia)". The following parameter allows for substitution where the article name does not use the default.
  
Line 87: Line 87:
 
:: <code>| VI = Victoria</code>
 
:: <code>| VI = Victoria</code>
  
====Styles====
+
==== Styles ====
 
; ''titlestyle''
 
; ''titlestyle''
 
: Specifies [[Cascading Style Sheets|CSS]] values to apply to the title. One use of this is to set the background color of the title:
 
: Specifies [[Cascading Style Sheets|CSS]] values to apply to the title. One use of this is to set the background color of the title:
 
:: <code>titlestyle = background: #0000FF;</code>
 
:: <code>titlestyle = background: #0000FF;</code>
 
:: <code>titlestyle = background: blue;</code>
 
:: <code>titlestyle = background: blue;</code>
:Default is: <code><span style="background: #ccccff;">background: #ccccff;</span></code>
+
: Default is: <code><span style="background: #ccccff;">background: #ccccff;</span></code>
 
+
 
 
; ''bodystyle''
 
; ''bodystyle''
 
: Specifies CSS values to apply to the entire template. This will not override the following {{tl|Navbox}} default styles:
 
: Specifies CSS values to apply to the entire template. This will not override the following {{tl|Navbox}} default styles:
:: <code>abovestyle = background:#ddddff;</code>
+
:: <code>abovestyle = background: #ddddff;</code>
:: <code>belowstyle = background:#ddddff;</code>
+
:: <code>belowstyle = background: #ddddff;</code>
:: <code>groupstyle = background:#ddddff; text-align:right; white-space:nowrap;</code>
+
:: <code>groupstyle = background: #ddddff; text-align: right;</code>
:: <code>liststyle  = width:100%; font-size:95%;</code>
+
:: <code>liststyle  = width: 100%; font-size: 95%;</code>
  
 
; ''abovestyle''
 
; ''abovestyle''
 
; ''belowstyle''
 
; ''belowstyle''
 
: Specifies CSS values to apply to the cell specified via the ''above'' and ''below'' parameters. For instance:
 
: Specifies CSS values to apply to the cell specified via the ''above'' and ''below'' parameters. For instance:
:: <code>belowstyle = border-top: #ccccff 1px solid;</code>  
+
:: <code>belowstyle = border-top: #ccccff 1px solid;</code>
:Default is: <code><span style="background: #ddddff;">background: #ddddff;</span></code>
+
: Default is: <code><span style="background: #ddddff;">background: #ddddff;</span></code>
  
 
; ''groupstyle''
 
; ''groupstyle''
 
: Specifies CSS values to apply to the cells specified via the ''group<sub>n</sub>'' cells. This option overrides any styles that are applied to the entire table. Example:
 
: Specifies CSS values to apply to the cells specified via the ''group<sub>n</sub>'' cells. This option overrides any styles that are applied to the entire table. Example:
:: <code>groupstyle = background:#6AFB92; vertical-align:top;</code>  
+
:: <code>groupstyle = background: #6AFB92; vertical-align: top;</code>
:Default is: <code><span style="background: #ddddff;">background: #ddddff;</span> text-align:right; white-space:nowrap;</code>
+
: Default is: <code><span style="background: #ddddff;">background: #ddddff;</span> text-align: right;</code>
  
 
; ''liststyle''
 
; ''liststyle''
 
: Specifies CSS values to apply to the cells specified via the ''list<sub>n</sub>'' cells. This option overrides any styles that are applied to the entire table. Examples:
 
: Specifies CSS values to apply to the cells specified via the ''list<sub>n</sub>'' cells. This option overrides any styles that are applied to the entire table. Examples:
:: <code>liststyle = padding: 5px 10px 5px 10px;</code>  
+
:: <code>liststyle = padding: 0.5em 1em;</code>
:Default is: <code>width:100%; font-size:95%;</code>
+
: Default is: <code>width: 100%; font-size: 95%;</code>
  
==Examples==
+
== Examples ==
===Changing the navbox title===
+
=== Changing the navbox title ===
 
<pre>
 
<pre>
 
{{Australia topic
 
{{Australia topic
|title  = [[History of Australia]] by political division
+
| title  = [[History of Australia]] by political division
|prefix = History of
+
| prefix = History of
 
}}
 
}}
 
</pre>
 
</pre>
 
{{Australia topic
 
{{Australia topic
|state  = uncollapsed
+
| state  = uncollapsed
|title  = [[History of Australia]] by political division
+
| title  = [[History of Australia]] by political division
|prefix = History of
+
| prefix = History of
 
}}
 
}}
  
===Excluding display of external territories===
+
=== Excluding display of external territories ===
 
This example also shows the use of the '''titlestyle''' to change the background color and the '''groupstyle''' parameters to change the background color and vertical alignment of text.
 
This example also shows the use of the '''titlestyle''' to change the background color and the '''groupstyle''' parameters to change the background color and vertical alignment of text.
 
<pre>
 
<pre>
 
{{Australia topic
 
{{Australia topic
|title  = [[List of birds of Australia|Birds of Australia]]
+
| title  = [[List of birds of Australia|Birds of Australia]]
|titlestyle = background: #64E986;
+
| titlestyle = background: #64E986;
|groupstyle = background: #6AFB92; vertical-align: top;
+
| groupstyle = background: #6AFB92; vertical-align: top;
|prefix = List of birds of
+
| prefix = List of birds of
|VI = Victoria
+
| VI = Victoria
|exclude-ext = y
+
| exclude-ext = y
 
}}
 
}}
 
</pre>
 
</pre>
 
{{Australia topic
 
{{Australia topic
|title  = [[List of birds of Australia|Birds of Australia]]
+
| title  = [[List of birds of Australia|Birds of Australia]]
|titlestyle = background: #64E986;
+
| titlestyle = background: #64E986;
|groupstyle = background: #6AFB92; vertical-align: top;
+
| groupstyle = background: #6AFB92; vertical-align: top;
|prefix = List of birds of
+
| prefix = List of birds of
|VI = Victoria
+
| VI = Victoria
|exclude-ext = y
+
| exclude-ext = y
 
}}
 
}}
  
===Adding suffix without leading space===
+
=== Adding suffix without leading space ===
 
This example also shows the use of the '''liststyle''' parameter to add some extra padding around the list, the '''group1''' parameter to remove the "Mainland" heading, and the '''VI''' parameter to change link from "Victoria (Australia)" to "Victoria".
 
This example also shows the use of the '''liststyle''' parameter to add some extra padding around the list, the '''group1''' parameter to remove the "Mainland" heading, and the '''VI''' parameter to change link from "Victoria (Australia)" to "Victoria".
 
<pre>
 
<pre>
 
{{Australia topic
 
{{Australia topic
|liststyle = padding: 5px 10px 5px 10px;
+
| liststyle = padding: 0.5em 1em;
|group1 =
+
| group1 =  
|prefix = List of
+
| prefix = List of
|suffix = -related topics
+
| suffix = -related topics
|VI = Victoria
+
| VI = Victoria
|exclude-ext = y
+
| exclude-ext = y
 
}}
 
}}
 
</pre>
 
</pre>
 
{{Australia topic
 
{{Australia topic
|liststyle = padding: 5px 10px 5px 10px;
+
| liststyle = padding: 0.5em 1em;
|group1 =
+
| group1 =  
|prefix = List of
+
| prefix = List of
|suffix = -related topics
+
| suffix = -related topics
|VI = Victoria
+
| VI = Victoria
|exclude-ext = y
+
| exclude-ext = y
 
}}
 
}}
  
===Adding suffix with leading space===
+
=== Adding suffix with leading space ===
 
Note the use of an [[underscore]] in place of the leading space in the suffix. This is done to accommodate the use of suffixes without a leading space, as in the previous example. A title should be specified to avoid the underscore appearing in the title.
 
Note the use of an [[underscore]] in place of the leading space in the suffix. This is done to accommodate the use of suffixes without a leading space, as in the previous example. A title should be specified to avoid the underscore appearing in the title.
 
<pre>
 
<pre>
 
{{Australia topic
 
{{Australia topic
|title  = [[List of rivers of Australia|Rivers of Australia]]  
+
| title  = [[List of rivers of Australia|Rivers of Australia]]
|prefix = List of
+
| prefix = List of
|suffix = _rivers
+
| suffix = _rivers
|VI = Victoria
+
| VI = Victoria
|exclude-ext = y
+
| exclude-ext = y
 
}}
 
}}
 
</pre>
 
</pre>
 
{{Australia topic
 
{{Australia topic
|title  = [[List of rivers of Australia|Rivers of Australia]]  
+
| title  = [[List of rivers of Australia|Rivers of Australia]]
|prefix = List of
+
| prefix = List of
|suffix = _rivers
+
| suffix = _rivers
|VI = Victoria
+
| VI = Victoria
|exclude-ext = y
+
| exclude-ext = y
 
}}
 
}}
  
===Adding extra rows===
+
=== Adding extra rows ===
 
This example shows the use of the '''group1'''/ '''list1''' & '''group5'''/ '''list5''' parameters to add a group and list above and below the default rows.
 
This example shows the use of the '''group1'''/ '''list1''' & '''group5'''/ '''list5''' parameters to add a group and list above and below the default rows.
  
<pre style="overflow:auto;">
+
<pre style="overflow: auto;">
 
{{Australia topic
 
{{Australia topic
<!--passed through to Template: Navbox -->
+
<!-- passed through to Template: Navbox -->
 
| title  = [[Constitution]]s of [[Australia]]
 
| title  = [[Constitution]]s of [[Australia]]
 
| group1  = Commonwealth
 
| group1  = Commonwealth
Line 210: Line 210:
 
</pre>
 
</pre>
 
{{Australia topic
 
{{Australia topic
<!--passed through to Template: Navbox -->
+
<!-- passed through to Template: Navbox -->
 
| title  = [[Constitution]]s of [[Australia]]
 
| title  = [[Constitution]]s of [[Australia]]
 
| group1  = Commonwealth
 
| group1  = Commonwealth
Line 222: Line 222:
 
}}
 
}}
  
===Using a suffix without a prefix===
+
=== Using a suffix without a prefix ===
<pre style="overflow:auto;">
+
<pre style="overflow: auto;">
 
{{Australia topic
 
{{Australia topic
<!--passed through to Template: Navbox -->
+
<!-- passed through to Template: Navbox -->
 
| title  = [[Law enforcement in Australia|Police forces]] in [[Australia]]
 
| title  = [[Law enforcement in Australia|Police forces]] in [[Australia]]
 
<!-- specific to Template: Australia topic -->
 
<!-- specific to Template: Australia topic -->
Line 234: Line 234:
 
</pre>
 
</pre>
 
{{Australia topic
 
{{Australia topic
<!--passed through to Template: Navbox -->
+
<!-- passed through to Template: Navbox -->
 
| title  = [[Law enforcement in Australia|Police forces]] in [[Australia]]
 
| title  = [[Law enforcement in Australia|Police forces]] in [[Australia]]
 
<!-- specific to Template: Australia topic -->
 
<!-- specific to Template: Australia topic -->
Line 242: Line 242:
 
}}
 
}}
  
===Creating a new template===
+
=== Creating a new template ===
 
Code used to create [[Template:Universities in Australia]]:
 
Code used to create [[Template:Universities in Australia]]:
 
<pre>
 
<pre>
 
{{Australia topic
 
{{Australia topic
<!--passed through to Template:Navbox-->
+
<!-- passed through to Template:Navbox -->
 
| name  = {{subst:PAGENAME}}
 
| name  = {{subst:PAGENAME}}
 
| title=[[List of universities in Australia|Universities in Australia]]
 
| title=[[List of universities in Australia|Universities in Australia]]
<!--specific to Template:United States topic-->
+
<!-- specific to Template:Australia topic -->
 
| prefix = List of universities in
 
| prefix = List of universities in
 
| VI = Victoria
 
| VI = Victoria
Line 261: Line 261:
 
Result:
 
Result:
 
{{Australia topic
 
{{Australia topic
<!--passed through to Template:Navbox-->
+
<!-- passed through to Template:Navbox -->
 
| name  = Australia topic/doc
 
| name  = Australia topic/doc
 
| title=[[List of universities in Australia|Universities in Australia]]
 
| title=[[List of universities in Australia|Universities in Australia]]
<!--specific to Template:United States topic-->
+
<!-- specific to Template:Australia topic -->
 
| prefix = List of universities in
 
| prefix = List of universities in
 
| VI = Victoria
 
| VI = Victoria
Line 276: Line 276:
 
{{Continent-based templates}}
 
{{Continent-based templates}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
<!-- Add categories below-->
+
<!-- Add categories below -->
[[Category:Australia topic navigational boxes| ]]
+
[[Category:Australia navigational boxes| ]]
 
[[Category:Configurable area-topic templates|Australia]]
 
[[Category:Configurable area-topic templates|Australia]]
 +
[[Category:Country subdivision navboxes]]
  
<!-- Add interwikis below-->
+
<!-- Add interwikis below -->
  
</includeonly>
+
}}</includeonly>

Latest revision as of 23:24, 23 April 2020


This template allows for the quick creation of a navigational template for any group of articles which contains the names of Australian states. It uses {{Navbox}} to create the navigation box.

Blank syntax

{{Australia topic
<!-- passed through to Template:Navbox -->
| name       = 
| state      = 
| title      = 
| titlestyle = 
| bodystyle  = 
| groupstyle = 
<!-- specific to Template:Australia topic -->
| prefix = 
| suffix = 
| exclude-int = 
| exclude-ext = 
}}

Parameters

Mandatory

name
Mandatory when creating a new template (i.e. Template:Hospitals in Australia), otherwise the "view · talk · edit" links will connect to Template:Australia topic. You can enter {{subst:PAGENAME}} for this value as a shortcut.

One of the following combinations is needed to create the links:

prefix
Places text before the state or territory name.
suffix
Places text after the state or territory name.
prefix and suffix
Places text before and after the state or territory name.

Optional

state
A navbox with autocollapse will start out collapsed if there are two or more tables on the same page that use collapsible. If set to collapsed, the navbox will always start out in a collapsed state. If set to blank or anything other than autocollapse or collapsed, the navbox will always start out in an expanded state.
Default is: autocollapse.
title
Text that appears centered in the titlebar (the top bar). This is optional because the use of either prefix, suffix or both will automatically generate a title if the title parameter is not supplied. This parameter is not automatically wiki-linked.
navbar*
Defaults to Tnavbar. If set to plain, the v • d • e links on the left side of the titlebar will not be displayed, and padding will be automatically used to keep the title centered. Use off to remove the v • d • e links, but not apply padding (this is for advanced use only; the "plain" option should suffice for most applications where a navbar is not desired). Note that it is highly recommended that one does not hide the navbar, in order to make it easier for users to edit the template, and to keep a standard style across pages.

Excluding groups

In some instances, the territories may not have their own articles on particular topics. To disable their inclusion in the template and avoid unnecessary red links, add any or all of the following parameters:

exclude-int
Set to any value this excludes display of the group named Territories which links to the Australian Capital Territory and the other internal territories.
exclude-ext
Set to any value this excludes display of the group named External territories which links to Christmas Island, Coral Sea Islands and the other external territories.

Adding groups and lists

Some templates may require a list of links not already included in the template. These can be specified as follows:

group1
Header text displayed in cell to left of text specified in list1.
list1
Text or a list of links that is displayed above the state and territory links.
group5
Header text displayed in cell to left of text specified in list3.
list5
Text or a list of links that is displayed below the state and territory links.
above
A full-width cell (no group header) displayed above the template's body (between the title and state/territory links).
below
A full-width cell (no group header) displayed below the template's body.

Change state name used in link

Links for Victoria may use "Victoria (Australia)". The following parameter allows for substitution where the article name does not use the default.

VI
Replace "Victoria (Australia)" in links with specified text, i.e. "Victoria".
| VI = Victoria

Styles

titlestyle
Specifies CSS values to apply to the title. One use of this is to set the background color of the title:
titlestyle = background: #0000FF;
titlestyle = background: blue;
Default is: background: #ccccff;
bodystyle
Specifies CSS values to apply to the entire template. This will not override the following {{Navbox}} default styles:
abovestyle = background: #ddddff;
belowstyle = background: #ddddff;
groupstyle = background: #ddddff; text-align: right;
liststyle = width: 100%; font-size: 95%;
abovestyle
belowstyle
Specifies CSS values to apply to the cell specified via the above and below parameters. For instance:
belowstyle = border-top: #ccccff 1px solid;
Default is: background: #ddddff;
groupstyle
Specifies CSS values to apply to the cells specified via the groupn cells. This option overrides any styles that are applied to the entire table. Example:
groupstyle = background: #6AFB92; vertical-align: top;
Default is: background: #ddddff; text-align: right;
liststyle
Specifies CSS values to apply to the cells specified via the listn cells. This option overrides any styles that are applied to the entire table. Examples:
liststyle = padding: 0.5em 1em;
Default is: width: 100%; font-size: 95%;

Examples

Changing the navbox title

{{Australia topic
| title  = [[History of Australia]] by political division
| prefix = History of
}}

Excluding display of external territories

This example also shows the use of the titlestyle to change the background color and the groupstyle parameters to change the background color and vertical alignment of text.

{{Australia topic
| title  = [[List of birds of Australia|Birds of Australia]]
| titlestyle = background: #64E986;
| groupstyle = background: #6AFB92; vertical-align: top;
| prefix = List of birds of
| VI = Victoria
| exclude-ext = y
}}

Adding suffix without leading space

This example also shows the use of the liststyle parameter to add some extra padding around the list, the group1 parameter to remove the "Mainland" heading, and the VI parameter to change link from "Victoria (Australia)" to "Victoria".

{{Australia topic
| liststyle = padding: 0.5em 1em;
| group1 = 
| prefix = List of
| suffix = -related topics
| VI = Victoria
| exclude-ext = y
}}

Adding suffix with leading space

Note the use of an underscore in place of the leading space in the suffix. This is done to accommodate the use of suffixes without a leading space, as in the previous example. A title should be specified to avoid the underscore appearing in the title.

{{Australia topic
| title  = [[List of rivers of Australia|Rivers of Australia]]
| prefix = List of
| suffix = _rivers
| VI = Victoria
| exclude-ext = y
}}

Adding extra rows

This example shows the use of the group1/ list1 & group5/ list5 parameters to add a group and list above and below the default rows.

{{Australia topic
<!-- passed through to Template: Navbox -->
| title   = [[Constitution]]s of [[Australia]]
| group1  = Commonwealth
| list1   = [[Constitution of Australia|Australia]]
| group5  = {{nowrap|External territories}}
| list5   = [[Norfolk Island Act 1979|Norfolk Island]]
<!-- specific to Template: Australia topic -->
| prefix  = Constitution of
| VI      = Victoria
| exclude-ext= y
}}

Using a suffix without a prefix

{{Australia topic
<!-- passed through to Template: Navbox -->
| title   = [[Law enforcement in Australia|Police forces]] in [[Australia]]
<!-- specific to Template: Australia topic -->
| suffix  = _Police
| VI = Victoria
| exclude-ext= y
}}

Creating a new template

Code used to create Template:Universities in Australia:

{{Australia topic
<!-- passed through to Template:Navbox -->
| name  = {{subst:PAGENAME}}
| title=[[List of universities in Australia|Universities in Australia]]
<!-- specific to Template:Australia topic -->
| prefix = List of universities in
| VI = Victoria
| exclude-ext = y
}}<noinclude>
[[Category:Australia topic navigational boxes|{{PAGENAME}}]]
</noinclude>

Note: {{subst:PAGENAME}} in the above example would be replaced by Universities in Australia when this code is saved in Template:Universities in Australia.

Result:

Templates implemented with Australia topic

See also