Magic words & parser functions link
Line 24: | Line 24: | ||
<nowiki> | <nowiki> | ||
− | * [path/1/2/a|a] | + | * [[path/1/2/a|a]] |
− | * [path/1/2/b|b] | + | * [[path/1/2/b|b]] |
− | * [path/1/2/b|c] | + | * [[path/1/2/b|c]] |
</nowiki> | </nowiki> | ||
or the following rendered list | or the following rendered list | ||
− | * [path/1/2/a|a] | + | * [[path/1/2/a|a]] |
− | * [path/1/2/b|b] | + | * [[path/1/2/b|b]] |
− | * [path/1/2/b|c] | + | * [[path/1/2/b|c]] |
(that is the path of the pages a, b and c will be removed from the list, thus | (that is the path of the pages a, b and c will be removed from the list, thus |
Revision as of 13:23, 21 June 2020
Currently this platform offers the additional parser functions. They are prefixed with the prefix "ci_" to distinguish them easily from the standard mediawiki magic words and parser functions.
- ci_userAffiliatedTo (parameters: none)
- ci_userRealName (parameters: none)
- ci_isSysop (parameters: none)
- ci_loggedIn (parameters: none)
- ci_HidePathFromPageList (parameters: list, divisor, kind of output)
- ci_visitorIsoCode (parameters: none)
- ci_visitorCountry (parameters: none)
- ci_editors_realnames (parameters: none)
- ci_pageTitlesAttribution (parameters: list, divisor, kind of output)
Examples:
It will create the following wikicode:
* [[path/1/2/a|a]] * [[path/1/2/b|b]] * [[path/1/2/b|c]]
or the following rendered list
(that is the path of the pages a, b and c will be removed from the list, thus preserving the link paths).
Of course the same function can be used in combination with a semantic query ("ask" function, form semantic mediawiki extension), as follows:
- [[]]
The ask query will return a list of pages (with paths) divided by '##' and the parser function 'ci_HidePathFromPageList' will take that list, will split it using '##' as separator (2nd argument) and will return a 'ul' (unordered list).
- Alì Ehsani - Stanotte guardiamo le stelle - created by , affiliated to [organization]
- Giacomo Scotti, Mario Licciardi - Non si trova cioccolata - created by , affiliated to [organization]
- Raymond Queneau - Fiori Blu - created by , affiliated to [organization]
- Viviano Domenici - A cena con i cannibali. Taccuino di un giornalista esploratore - created by , affiliated to [organization]
- Yambo (Enrico de’ Conti Novelli da Bertinoro) - L'allevatore di dinosauri ovvero L'uovo di pterodattilo - created by , affiliated to [organization]