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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Naming links<br />

Parts of words<br />

as links<br />

76<br />

��<br />

��<br />

��<br />

These characters fulfill special control and layout functions in <strong>the</strong><br />

wiki source code or in PHP. Spaces may be used. They are stored<br />

within <strong>the</strong> system as an underline. Conversely, this means that underlines<br />

that you use in a title will be displayed as spaces.<br />

The wiki software takes care of formatting <strong>the</strong> links. It is assumed<br />

that <strong>the</strong> name of an article is distinct enough to indicate to <strong>the</strong> reader<br />

what <strong>the</strong> respective page is about. That is why <strong>the</strong> page title is simply<br />

used as <strong>the</strong> link name. Sometimes, however, it can be useful to<br />

have ano<strong>the</strong>r description. This is <strong>the</strong> case, for instance, when you<br />

have a hierarchical order of pages for which a link “upwards” in <strong>the</strong><br />

structure facilitates navigation. Also, synonymous descriptions, e.g.<br />

“tribe” and “clan,” for two different pages should not be used, since<br />

<strong>the</strong>y indicate <strong>the</strong> same thing. The necessary separation between link<br />

target and name can be achieved with a so-called “piped link”:<br />

[[page title|description]]<br />

As you can see, a horizontal line (pipe symbol) is placed after <strong>the</strong><br />

page title, behind which you can insert a page description that can<br />

consist of one or more words.<br />

Within <strong>the</strong> context of a sentence, a word can have various forms<br />

based on <strong>the</strong> rules of grammar. Since all of <strong>the</strong>se forms link to <strong>the</strong><br />

same page, <strong>the</strong> possibility was created to mark only <strong>the</strong> front part of<br />

a word as a link:<br />

[[Link]]s<br />

In Preview mode, however, <strong>the</strong> whole word is identified as a link.<br />

The following construction is a ra<strong>the</strong>r exaggerated example.<br />

[[caves|cave]][[dwelling]]<br />

Here, two links are included in a single word. The first part of <strong>the</strong><br />

word links to “cave”, <strong>the</strong> second to “dwelling.” One could surely<br />

debate about whe<strong>the</strong>r or not such a structure is very useful, especially<br />

since, when looking at it, one cannot detect that two different<br />

links are embedded in <strong>the</strong> word. However, <strong>the</strong> point is that it is possible.<br />

Now it is time to give our wiki example some structure. We can<br />

divide <strong>the</strong> wiki into assorted pages that fulfill various tasks.<br />

Work areas:<br />

* [[Info booth | Planned information booth]]<br />

* [[Petition | Letter to <strong>the</strong> chief]]<br />

6 Multi-Page Structures

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

Saved successfully!

Ooh no, something went wrong!