Template:Navbox right/doc

From Tardis Wiki, the free Doctor Who reference
< Template:Navbox right
Revision as of 20:52, 20 March 2012 by CzechOut (talk | contribs) (Created page with "'''{{tl|{{PAGENAME}}}}''' is one of the fundamental building blocks of the wiki. It allows you to very quickly make an navigational box, or navbox, that fits into the overall st...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{Navbox right/doc}} is one of the fundamental building blocks of the wiki. It allows you to very quickly make an navigational box, or navbox, that fits into the overall style of the rest of the wiki.

Usage

  1. Begin a new template page
  2. Insert the following
    <includeonly>{{Navbox right|<title>|<list>}}</includeonly><noinclude><noinclude>{{documentation}}[[Category:Navigation templates]]</noinclude>
  3. Substitute the title at <title> and the list of things at <list>
  4. Publish!

Example

Let's imagine there's a need for a new navbox that lists the various US presidents seen in the DWU. There's not, but let's imagine it.

We'd begin by creating a page called Template:POTUS. On that brand new page we'd enter the following code:

<includeonly>{{Navbox right|Presidents of the United States|[[George Washington]], [[Abraham Lincoln]], [[Herbert Hoover]], [[Richard Nixon]], [[Bill Clinton]], [[Barack Obama]]}}</includeonly><noinclude><noinclude>{{documentation}}[[Category:Navigation templates]]</noinclude>

It's really very easy. Just {{navbox right|<name of navbox>|<list of things in the navbox>}}

Display

<--For the purposes of this demonstration, the following full code is used here, because Template:POTUS doesn't exist. If Template:POTUS did exist, then this would be called by simply typing

Template:POTUS

should ordinarily NOT be used directly on a page. -->

What do you get by using this approach to creating a navbox? Something that works right out of the box. No fiddling with code, no experimenting with colours, no sizing this margin or that padding' setting. It'll fit right under any pre-existing infoboxes and look like it belongs on the page. It just works