Skip to Content
MediaWiki
book

MediaWiki

by Daniel J. Barrett
October 2008
Beginner
380 pages
9h 16m
English
O'Reilly Media, Inc.
Content preview from MediaWiki

Chapter 7. Advanced Article Construction

So far, we’ve looked at wiki articles as individual documents, constructed from familiar parts like paragraphs, formatted text, bulleted lists, tables, and so on. In this view, the goal is to turn ideas into articles and to write and typeset them effectively. But of course, a wiki is more than a bunch of independent articles. The collection serves a common purpose, whether it’s an encyclopedia, a taxonomy of pets, or a corporate knowledge system. That’s why we use categories and namespaces to organize articles: to make the information findable and serve this common purpose. In this chapter, we’ll continue to take this “larger” view of the wiki and construct sets of articles that share information among themselves.

Suppose you’re writing a series of 50 wiki articles about pet illnesses, and every article contains the same link to a popular veterinary website. You could simply copy and paste the link into each article, but if the URL ever changed, you’d need to update all 50 articles. This kind of annoyance is called a maintenance problem, and it gets worse as wikis grow. With MediaWiki, you can avoid this problem by writing the URL in only one article and automatically making it appear in all 50, by way of a feature called transclusion. This is just one of MediaWiki’s sharing features we’ll discuss in this chapter. Others include:

Consistency maintenance

Why share content among articles?

Variables

Special words that stand for (and expand into) ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Wikis For Dummies®

Wikis For Dummies®

Ward Cunningham - Inventor of wikis, Peter Thoeny, Dan Woods
CentOS Quick Start Guide

CentOS Quick Start Guide

Shiwang Kalkhanda
PHP 7 Programming Blueprints

PHP 7 Programming Blueprints

Jose Palala, Martin Helmich
PHP 7: Real World Application Development

PHP 7: Real World Application Development

Doug Bierer, Altaf Hussain, Branko Ajzele

Publisher Resources

ISBN: 9780596156299Errata Page