Transclusionism

From Mondothèque

Revision as of 17:13, 26 February 2016 by Dickreckard (talk | contribs)

This page documents some of the contraptions at work in this wiki.

To create links between different pages, based on some selection of text that somehow connects the pages on the bases of some common ground:

  • Think of a category that is the "criteria" for the link. (eg. '
    rawdata
    ');
  • Edit the page and add
    <selection begin=rawdata> 
    before the text selection, and
    <selection end=rawdata> {{#replace: {{:RT}} |@@@|rawdata}} 
    at the end;

Currently on top of MediaWiki and SemanticMediaWiki, the following extensions needed to be installed for the contraptions to work:

  • Labeled Section Transclusion to be able to select specific sections of the texts and make connections between them;
  • Parser Functions to be able to operate statements like if in the wiki pseudo-language;
  • Arrays to create lists of objects, for example as a result of semantic queries;
  • Loops to loop between the arrays above;
  • Variables as it's needed by some of the above.

What links here