Template:Navboxes/doc

From FamilySearch Wiki

(Difference between revisions)
(Created page with '{{Documentation subpage}}<!--should only display when viewed from /doc page--> <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE YOU CAN EDIT THE TEM…')
 
(suppress auto-category)
(4 intermediate revisions by one user not shown)
Line 5: Line 5:
 
     YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT
 
     YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT
 
-->
 
-->
This template is used group together Navigation boxes  
+
This template is used group together [[Help:navigation boxes|navigation boxes]]
  
 
==Parameters==
 
==Parameters==
Line 25: Line 25:
 
<pre>
 
<pre>
 
{{Navboxes
 
{{Navboxes
| title = England
+
| title = '''Links to [[England]]-related articles'''
 
| state = expanded
 
| state = expanded
| titlestyle = background: white <-- hexcode can also be used, like #AAFFFF (default=violet) -->
 
 
| list  = {{Place|England}}
 
| list  = {{Place|England}}
 
{{England counties}}
 
{{England counties}}
Line 35: Line 34:
 
which gives
 
which gives
 
{{Navboxes
 
{{Navboxes
| title = England
+
| title = '''Links to [[England]]-related articles'''
 
| state = expanded
 
| state = expanded
| titlestyle = background: white <-- hexcode can also be used, like #AAFFFF (default=violet) -->
 
 
| list  = {{Place|England}}
 
| list  = {{Place|England}}
{{England counties}}
+
{{England counties|category=}}
 
}}
 
}}
  
Line 47: Line 45:
 
<pre>
 
<pre>
 
{{Navboxes
 
{{Navboxes
|title = Geographic locale
+
|title = '''Geographic locale'''
 
|list =  
 
|list =  
'''[[Geographic coordinate system|Lat. and Long.]] {{coord|18|25|53|N|64|37|23|W|display=inline}} {{color|darkblue|([[Road Town]], [[British Virgin Islands]])}}'''
+
'''Lat. and Long. {{coord|50|43|12|N|1|52|48|W|display=inline}}  
 +
{{color|darkblue|([[Bournemouth, Hampshire|]], [[England]])}}'''
 
}}
 
}}
 
</pre>
 
</pre>
  
 
{{Navboxes
 
{{Navboxes
|title = Geographic locale
+
|title = '''Geographic locale'''
 
|list =  
 
|list =  
'''[[Geographic coordinate system|Lat. and Long.]] {{coord|18|25|53|N|64|37|23|W|display=inline}} {{color|darkblue|([[Road Town]], [[British Virgin Islands]])}}'''
+
'''Lat. and Long. {{coord|50|43|12|N|1|52|48|W|display=inline}} {{color|darkblue|([[Bournemouth, Hampshire|Bournemouth]], [[England]])}}'''
 
}}
 
}}
  

Revision as of 14:34, 22 June 2012

This template is used group together navigation boxes

Parameters

title (optional)

Text to be placed in title of this box. Defaults to: Links to related articles.

state (optional)

collapsed to show this template in its collapsed (hidden) state
expanded to show this template in its expanded (fully visible) state
autocollapse to show this template in its collapsed (hidden) state only if there is another collapsible template on the page
Defaults to: collapsed.

list (required)

The templates to be grouped.

Usage

{{Navboxes
| title = '''Links to [[England]]-related articles'''
| state = expanded
| list  = {{Place|England}}
{{England counties}}
}}

which gives

Coordinates template

The {{coord}} template may be included in the template group. Just remember to set the "display=" parameter equal to "inline" thus: {{coord|18|25|53|N|64|37|23|W|display=inline}}. This enables the coordinates to appear no matter what skin you're in. The {{coord}} template can even be nested in a Navbox titled Geographic locale, which is already found on many country pages.

{{Navboxes
|title = '''Geographic locale'''
|list = 
'''Lat. and Long. {{coord|50|43|12|N|1|52|48|W|display=inline}} 
{{color|darkblue|([[Bournemouth, Hampshire|]], [[England]])}}'''
}}