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.

Up to now, we have only generated one set of templates. If a user<br />

wants to create his own page, he must first make a copy of <strong>the</strong> prototype<br />

ProjectParPage. To do this, <strong>the</strong> first version of <strong>the</strong> participants<br />

page is to be saved with {{subst:ProjectParPage}}. Now<br />

<strong>the</strong> participant has his own copy of <strong>the</strong> page, in which <strong>the</strong> corresponding<br />

placeholder data, such as first name last name,<br />

just needs to be replaced. Then <strong>the</strong> uniform page is finished:<br />

6.5<br />

Forwarding with Redirects<br />

A final means of multi-page design in MediaWiki is found in redirects.<br />

As <strong>the</strong> name indicates, <strong>the</strong>y serve to redirect a user from one<br />

page to ano<strong>the</strong>r. This can come in handy when a page has “moved;”<br />

that is, when it has been copied to ano<strong>the</strong>r page with a new title. In<br />

addition, several values indicating <strong>the</strong> same thing can be consolidated<br />

in this way. Thus, for instance, you could avoid having double<br />

or deviating descriptions of WikiWikiWeb and Wiki, by forwarding<br />

<strong>the</strong> user from one article to <strong>the</strong> o<strong>the</strong>r. Redirects can be installed on a<br />

page as follows:<br />

Generating a<br />

page with a<br />

template<br />

Fig. 6.8<br />

6.5 Forwarding with Redirects �<br />

�<br />

�<br />

99

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

Saved successfully!

Ooh no, something went wrong!