wiki:Directives  

ZAM Network
Wikibase™
Wikibase Documentation
Wiki:Documentation

Contents [hide]

Redirect

When the compiler is building a page, it follows any link on that page to check for redirects. If #redirect is the FIRST thing it sees on a page, then it follows that directive, and repeats this test with each jump until it finds the destination page, then returns that to the original page and creates the link.

Syntax:

  • #redirect [[pagename]] - redirects to a normal page
  • #redirect [[pagename#header]] - redirects to a header target within a page
  • #redirect [[:Category:pagename]] - redirects to a category
  • #redirect [[Category:pagename]] - redirects to a category, but also adds the pagename where the #redirect lives to the category. This is NOT usually desirable.

Page Layout

  • __NOTOC__ suppresses the Table of Contents on the current page
  • __FORCETOC__ tells the compiler to place the TOC at it's normal, default position. NOTE: __FORCETOC__ is not currently supported in the ZAM Wikibase.
  • __TOC__ overrides __NOTOC__ and tells the compiler to place the TOC HERE. The override is useful if a template on the page suppresses TOC but, on a specific page, you want a TOC anyway. This directive is also useful for pages where the dafault placement of the TOC seriously disrupts the page layout.
  • __NOCAT__ suppresses display of the Categories box on the bottom of the page. It does not mean the page is not added to categories, it just does not show the list.
  • {{#catstyle:option}} - Articles section will display according to option. For the three image options, it suppresses the list of subcategories (not good).
    • list - This is the default, included only for completeness
    • checklist - single-column list of articles with a box next to each, perfect for printing out and using as a checklist.
    • checklist3 - three-column list of articles with a box next to each, perfect for printing out and using as a checklist. This was intended for Collections.
    • gallery - link to the article the image is linked to (articles with no image will be thumbnailed as a grey circle with a line through it)
    • igallery - link to the article the image is linked to, but only if the page HAS at least one image
    • igallery2 - link to the Image system of the image

Template Transclusion Control

The following tags can be used just like HTML tags, but help the template writer to control what gets transcluded when a template is expanded on a page. <nowiki>This is an example of using a tag in your template.</nowiki>

<nowiki></nowiki>

  • The text surrounded by this tag will be rendered exactly as shown, with no expansion of the contents.

<noinclude></noinclude>

  • marks a section of the Template: page that should render when looking at the template page but not when it is transcluded.
<includeonly></includeonly>
  • marks a section that will NOT render on the Template: page, but will when transcluded. This is very useful for category links. Otherwise, your templates would be in the category you intended to have pages in.

<onlyinclude></onlyinclude>

  • This one is kinda like noinclude and includeonly at the same time. It specifies a section that will be expanded but will not show on the Template: page.

References (a.k.a. Footnotes)

Footnotes are numbered in the sequence they are encountered during compilation, and added to the references table, then the table is built at the location of the <references> tag,with a link back up into the page to the location of the reference.

<ref></ref>

  • The text surrounded by this tag will be added to the references table and a numbered footnote link, like [1], is displayed at the location. This information will NOT be displayed unless you include a <references> tag somewhere on the page, usually at the very bottom. Each footnote is numbered in the order it was compiled, and a ^ at the start of the line is linked back up into the page to where it was defined.
  • Example: The first zone for the new expansion will be released on 8/1/2009<ref>[http://us.runesofmagic.com/us/news,id292,off_new_shores_new_world_map.html Off to new shores: the new world map!], from the official RoM Website News</ref>
  • displays as: The first zone for the new expansion will be released on 8/1/2009[1]

<references>

  • single tag, no end tag. Tells the compiler to put the references table here.

Alternate syntax for REF tags (proposed)

<ref id="target"></ref>

  • Allows multiple footnotes to reference the same citation. Only the text of the first footnote is used. Instead of a ^ linking back to the text, you would have lettered references and all of the footnote links inthe text would share the number assigned to the first one. target can be any single word or sequence of letters and numbers, but must not contain spaces or special characters (such as #, =, ?, &, etc).
  • Example: I thought so too, but this is disputed<ref target="zoom">[http://www.zoom.com/a_story.html Zoom FF coverage]&lr;/ref>. In fact, no one seems to have seen ANY Wombats<ref id="zoom">&lr;/ref>, at all!
  • display in the text: I thought so too, but this is disputed[1]. In fact, no one seems to have seen ANY Wombats[1], at all!
  • display in the footnotes section: 1. [a][b] Zoom FF coverage

  1. ^ Off to new shores: the new world map!, from the official RoM Website News

This page last modified 2011-02-22 22:55:58.