01.12.2012 Views

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Interwiki links<br />

Tab. 6.2<br />

Categories<br />

82<br />

��<br />

��<br />

��<br />

These individual namespaces are ideal for our fire project. For instance,<br />

we can place all of <strong>the</strong> meeting minutes in an area with <strong>the</strong><br />

name Minutes: Each entry would be named for its respective date,<br />

such as Minutes:12152004. A fur<strong>the</strong>r possible use is for work groups<br />

who would most likely want to generate several individual pages.<br />

The Summer Festival Group, for example, could generate <strong>the</strong>ir task<br />

list under <strong>the</strong> name SummerFestival:Todo, whereas <strong>the</strong> Information<br />

Booth Group would call <strong>the</strong>ir list InfoBooth:Todo, without any conflict<br />

between <strong>the</strong> groups. In addition, <strong>the</strong> pages are automatically allocated,<br />

so we know that every page whose name begins with<br />

“SummerFestival” belongs to that group.<br />

To create links between various wikis, a convention is used that is<br />

similar to that of namespaces: The interwiki links. Instead of using<br />

<strong>the</strong> name of a namespace, simply use <strong>the</strong> name of ano<strong>the</strong>r wiki.<br />

However, <strong>the</strong> system must recognize <strong>the</strong>se names, so that <strong>the</strong> URL<br />

can be replaced. You can find a few pre-defined wiki links in<br />

Tab. 6.2.<br />

Prefix Wiki URL<br />

TWiki TWiki http://TWiki.org/cgi-bin/view/<br />

Wiki WikiWiki-<br />

Web<br />

http://c2.com/cgi/wiki?<br />

WikiPedia Wikipedia http://www.wikipedia.org/wiki/<br />

Google Google http://www.google.com/search?q=<br />

As you can see, you can link to o<strong>the</strong>r destinations besides wikis,<br />

such as search engines like Google. You can find a complete list of<br />

pre-defined interwiki prefixes in <strong>the</strong> file maintenance/interwiki.sql.<br />

You can learn how to make your own entries in Chapter 8.2.<br />

A second type of organizing pages is through categories. This refers<br />

to a categorization of page content under a category name.<br />

These names are described in <strong>the</strong> Category namespace. Unlike<br />

namespaces, any number of categories can be generated and by any<br />

user. This is done by creating a page in <strong>the</strong> namespace Category. All<br />

you have to do to allocate a page to a category is insert a link to <strong>the</strong><br />

category page in <strong>the</strong> source text.<br />

[[Category:MyCategory]]<br />

Now a note appears at <strong>the</strong> end of <strong>the</strong> page indicating under what<br />

name <strong>the</strong> article has been categorized. If you wish to create a link to<br />

<strong>the</strong> category page itself, you must prefix <strong>the</strong> word “Category” with a<br />

colon. Just as in <strong>the</strong> case of creating new pages, you can create new<br />

categories with <strong>the</strong> categorization procedure.<br />

6 Multi-Page Structures

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!