ArticleslgStudy

computer science

PmWiki

PmWiki is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand PmWiki rather than just read about it. In short: PmWiki is a wiki-based content management system designed for a collaborative creation and maintenance of websites. It is free software written in PHP, licensed under the terms of the GNU General Public License.

PmWiki — main illustration
PmWiki — illustration

Key takeaways

  • PmWiki belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect PmWiki to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of PmWiki from memory before moving on to harder problems.

Reference excerpt

PmWiki is a wiki-based content management system designed for a collaborative creation and maintenance of websites. It is free software written in PHP, licensed under the terms of the GNU General Public License. TV Tropes, a popular wiki focused on narrative devices, is based on a proprietary fork of PmWiki.

Design focus PmWiki is a wiki engine intended for collaborative web publishing. It includes features that support collaborative editing with built-in tools for access control, delegation, monitoring, review, and edit reversion. PmWiki's design allows configuration and extension, enabling updates to the core software while supporting local modifications. In addition to standard collaborative features like content management and knowledge bases, PmWiki is utilized by companies and groups as an internal communication platform offering tools for task management and meeting archives. It is also employed by university and research teams. PmWiki's markup syntax includes features such as pagelists, templates, page text variables, conditional directives, and syntax highlighting support, which may not be present in all other wiki engines. The PmWiki markup engine is customizable, and markup rules can be added, replaced or removed, and it can support other markup languages. As an example, the Creole specifications can be enabled. The edit form, since version 2.3.0, can have syntax highlighting enabled for its own wiki markup dialect.

Features

Content storage PmWiki uses regular text files to store content. Each page of the wiki is stored in its own file on the web server. By default pages are stored in 8-bit or UTF-8 encoding, with page text, metadata, and revision history in the same file. According to the author, "For the standard operations (view, edit, page revisions), holding the information in flat files is clearly faster than accessing them in a database..." The storage class is extensible, allowing add-ons to enable other storage systems and formats. For example, with add-ons, a website can use SQLite or MySQL databases, or XML files for storage. PmWiki supports "attachments" (uploads: images or other files) to its wiki pages. The attachments can be versioned. There are PmWiki add-ons allowing easier management of the uploaded files, e.g. deletion or thumbnail/gallery creation.

Wiki structure Wiki pages are contained within namespaces, called "wiki groups". Multiple namespaces can be used, and each namespace can have its own configuration options, add-ons, access control, skin, styles, sidebar (menu), the language of the content, and interface. Hierarchically, every page is contained in a namespace. It is possible to display and navigate through pages in a tree-like structure with a "wiki trail". Through recipes, it is possible to have a flat structure (no wiki groups), multiple nested groups, or sub-pages. Special namespaces are "PmWiki", Site, SiteAdmin, and Category which contain the documentation and some configuration templates.

Markup The PmWiki markup shares similarities with MediaWiki. Here is a sample of commonly used markup rules. Links are usually wrapped in double brackets, optionally with link text:

It is possible to enable internal links for CamelCase words without brackets, and add-ons can enable other link markups like @Page. Headings are preceded with exclamation marks:

! Top-level heading (<h1>) !! Second-level heading ... !!!!!! Sixth-level heading

It is possible to enable an automated table of contents coming with the PmWiki core, or install one among several Table of contents add-ons. Lists are prefixed by "*" (bulleted), "#" (numbered), and ":" (description) and can be nested:

Directives for listing pages and attachments, and including pages and templates:

(:pagelist group=Cookbook order=-time count=20:)

(:attachlist name=*.jpg:)

(:include AnotherPage#fromanchor#toanchor:)

(:include MyTemplate variable=value othervariable="Some value":)

Other page directives allow setting the page title, description, and keywords, disabling layout sections like sidebars or footers, creating tables, or defining page text variables. Add-ons allow for extra functionality. Inline markup:

'''Bold''', ''italic'', @@code (fixed-width)@@, %classname%CSS styled text%%, [-small text-], [+large text+], {+inserted+}, {-deleted-}, '^superscript^', '_subscript_', %hlt php%[@ code block, possibly with syntax highlighting @]

Semantic block tags:

>>classname id=identifier<< Division block >><<

(:div class=name id=identifier:)...(:divend:) (:article ...:)...(:articleend:) (:section ...:)...(:sectionend:) (:header ...:)...(:headerend:) (:footer ...:)...(:footerend:) (:details summary="Toggle details":)...(:detailsend:)

(:div3 ...:)...(:div3end:) - Nested block, div, section, header, footer, article, aside, address, nav, details

Conditional markup:

(:if name *.HomePage:) This is the homepage of a namespace (:elseif auth edit:) Current user can edit (:else:) ... (:ifend:)

Other markup rules can be enabled through recipes (add-ons). HTML is not available for the edit form out of the box, but it is possible to enable selected tags through add-ons.

Skin templates PmWiki includes a templating system for modifying interface layout and design. Since version 2.3.30, the core responsive skin can have a dark theme enabled. The dark mode functions are available for reuse by custom skins.

Access control PmWiki permits users and administrators to establish password protection for individual pages, groups of pages, or the entire site. For example, defined zones may be established to enable collaborative work by certain groups, such as in a company intranet. Password protection can be applied to reading, editing, uploading to, and changing passwords for the restricted zone. The out-of-the-box installation uses "shared passwords" rather than login names, but a built-in option can enable a user/group-based access control system on pages, groups of pages or the whole wiki. PmWiki can use passwords from config files, special wiki pages, and .htpasswd/.htgroup files. There are also user-based authorization possibilities and authentication via external sources (e.g. LDAP, forum databases, etc.).

… excerpt ends here. Continue reading the full article.

Illustrations

PmWiki illustration
PmWiki illustration

Worked examples

Example 1 — a first encounter with PmWiki

Start with the simplest possible case. Write down what PmWiki claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to PmWiki before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about PmWiki ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of PmWiki

In research
PmWiki appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses PmWiki in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
PmWiki is common in secondary-school and first-year university syllabi. It links to neighbouring topics Free content management systems, Free software programmed in PHP, Free wiki software, so understanding it makes those chapters shorter.
In everyday life
Look for PmWiki outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “PmWiki” →

How to study PmWiki in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what PmWiki means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain PmWiki out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is PmWiki in simple terms?

PmWiki is a wiki-based content management system designed for a collaborative creation and maintenance of websites. It is free software written in PHP, licensed under the terms of the GNU General Public License.

Why does PmWiki matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study PmWiki?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on PmWiki.

Tags

  • Free content management systems
  • Free software programmed in PHP
  • Free wiki software

Keep exploring