It's better when it's simple

User Tools

Site Tools


Songlist plugin

Compatible with DokuWiki


plugin Generate wiki code from lines of a master page, indexed by IDs

Last updated on

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Tagged with listing, music, page

This plugin implements generating wiki code from lines of a master file. Each line in the master file that is indicated by an ID can be included in the current page. I use this for our choir, where we have a large repertoire of songs, which we can perform. The program for a given concert is simply generated by selecting some songs of that master repertoire list. Text that does not match any ID in the master file is inserted as verbatim wiki code.


Usage of the plugin inside a wiki page:

<songlist [src=]masterlist>

This takes all lines from the page named “masterlist”, which are indexed by id1 and id2. The masterlist has the following syntax:

some wiki text|id
lines without ID can be written but cannot be included by <songlist..>
some more wiki text|anotherid



Generate a master page (let's say “:playground:songlistdata”), that contains lines of the form:

==== Masses ====
  * **"Petite Messe Solennelle"** (G. Rossini): [[wp>Petite Messe Solennelle|Wikipedia]]|Rossini
  * **"Missa di gloria"** (G. Puccini): [[wp>Puccini|Wikipedia]]|Puccini

==== Others ====
  * **"Ave Verum"** (Wolfgang Amadeus MOZART): [[wp>Ave Verum|Wikipedia]]|Ave Verum

Each line can now be used by the ID after the last |.

In your page you can now use the plugin as

<songlist src=:playground:songlistdata>
==== Songlist for the concert ====
Ave Verum
  * //BREAK//

This will effectively have the same effect as simply writing

==== Songlist for the concert ====
  * **"Ave Verum"** (Wolfgang Amadeus MOZART): [[wp>Ave Verum|Wikipedia]]
  * **"Petite Messe Solennelle"** (G. Rossini): [[wp>Petite Messe Solennelle|Wikipedia]]
  * //BREAK//
  * **"Missa di gloria"** (G. Puccini): [[wp>Puccini|Wikipedia]]

and thus generate an output:

Songlist for the concert

  • “Ave Verum” (Wolfgang Amadeus MOZART): Wikipedia
  • “Petite Messe Solennelle” (G. Rossini): Wikipedia
  • “Missa di gloria” (G. Puccini): Wikipedia


No configuration is needed.


Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Version history and Changelog

  • Version 0.1 (12. November 2006): Initial Release
  • Version 0.2 (3. September 2008): ID comparison is case-insensitive, punctuation marks (,.-'?! etc) are ignored for the comparison, too.




Feature requests

plugin/songlist.txt · Last modified: 2023-10-31 00:01 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki