Recent Changes - Search:

PmWiki

pmwiki.org

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

PageTextVariables

Testing the functionality of page text variables, especially leading and trailing spaces, and construction of variable names

Page text variable name with one leading space:
 Insect: Weta
: Bird: Kiwi
(: Tree: Kauri:)

"{$:Insect}"
"{$:Bird}"
"{$:Tree}"
 Insect: Weta
Bird
Kiwi

(: Tree: Kauri:)

"Weta" "Kiwi" "Kauri"

works incorrectly
Page text variable name with one trailing space:
Flower : Kowhai
:Fish : Eel
(:River : Waikato:)

"{$:Flower}"
"{$:Fish}"
"{$:River}"

Flower : Kowhai

Fish
Eel

(:River : Waikato:)

"Kowhai" "Eel" "Waikato"

works incorrectly
Page text variable name with one embedded space:
Flower pot: Ceramic
:Fish part: Fin
(:River run: Long:)

"{$:Flower pot}"
"{$:Fish part}"
"{$:River run}"

Flower pot: Ceramic

Fish part
Fin

(:River run: Long:)

"{$:Flower pot}" "{$:Fish part}" "{$:River run}"

works ok
Numerals in names:
1Way: one way
:2Way: two 
(:3Way: three:)
Way4: four
:Way5: five
(:Way6: six:)

"{$:1Way}"
"{$:2Way}"
"{$:3Way}"
"{$:Way4}"
"{$:Way5}"
"{$:Way6}"

1Way: one way

2Way
two

Way4: four

Way5
five

"one way" "two " "three" "four" "five" "six"

works ok
Non Ascii names:
Schrödinger: Erwin Rudolf Josef
Alexander
:Röntgen: Wilhelm Conrad 
(:Dalén: Nils Gustaf:)

"{$:Schrödinger}"
"{$:Röntgen}"
"{$:Dalén}"

Schrödinger: Erwin Rudolf Josef Alexander

Röntgen
Wilhelm Conrad

"Erwin Rudolf Josef Alexander" "Wilhelm Conrad " "Nils Gustaf"

works ok
Recursive page text variable:
Dirac:{$:Dirac}
:Fowler:{$:Fowler}
(:Hellman:{$:Hellman}:)
Tip*tree:{$:Shel*don} %red% - don't try
this, see [[PITS.00915]]

Sheldon:{$:Tiptree}

"{$:Dirac}"
"{$:Fowler}"
"{$:Hellman}"
"{$:Tiptree}"
"{$:Sheldon}"

Dirac:

Fowler

Tip*tree:{$:Shel*don} - don't try this, see PITS.00915

Sheldon:

"" "" "" "" ""

works ok
Page text variable name with link:
[[{$FullName}|Scientist]]: Rutherford
:[[{$FullName}|Climber]]: Hillary

"{$:Scientist}"
"{$:Climber}"

Scientist: Rutherford

Climber
Hillary

"" ""

works ok
Page text variable in tables or markup:
||Naturalist: ||Charles Darwin ||
||Zoologist: Alfred Russel Wallace ||
"{$:Naturalist}"
"{$:Zoologist}"

[-Botanist:-] Gregor Mendel
"{$:Botanist}"

EvolutionaryBiologist: Stephen Jay
Gould
"{$:EvolutionaryBiologist}"

PtvTemplate: PTVWithPageList
"{$:PtvTemplate}"
Naturalist:Charles Darwin
Zoologist: Alfred Russel Wallace

"" ""

Botanist: Gregor Mendel ""

EvolutionaryBiologist?: Stephen Jay Gould "Stephen Jay Gould"

PtvTemplate: PTVWithPageList "PTVWithPageList"

works as expected, markup defeats PTVs, note odd behaviour with Wiki Links
Formatting breaks page text variables
Arthur:C Clarke
-< Isaac: Asimov
-> Robert: Heinlein
* Larry: Niven 
# Poul: Anderson
%red%John: Christopher
:Cordwainer: Smith
''James: Blish
 Hal: Clement


-< {$:Arthur}
-< {$:Isaac}
-< {$:Robert}
-< {$:Larry}
-< {$:Poul}
-< {$:John}
-< {$:Cordwainer}
-< {$:James}
-< {$:Hal}

Arthur:C Clarke

Isaac: Asimov
Robert: Heinlein
  • Larry: Niven
  1. Poul: Anderson

John: Christopher

Cordwainer
Smith

''James: Blish

 Hal: Clement
C Clarke
Smith
Clement
Edit - History - Print - Recent Changes - Search
Page last modified on October 21, 2008, at 03:05 PM
 0: 00.00 00.00 config start
 1: 00.00 00.00 config end
 2: 00.07 00.07 MarkupToHTML begin
 3: 00.08 00.07 MarkupToHTML begin
 4: 00.09 00.09 MarkupToHTML end
 5: 00.09 00.09 MarkupToHTML begin
 6: 00.10 00.09 MarkupToHTML end
 7: 00.10 00.09 MarkupToHTML begin
 8: 00.10 00.10 MarkupToHTML end
 9: 00.10 00.10 MarkupToHTML begin
10: 00.11 00.11 MarkupToHTML end
11: 00.11 00.11 MarkupToHTML begin
12: 00.12 00.11 MarkupToHTML end
13: 00.12 00.11 MarkupToHTML begin
14: 00.13 00.12 MarkupToHTML end
15: 00.13 00.12 MarkupToHTML begin
16: 00.13 00.13 MarkupToHTML end
17: 00.13 00.13 MarkupToHTML begin
18: 00.15 00.14 MarkupToHTML end
19: 00.15 00.14 MarkupToHTML begin
20: 00.16 00.15 MarkupToHTML end
21: 00.17 00.16 FPLTemplate begin
22: 00.17 00.17 MakePageList pre
23: 00.19 00.17 PageListSources begin
24: 00.19 00.17 PageStore::ls begin wiki.d/{$FullName}
25: 00.28 00.19 PageStore::ls merge wiki.d/{$FullName}
26: 00.31 00.22 PageStore::ls end wiki.d/{$FullName}
27: 00.31 00.23 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
28: 00.31 00.23 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
29: 00.31 00.23 PageStore::ls end $FarmD/wikilib.d/{$FullName}
30: 00.31 00.23 PageListSources end count=25
31: 00.31 00.23 PageListSort pre ret=4 order=name
32: 00.31 00.23 MakePageList items count=25, filters=
33: 00.31 00.23 MakePageList post count=25, readc=0
34: 00.31 00.23 PageListCache begin save key=ca1de919e25d376fe9069a1de5bc2535
35: 00.31 00.23 PageListCache end save
36: 00.31 00.23 PageListSort begin
37: 00.31 00.23 PageListSort sort
38: 00.31 00.23 PageListSort end
39: 00.31 00.23 MakePageList end
40: 00.32 00.24 MarkupToHTML begin
41: 00.37 00.29 MarkupToHTML end
42: 00.37 00.29 FPLTemplate end
43: 00.39 00.30 MarkupToHTML end
44: 00.41 00.32 MarkupToHTML begin
45: 00.44 00.35 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
46: 00.44 00.35 ReadApprovedUrls SiteAdmin.ApprovedUrls end
47: 00.46 00.37 MarkupToHTML end
48: 00.46 00.37 MarkupToHTML begin
49: 00.47 00.38 MarkupToHTML end
50: 00.54 00.39 now