Erweiterung:Collection
![]() Freigabestatus: stabil |
|
---|---|
![]() |
|
Einbindung | Spezialseite , MeinWiki |
Beschreibung | Allows to organize personal selections of pages in a collection that can be edited, persisted and optionally retrieved as PDF, ODF or DocBook (XML) |
Autor(en) | |
Letzte Version | 1.8.0 (2019-05-18) |
Kompatibilitätspolitik | Snapshots werden zusammen mit MediaWiki veröffentlicht. Der Master ist nicht abwärtskompatibel. |
MediaWiki | 1.34+ |
Datenbankänderungen | Nein |
Composer | mediawiki/collection |
Lizenz | GNU General Public License 2.0 oder neuer |
Herunterladen | README |
Beispiel | wiki.openoffice.org |
|
|
Quarterly downloads | 187 (Ranked 45th) |
Public wikis using | 1,243 (Ranked 219th) |
Übersetze die Collection-Erweiterung, wenn sie auf translatewiki.net verfügbar ist | |
Probleme | Offene Aufgaben · Einen Fehler melden |
The Collection extension allows a user to organize personal selections of pages in a collection. Collections can be:
- edited and structured using chapters
- persisted, loaded and shared
- ordered as a printed book at https://pediapress.com/
Zu einer Zeit könnten sie auch:
- als PDF gerendert sein (siehe PDF Writer )
- als ODF-Textdokument exportiert sein (siehe OpenDocument Export )
- als DocBook-XML exportiert sein (siehe XML Bridge )
- als ZIM-Datei exportiert sein (siehe openZIM )
- exported as ePub file (ebook)
See the press release Wikis Go Printable for more information on the original project.
Dokumentation & Unterstützung
The Collection extension uses the Proton service to do most of its heavy lifting. It used OCG before.
You can use the IRC channel #wikimedia-services connect to get in touch with developers.
Use the MediaWiki-extensions-Collection
project in Phabricator in order to report bugs.
A detailed guide on how to prepare your wiki (templates, help pages, categories) if you setup the extension is available at meta.wikimedia.org.
mwlib
Older versions of the Collection extension used the mwlib
library.
Documentation for mwlib
can be found at http://mwlib.readthedocs.org/, and there is a Google group for support and discussion of mwlib
and mwlib.rl
.
mwlib
developers have also been spotted on the pediapress IRC channel:
- Server: irc.freenode.net
- Kanal: #pediapress
Screencast
There is a screencast demoing the basic functionality available at YouTube (in German) (2:45 minutes).
Creating cross-wiki article collections
The OCG service supported this, but the Collection extension does not (yet — patches welcome!).
You can use the low-level mw-ocg-bundler
and mw-ocg-latexer
tools to create cross-wiki collections, or use https://pediapress.com/collection/ for this purpose, see ticket 408.
Installation
- Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens
Collection
im Ordnerextensions/
ablegen. - Folgenden Code am Ende deiner LocalSettings.php -Datei einfügen:
wfLoadExtension( 'Collection' );
- Konfiguriere die Erweiterung nach Bedarf
Erledigt – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.
Please also read the included README for detailed configuration instructions of the extension.
Konfiguration
The documentation below is out of date. Installing a development instance contains the most up-to-date documentation.
For the older mwlib-based service, see Installation and Configuration of the Collection Extension and Customization via System Messages.
Generating PDFs, OpenDocument- & DocBook-Exports
It's easy to enable PDF (ODF, DocBook) support with this extension. It is configured by default to use the server https://tools.pediapress.com/. Therefore (low traffic) sites that are accessible from the internet don't need to install their own PDF server. Schritte:
- Simply install and configure the Collection extension using the default value
http://tools.pediapress.com/mw-serve/
for$wgCollectionMWServeURL
(see README of the Collection extension for instructions) and make sure the MediaWiki API (api.php
) is enabled on your MediaWiki installation. - Some users report that installing PDFtk is necessary.
No installation of Python, ReportLab, mwlib etc. required! Note however, that in order to use this service, your wiki must be accessible from the internet and must be either accessible for non-logged-in users or login credentials must be configured (see README for instructions).
Have a look at the Solar system, example article from the English language Wikipedia, rendered as PDF using this technology.
Set up your own render server
If you either have a wiki which is not accessible from the outside or your site has high traffic, you need to install your own render server. The server is included with mwlib and can be used as a stand-alone HTTP server (which is the default protocol) or as FastCGI or SCGI server or as a CGI script.
Requirements and steps
Installing mwlib has a number of additional prerequisites. Please refer to the official installation documentation. Guides for your specific environment may also be useful, see below.
Other guides
- For documentation on how to do this on Ubuntu 14.04 look on Setup a render server on Ubuntu 14.04 LTS.
- For documentation on how to do this on OSX Mavericks look on Setup a render server on OSX. There are useful tips for localhost installations for other systems too.
- A comprehensive guide about Extension:Collection installation and configuration with instructions for installing on local machines - by edutechwiki (TECFA, University of Geneva).
Erweiterte und optionale Konfiguration
Most wikis will never need to know about what follows. Check the main PHP file to see all the global variables you can configure and their meaning. Some of them are useful to tweak the export in many cases.
Print on demand
Since version 1.6 (r113740) the extension offers the variable $wgCollectionPODPartners
that is used to define available providers of the print-on-demand service.
By default it uses PediaPress service:
$wgCollectionPODPartners = [
'pediapress' => [
'name' => 'PediaPress',
'url' => 'http://pediapress.com/',
'posturl' => 'http://pediapress.com/api/collections/',
'infopagetitle' => 'coll-order_info_article'
],
];
It is an array of elements, every of them will be listed as a possible print-on-demand provider. Die Parameter sind:
- name
- short name of the provider
- url
- URL to point for more information if there is no information page
- posturl
- URL of the actual printing web service
- infopagetitle
- MediaWiki system message name (as visible in the MediaWiki: namespace) that contains page title of the page that will be used to shortly describe the provider. The default (for PediaPress) is MediaWiki:Coll-order info article, which defaults to PediaPress order information. If this page exists, it is used to display information about PediaPress book printing service.
It is also possible to disable print on demand altogether by setting:
$wgCollectionPODPartners = false;
Please see task T35536 and commit entry for more information about this feature.
You can also configure which file formats are available:
$wgCollectionFormats = [
'rl' => 'PDF', # enabled by default
'odf' => 'ODT',
'docbook' => 'DocBook XML',
'xhtml' => 'XHTML 1.0 Transitional',
'epub' => 'e-book (EPUB)',
'zim' => 'Kiwix (OpenZIM)',
];
Siehe README für mehr Konfigurationsoptionen.
User rights for saving books
To allow users to save books in both their user space and the community space, add the following lines to your LocalSettings.php
:
$wgGroupPermissions['user']['collectionsaveascommunitypage'] = true;
$wgGroupPermissions['user']['collectionsaveasuserpage'] = true;
Add the links at another place
If you want to add the links at another place, e.g. in the menu "Personal Tools", you can do that by adding them into the according portlet.
For example, in the Vector skin you can do that by adding to the file skins/Vector.php
so that it looks like this:
<h3><?php $this->msg( 'personaltools' ) ?></h3>
<ul<?php $this->html( 'userlangattributes' ) ?>>
<?php
$personalTools = $this->getPersonalTools();
/* Links to create a PDF file/a book start */
if ( class_exists('CollectionHooks') ) {
$collectionURLs = CollectionHooks::getPortlet($this->getSkin());
if ( $collectionURLs !== false ) {
/* Put the links of the Collection extension below the last item. */
$personalTools += $collectionURLs;
}
}
/* Links to create a PDF file/a book end */
foreach ( $personalTools as $key => $item ) {
echo $this->makeListItem( $key, $item );
}
You can still modify the order of the links in the portlet by modifying $personalTools directly before the foreach loop is executed.
The above implementation has the drawback, that the two newly inserted links do not show their tooltip. A solution for that is still outstanding and would be greatly appreciated.
Setting book prefix
To change the default prefix for book name edit the message MediaWiki:Coll-community book prefix.
Cache
Recent versions store rendered "books" in a cache. Collections which have been previously exported by users should be available for download almost immediately, rather than after several minutes of rendering; the cached version can be updated by following a link offered in the download page.
Help improving the extension
If you want to help to make the extension better, you can:
- open a task for a bug or feature request,
- fix and add translations using translatewiki.net.
Gedruckte Bücher mit PediaPress

PediaPress is a service that offers printed books based from wiki content. This service is seamlessly integrated in this extension (can be disabled).
Ähnliches
Siehe auch
- PDF export — summary of all PDF export extensions
![]() | Diese Erweiterung wird in einem oder mehreren Wikis von Wikimedia verwendet. Das bedeutet mit hoher Wahrscheinlichkeit, dass die Erweiterung stabil ist und gut genug funktioniert, um auf solch häufig besuchten Webseiten benutzt zu werden. Suche nach dem Erweiterungs-Namen in den Wikimedia CommonSettings.php und den InitialiseSettings.php-Konfigurations-Dateien, um nachzusehen, wo es installiert ist. Eine vollständige Liste der installierten Erweiterungen in einem bestimmten Wiki wird auf Special:Version im Wiki generiert und angezeigt. |
![]() | Diese Erweiterung ist in den folgenden Softwarepaketen enthalten und/oder wird von den folgenden Wiki-Farmen, bzw. Wiki-Hostern verwendet: Dies ist keine maßgebliche Liste. Softwarepakete und/oder Wiki-Farmen, bzw. Wiki-Hoster nutzen diese Erweiterung ggf., obwohl sie nicht in dieser Liste enthalten sind. Prüfe daher stets die Nutzung im verwendeten Softwarepaket und/oder bei der Wiki-Farm, bzw. dem Wiki-Hoster. |
- Stable extensions/de
- Special page extensions/de
- Personalization extensions/de
- Extensions supporting Composer/de
- GPL licensed extensions/de
- Extensions in Wikimedia version control/de
- OutputPageCheckLastModified extensions/de
- SidebarBeforeOutput extensions/de
- SiteNoticeAfter extensions/de
- All extensions/de
- Extensions used on Wikimedia/de
- Extensions included in Canasta/de
- Extensions included in MyWikis/de
- Extensions included in ProWiki/de
- Extensions included in WikiForge/de
- Extensions included in WikiTide/de
- PDF extensions/de