RelativeLinksPagelist


A pagelist using relativelinks

The template, located at PageListTemplate, looks like this

fmt=#relativelinks

This template includes multiple forms of links to test results with relative links enabled

[[#relativelinks]]
(:if equal {<$Group}:)
!!!Start of pagelist "header".  Testing three forms: 

|| '''Form:'''||{ $foo } ||{ =$foo } ||{ *$foo } ||
|| '''Escaped:'''||[@ {$foo}
||{=$foo} ||{*$foo} ||
Group:{$Group}{=$Group}{*$Group}
FullName:{$FullName}{=$FullName}{*$FullName}

End of "header" and start of pagelist iterations

{=$Group}:Test.{=$Group}.Test.
 Test.PageListTemplate{=$FullName}Test.RelativeLinksPagelist

Now, that template is invoked using a simple pagelist directive limited to the first 20 items:

Start of pagelist "header". Testing three forms:

Form:{ $foo }{ =$foo }{ *$foo }
Escaped: {$foo}{=$foo}{*$foo}
Group:{$Group}{=$Group}{*$Group}
FullName:{$FullName}{=$FullName}{*$FullName}

End of "header" and start of pagelist iterations

AttachImage:Test.AttachImage.Test.
 Test.PageListTemplateAttachImage.JpgTest.RelativeLinksPagelist
Backup:Test.Backup.Test.
 Test.PageListTemplateBackup.BackupTest.RelativeLinksPagelist
 Test.PageListTemplateBackup.CookbookBasicsTest.RelativeLinksPagelist
 Test.PageListTemplateBackup.PmWikiPhilsophyTest.RelativeLinksPagelist
 Test.PageListTemplateBackup.RecentChangesTest.RelativeLinksPagelist
Banners:Test.Banners.Test.
 Test.PageListTemplateBanners.Banner1Test.RelativeLinksPagelist
 Test.PageListTemplateBanners.Banner2Test.RelativeLinksPagelist
 Test.PageListTemplateBanners.Banner3Test.RelativeLinksPagelist
 Test.PageListTemplateBanners.Banner4Test.RelativeLinksPagelist
 Test.PageListTemplateBanners.Banner5Test.RelativeLinksPagelist
 Test.PageListTemplateBanners.BannersTest.RelativeLinksPagelist
 Test.PageListTemplateBanners.RecentChangesTest.RelativeLinksPagelist
BlogIt:Test.BlogIt.Test.
 Test.PageListTemplateBlogIt.BlogItTest.RelativeLinksPagelist
 Test.PageListTemplateBlogIt.DeveloperDocsTest.RelativeLinksPagelist
 Test.PageListTemplateBlogIt.FAQTest.RelativeLinksPagelist
 Test.PageListTemplateBlogIt.KnownIssuesTest.RelativeLinksPagelist
 Test.PageListTemplateBlogIt.RecentChangesTest.RelativeLinksPagelist
 Test.PageListTemplateBlogIt.ReleaseHistoryTest.RelativeLinksPagelist
Category:Test.Category.Test.
 Test.PageListTemplateCategory.2003Test.RelativeLinksPagelist
 Test.PageListTemplateCategory.2008Test.RelativeLinksPagelist

A default pagelist

AttachImage /
Jpg  
Backup /
Backup  
CookbookBasics  Explains what the cookbook and its recipes are.
PmWikiPhilsophy  Some of the ideas that guide the design and implementation of PmWiki
RecentChanges  
Banners /
Banner1  
Banner2  
Banner3  
Banner4  
Banner5  
Banners  
RecentChanges  
BlogIt /
BlogIt  
DeveloperDocs  
FAQ  
KnownIssues  
RecentChanges  
ReleaseHistory  
Category /
2003  
2008  

Go to page:  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32  33  34  35  36  37  38  39  40  41  42  43  44  45  46  47  48  49  50  51  52  53  54  55  56  57  58  59  60  61  62  63  64  65  66  67  68  69  70  71  72  73  74  75  76  77  78  79  80  81  82  83  84  85  86  87  88  89  90  91  92  93  94  95  96  97  98  99  100  101  102  103  104  105 

Only search in group:  AttachImage (1), Backup (4), Banners (7), BlogIt (6), Category (370), Christian (99), Cjc (523), Cookbook (2353), CookbookFr (9), DaveG (21), EmacsModes (52), FoxDocumentation (21), GNUZoo (12), GoogleMapAPI (27), HierarchicalGroupProposals (4), Holidays (149), LinuxTex (6), Localization (15), Magazine (24), Main (11), News (33), NewSkinIdeas (3), Nyår (12), Obsolete (5), PITS (1565), PLCal (19), PLCalDemo (45), PmCal (846), PmForm (24), PmWiki-DITA (3), PmWiki (314), PmWikiAr (7), PmWikiBg (22), PmWikiCa (48), PmWikiCreole (5), PmWikiCs (27), PmWikiDa (20), PmWikiDe (180), PmWikiEl (7), PmWikiEn (3), PmWikiEo (10), PmWikiEs (14), PmWikiFa (3), PmWikiFi (3), PmWikiFr (174), PmWikiHu (12), PmWikiId (4), PmWikiIt (58), PmWikiJa (41), PmWikiKr (3), PmWikiLt (6), PmWikiLv (3), PmWikiMk (3), PmWikiNl (29), PmWikiNo (5), PmWikiPl (14), PmWikiPt (5), PmWikiPtBr (59), PmWikiRo (5), PmWikiRu (89), PmWikiSi (8), PmWikiSk (31), PmWikiSq (6), PmWikiSv (14), PmWikiTa (3), PmWikiTl (8), PmWikiTr (5), PmWikiUk (8), PmWikiVi (20), PmWikiZhCn (49), PmWikiZhTw (45), Private (3), Profiles (1043), Quiz (8), RHCE (8), Scott (6), Site (60), SiteAdmin (12), Sites (5), Skins (223), SkinTest (5), SkinTutorials (6), StefCTDemo (9), Test (1144), TestBlog (46), TestDescription (12), TestDescriptionFmt (3), Teste (2), TestGroup1 (14), TestJa (17), TestPageList (8), TestProtected (3), TestSort (13), TestW7 (34), UserAuth2 (12), UserSven (2), UTF8 (67), ViewModes (10), WikiSh (14), WikiSpheres (5), WTF (8), XESTest (4), Àéè (4)


One more test.

Here is something like the test that had appeared in the relativelinks pagelist header, all by itself without any escapes.

Form:{ $foo }{ =$foo }{ *$foo }
(Not)Escaped: {=$foo} 
Group:Test{=$Group}Test
FullName:Test.PageListTemplate{=$FullName}Test.RelativeLinksPagelist
Array
(
    [post_max_size] => 64M
    [$_POST keys] => 
    [$_REQUEST keys] => n, q
    [$_SERVER] => Array
        (
            [CONTEXT_DOCUMENT_ROOT] => /home/pmwiki/public_html
            [CONTEXT_PREFIX] => 
            [DOCUMENT_ROOT] => /home/pmwiki/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTPS] => on
            [HTTP_ACCEPT] => */*
            [HTTP_ACCEPT_ENCODING] => gzip, br, zstd, deflate
            [HTTP_HOST] => www.pmwiki.org
            [HTTP_USER_AGENT] => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
            [HTTP_X_HTTPS] => 1
            [PATH] => /bin:/usr/bin
            [PHP_INI_SCAN_DIR] => /opt/cpanel/ea-php70/root/etc:/opt/cpanel/ea-php70/root/etc/php.d:.
            [QUERY_STRING] => n=Test%2fRelativeLinksPagelist&q=+group%3DPmWikiUk
            [REDIRECT_HTTPS] => on
            [REDIRECT_QUERY_STRING] => n=Test%2fRelativeLinksPagelist&q=+group%3DPmWikiUk
            [REDIRECT_SCRIPT_URI] => https://www.pmwiki.org/wiki/Test/RelativeLinksPagelist
            [REDIRECT_SCRIPT_URL] => /wiki/Test/RelativeLinksPagelist
            [REDIRECT_SSL_TLS_SNI] => www.pmwiki.org
            [REDIRECT_STATUS] => 200
            [REDIRECT_UNIQUE_ID] => afHwo1TDSLEUAnqMMwQ3xwAAAUs
            [REDIRECT_URL] => /wiki/Test/RelativeLinksPagelist
            [REMOTE_ADDR] => 216.73.216.31
            [REMOTE_PORT] => 51166
            [REQUEST_METHOD] => GET
            [REQUEST_SCHEME] => https
            [REQUEST_URI] => /wiki/Test/RelativeLinksPagelist?q=+group%3DPmWikiUk
            [SCRIPT_FILENAME] => /home/pmwiki/public_html/index.php
            [SCRIPT_NAME] => /index.php
            [SCRIPT_URI] => https://www.pmwiki.org/wiki/Test/RelativeLinksPagelist
            [SCRIPT_URL] => /wiki/Test/RelativeLinksPagelist
            [SERVER_ADDR] => 23.254.203.248
            [SERVER_ADMIN] => webmaster@pmwiki.org
            [SERVER_NAME] => www.pmwiki.org
            [SERVER_PORT] => 443
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [SSL_TLS_SNI] => www.pmwiki.org
            [TZ] => America/Los_Angeles
            [UNIQUE_ID] => afHwo1TDSLEUAnqMMwQ3xwAAAUs
            [PHP_SELF] => /index.php
            [REQUEST_TIME_FLOAT] => 1777463459.6806
            [REQUEST_TIME] => 1777463459
            [argv] => Array
                (
                    [0] => n=Test%2fRelativeLinksPagelist&q=
                    [1] => group%3DPmWikiUk
                )

            [argc] => 2
        )

)
 0: 00.00 00.00 EnablePost = 1, keys=
 1: 00.00 00.00 config start
 2: 00.01 00.01 config end
 3: 00.03 00.03 MarkupToHTML begin
 4: 00.05 00.05 FPLTemplate: Chain begin
 5: 00.05 00.05 FPLTemplate: FPLTemplateLoad
 6: 00.05 00.05 FPLTemplate: FPLTemplateDefaults
 7: 00.05 00.05 FPLTemplate: FPLTemplatePageList
 8: 00.05 00.05 MakePageList pre
 9: 00.05 00.05 PageListSources begin
10: 00.05 00.05 PageStore::ls begin wiki.d/{$FullName}
11: 00.06 00.05 PageStore::ls merge wiki.d/{$FullName}
12: 00.06 00.05 PageStore::ls end wiki.d/{$FullName}
13: 00.06 00.06 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
14: 00.06 00.06 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
15: 00.06 00.06 PageStore::ls end $FarmD/wikilib.d/{$FullName}
16: 00.07 00.07 PageListSources end count=10449
17: 00.07 00.07 PageListSort pre ret=4 order=name
18: 00.07 00.07 MakePageList items count=10449, filters=
19: 00.08 00.08 MakePageList post count=10449, readc=0
20: 00.08 00.08 PageListSort begin
21: 00.08 00.08 PageListSort sort
22: 00.23 00.22 PageListSort end
23: 00.23 00.22 MakePageList end
24: 00.23 00.22 FPLTemplate: FPLTemplatePmWikiOrg
25: 00.23 00.22 MarkupToHTML begin
26: 00.23 00.23 MarkupToHTML end
27: 00.23 00.23 FPLTemplate: FPLTemplateSliceList
28: 00.23 00.23 FPLTemplate: FPLTemplateFormat
29: 00.24 00.23 MarkupToHTML begin
30: 00.26 00.25 MarkupToHTML end
31: 00.26 00.25 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
32: 00.26 00.25 FPLTemplate: Chain end
33: 00.26 00.25 FPLTemplate: Chain begin
34: 00.26 00.25 FPLTemplate: FPLTemplateLoad
35: 00.26 00.25 FPLTemplate: FPLTemplateDefaults
36: 00.26 00.25 FPLTemplate: FPLTemplatePageList
37: 00.26 00.25 MakePageList pre
38: 00.26 00.25 PageListSources begin
39: 00.26 00.25 PageStore::ls begin wiki.d/{$FullName}
40: 00.27 00.26 PageStore::ls merge wiki.d/{$FullName}
41: 00.27 00.26 PageStore::ls end wiki.d/{$FullName}
42: 00.28 00.26 PageStore::ls begin $FarmD/wikilib.d/{$FullName}
43: 00.28 00.26 PageStore::ls merge $FarmD/wikilib.d/{$FullName}
44: 00.28 00.26 PageStore::ls end $FarmD/wikilib.d/{$FullName}
45: 00.29 00.27 PageListSources end count=10449
46: 00.29 00.27 PageListSort pre ret=4 order=name
47: 00.29 00.27 MakePageList items count=10449, filters=
48: 00.30 00.28 MakePageList post count=10449, readc=0
49: 00.30 00.28 PageListSort begin
50: 00.30 00.28 PageListSort sort
51: 00.44 00.43 PageListSort end
52: 00.44 00.43 MakePageList end
53: 00.45 00.43 FPLTemplate: FPLTemplatePmWikiOrg
54: 00.45 00.44 MarkupToHTML begin
55: 00.48 00.47 MarkupToHTML end
56: 00.48 00.47 FPLTemplate: FPLTemplateSliceList
57: 00.48 00.47 FPLTemplate: FPLTemplateFormat
58: 00.49 00.48 MarkupToHTML begin
59: 00.51 00.49 MarkupToHTML end
60: 00.51 00.49 FPLTemplate: FPLTemplatePmWikiOrgPostFormat
61: 00.51 00.49 FPLTemplate: Chain end
62: 00.53 00.51 MarkupToHTML end
63: 00.53 00.52 MarkupToHTML begin
64: 00.54 00.52 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
65: 00.54 00.53 ReadApprovedUrls SiteAdmin.ApprovedUrls end
66: 00.55 00.53 MarkupToHTML end
67: 00.55 00.53 MarkupToHTML begin
68: 00.55 00.54 MarkupToHTML end
69: 00.56 00.54 now
Peak memory: 10,785,936 bytes