Difference between revisions of "Test"
From Mondothèque
(18 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{#ask: [[Category: | + | |
− | | | + | ===LOOPS!=== |
− | | | + | {{ #vardefine: i | 0 }}{{ |
− | |format= | + | #while: |
− | | | + | | {{ #ifexpr: {{ #var: i }} < 5 | true }} |
− | | | + | | |
− | | | + | * {{ #var: i }}{{ #vardefine: i | {{ #expr: {{ #var: i }} + 1 }} }} |
− | | | + | }} |
+ | ===ARRAYS!=== | ||
+ | {{#arraydefine: colors | red;#FF0000, green;#00FF00, blue;#0000FF }} | ||
+ | {{ | ||
+ | #loop: i | ||
+ | | 0 <!-- loops start value for {{#var:i}} --> | ||
+ | | {{#arraysize:colors}} <!-- number of loops --> | ||
+ | | <nowiki/> | ||
+ | * {{ | ||
+ | #arraydefine: val | {{#arrayindex:colors | {{#var:i}} }} | ; | ||
+ | |||
+ | }}<span style="color:{{#arrayindex: val | 1}}">{{ | ||
+ | #arrayindex: val | 0 | ||
+ | }}</span> | ||
+ | }} | ||
+ | ===IFS!=== | ||
+ | |||
+ | {{#iferror: {{#expr: 1 + 2 }} | error | correct }} | ||
+ | |||
+ | ===ARRAY OF CATEGORY / SEMANTIC RESULT FORMATS (should just be a raw list, no links nor pictures)=== | ||
+ | |||
+ | {{#ask:[[Category:Desiderata]] |format=array |name=results}} | ||
+ | {{ | ||
+ | #loop: i | ||
+ | | 0 | ||
+ | | {{#arraysize:results}} | ||
+ | | | ||
+ | {{#arrayindex: results | {{#var:i}} }} | ||
+ | }} | ||
+ | |||
+ | ===LABELLED SECTION TRANSCLUSION:=== | ||
+ | {{#lst:Transclusionism|xanadu}} | ||
+ | |||
+ | |||
+ | ===TRANSCLUSIONISM TEST w/ XANADU=== | ||
+ | |||
+ | {{#ask:[[Category:xanadu]] |format=array |name=results}} | ||
+ | {{#loop: looper | ||
+ | | 0 | ||
+ | | {{#arraysize: results}} | ||
+ | | From [[{{#arrayindex: results | {{#var:looper}} }}]]: {{#lst: {{#arrayindex: results | {{#var:looper}} }} | xanadu }} <br /> <br /> | ||
+ | }} | ||
+ | |||
+ | ===MAPS=== | ||
+ | |||
+ | {{#ask: [[Geo::+]] [[place::Cimetière d'Ixelles]] | ||
+ | | ?Geo | ||
+ | | ?Place | ||
+ | | zoom=18 | ||
+ | | format=openlayers | ||
}} | }} |
Latest revision as of 12:05, 18 October 2016
Contents
LOOPS!
- 0* 1* 2* 3* 4
ARRAYS!
- red
- green
- blue
IFS!
correct
ARRAY OF CATEGORY / SEMANTIC RESULT FORMATS (should just be a raw list, no links nor pictures)
151 Corrélations Générales212.4 Unité, multiples et sous-multiples222.11 Notion.File:DSC04568low.jpgPrésentationUne lecture-écriture du livre sur le livre
LABELLED SECTION TRANSCLUSION:
To create transclusions between different texts, you need to select a section of text that will form a connection between the pages, based on a common subject:
- Think of a category that is the common ground for the link. For example if two texts refer to a similar issue or specific concept (eg. '
rawdata
'), formulate it without spaces or using underscores (eg. 'raw_data
', not 'raw data
' ); - Edit the two or more pages which you want to link, adding
{{RT|rawdata}}<section begin=rawdata />
before the text section, and<section end=rawdata />
at the end (take care of the closing '/>
' ); - All text sections in other wiki pages that are marked up through the same common ground, will be transcluded in the margin of the text.
TRANSCLUSIONISM TEST w/ XANADU
From Transclusionism: To create transclusions between different texts, you need to select a section of text that will form a connection between the pages, based on a common subject:
- Think of a category that is the common ground for the link. For example if two texts refer to a similar issue or specific concept (eg. '
rawdata
'), formulate it without spaces or using underscores (eg. 'raw_data
', not 'raw data
' ); - Edit the two or more pages which you want to link, adding
{{RT|rawdata}}<section begin=rawdata />
before the text section, and<section end=rawdata />
at the end (take care of the closing '/>
' ); - All text sections in other wiki pages that are marked up through the same common ground, will be transcluded in the margin of the text.
From Xanadu: Every document can contain links of any type including virtual copies ("transclusions") to any other document in the system accessible to its owner.
MAPS
Loading map...