Extension:CreateVirtualPages

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
Create Virtual Pages

Release status: beta

Implementation Special page
Description Create pages for all pages referenced by Semantic MediaWiki links.
Author(s) dbutalk
Last version 1.0-beta1
MediaWiki 1.11
License GPL
Download http://davidbu.ch/mann/blog/2010-03-12/mediawiki-extensions.html
In the ZIP download

Requires Semantic MediaWiki to be installed

Check usage and version matrix

Contents

What can this extension do? [edit]

CreateVirtualPages is a small extension for Extension:SemanticMediaWiki. It automatically creates pages if they have any semantic information. This is particularly useful together with the Extension:ShowIncomingRelations extension to show information about subjects not (yet) having their own real entry.

Usage [edit]

The content of the created pages is defined by the template VirtualPage. I recommend to put into that template something like

''This article has been automatically created because it is referenced by semantic information.''
 <includeonly>[[Category:VirtualPage]]</includeonly>

And create a category VirtualPage where you can put something along the line:

Articles in this category have been automatically created because they are referenced with semantic information. They contain no data, but show a factbox.

Download instructions [edit]

Download the zip file from http://davidbu.ch/mann/blog/2010-03-12/mediawiki-extensions.html and extract it into the extensions folder of your MediaWiki installation.

Installation [edit]

To install this extension, add the following to LocalSettings.php:

require_once("$IP/extensions/CreateVirtualPages/CreateVirtualPages.php");


Developpers [edit]

You can use this extension for delayed "touching" of other pages from your extension. Use the array $cvpgExternalTouchPages. See CreateVirtualPages.php file inline documentation on how to use that array.

See also [edit]

This extension requires the Extension:SemanticMediaWiki. It has been developped in conjunction with Extension:ShowIncomingRelations.