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

"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

"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

(:Dalén: Nils Gustaf:)

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

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 September 10, 2011, at 12:03 PM
 0: 00.00 00.00 config start
 1: 00.01 00.01 config end
 2: 00.07 00.05 MarkupToHTML begin
 3: 00.07 00.05 MarkupToHTML begin
 4: 00.08 00.06 MarkupToHTML end
 5: 00.08 00.06 MarkupToHTML begin
 6: 00.09 00.07 MarkupToHTML end
 7: 00.09 00.07 MarkupToHTML begin
 8: 00.09 00.07 MarkupToHTML end
 9: 00.09 00.07 MarkupToHTML begin
10: 00.10 00.08 MarkupToHTML end
11: 00.10 00.08 MarkupToHTML begin
12: 00.11 00.08 MarkupToHTML end
13: 00.11 00.08 MarkupToHTML begin
14: 00.12 00.09 MarkupToHTML end
15: 00.12 00.09 MarkupToHTML begin
16: 00.12 00.10 MarkupToHTML end
17: 00.12 00.10 MarkupToHTML begin
18: 00.13 00.11 MarkupToHTML end
19: 00.13 00.11 MarkupToHTML begin
20: 00.14 00.12 MarkupToHTML end
21: 00.15 00.13 FPLTemplate: Chain begin
22: 00.15 00.13 FPLTemplate: FPLTemplateLoad
23: 00.16 00.13 FPLTemplate: FPLTemplateDefaults
24: 00.16 00.13 FPLTemplate: FPLTemplatePageList
25: 00.16 00.13 MakePageList pre
26: 00.19 00.13 PageListSources begin
27: 00.19 00.13 PageStore::ls begin wiki.d/{$FullName}
28: 00.22 00.15 PageStore::ls merge wiki.d/{$FullName}
29: 00.25 00.18 PageStore::ls end wiki.d/{$FullName}
30: 00.25 00.18 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
31: 00.25 00.18 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
32: 00.25 00.18 PageStore::ls end $FarmD/wikilib.d/{$FullName}
33: 00.25 00.18 PageListSources end count=33
34: 00.26 00.18 PageListSort pre ret=4 order=name
35: 00.26 00.18 MakePageList items count=33, filters=
36: 00.26 00.18 MakePageList post count=33, readc=0
37: 00.26 00.18 PageListCache begin save key=ca1de919e25d376fe9069a1de5bc2535
38: 00.26 00.18 PageListCache end save
39: 00.26 00.18 PageListSort begin
40: 00.26 00.18 PageListSort sort
41: 00.26 00.18 PageListSort end
42: 00.26 00.18 MakePageList end
43: 00.26 00.18 FPLTemplate: FPLTemplateSliceList
44: 00.26 00.18 FPLTemplate: FPLTemplateFormat
45: 00.29 00.21 MarkupToHTML begin
46: 00.34 00.27 MarkupToHTML end
47: 00.34 00.27 FPLTemplate: Chain end
48: 00.36 00.29 MarkupToHTML end
49: 00.37 00.30 MarkupToHTML begin
50: 00.39 00.32 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
51: 00.40 00.33 ReadApprovedUrls SiteAdmin.ApprovedUrls end
52: 00.42 00.34 MarkupToHTML end
53: 00.42 00.35 MarkupToHTML begin
54: 00.43 00.36 MarkupToHTML end
55: 00.44 00.36 now