Difference between revisions of "Template:Navbox"

From Second Life Wiki
Jump to navigation Jump to search
Line 18: Line 18:
</div>
</div>


{{KBtip|1=You can use a nested template for the "content", assuring if you make one change to the nested template, it will sync across all instances of the same Navbox. This saves time and trouble when you have to add or remove pages from the navigational structure. For example, [[Linden_Lab_Official:Maturity_ratings:_an_overview|see the navbox code on this page]], which points to [[Template:Navbox/Adult-title]] and [[Template:Navbox/Adult]]. See the [[Style_guide#Navigation_Templates|Style Guide]] for Navbox usage relevant to the [[Knowledge Base]].}}
{{KBtip|1=You can use nested templates for "title" and "content", assuring if you make one change to the nested templates, they'll sync across all instances of the same Navbox. This ''saves a lot of time and trouble'' when you have to add or remove pages from the navigational structure. For example, [[Linden_Lab_Official:Maturity_ratings:_an_overview|see the navbox code on this page]], which points to [[Template:Navbox/Adult-title]] and [[Template:Navbox/Adult]]. See the [[Style_guide#Navigation_Templates|Style Guide]] for Navbox usage relevant to the [[Knowledge Base]].}}


== Example ==
== Example ==

Revision as of 09:22, 12 October 2009

{{{title}}}

{{{content}}}

This is a simple template intended for use in creating navigation templates. It takes two parameters:

  • title - Title of the navigation group. This can also be a link using normal wiki syntax.
  • content - Text to appear in the navigation template "box". The expectation is that this is generally a bulleted list; though it can be in any text.

Usage

{{Navbox
|title=your title
|content=your content
}}
KBtip2.png Tip: You can use nested templates for "title" and "content", assuring if you make one change to the nested templates, they'll sync across all instances of the same Navbox. This saves a lot of time and trouble when you have to add or remove pages from the navigational structure. For example, see the navbox code on this page, which points to Template:Navbox/Adult-title and Template:Navbox/Adult. See the Style Guide for Navbox usage relevant to the Knowledge Base.

Example

Input:

{{Navbox
|title=[[User:Magellan Linden|Magellan]]'s Discoveries
|content=*[[Nautilus City investigation|Nautilus City]]
**[[Magellan_and_Gaeta|Gaeta]]
**[[LDPW]]
*[[Agni]]
*[[Aditi]]
}}

Output: