PageListTemplates
This page contains "templates" for PmWiki's (:pagelist:)
directive. The Site.LocalTemplates page can be created and used to store pagelist templates that are local to a site.
Page list template documentation
- PmWiki.Page Lists - Searching and listing pages by multiple criteria with templated output
- PmWiki.Page List Templates - Creating page list format templates
- PmWiki.Page Variables - variables that are associated with pages
- Page Text Variables - Page variables automatically made available through natural or explicit page markup
- PmWiki.Conditional Markup - Searching and listing pages by multiple criteria with templated output
- Cookbook:Pagelist Template Samples -
(:template each:)
|
liste
Toposcopie 1/3/21
Definition
>>comment<< [[#definition]] * [[{=$FullName} | {=$Title}]] {=$:Definition} [[#definitionend]] >><< (:pagelist group=Methode fmt=#definition list=normal count=8:) |
|
Dimension
>>comment<< [[#dimension]] (:template first:) {{$FullName}$:TableDimension} (:template each:) || {{=$FullName}$:U} || {{=$FullName}$:P} || {{=$FullName}$:L} || {{=$FullName}$:O} || {{=$FullName}$:C} || {{=$FullName}$:R} || (:template last:) (:tableend:) [[#dimensionend]] >><< (:pagelist group=Methode fmt=#dimension list=normal :) |
|
fmt=#simplesitemap
Reel | Definition | Description
(:template each:) |
FullName? | {=$: Definition} | {=$:Description}
(:template last:) |
planfmt
(:if false:) [[#planfmt]] (:template defaults :) (:template first:) || class="sortable simpletable" border=1 align=left ||! Date ||! LastModified ||! Auteur ||! Tags ||! Name || (:template each:) (:if auth admin:) || {=$:Date} || {=$LastModified} || {=$:Author} || {=$:Tags} || [[{=$FullName}?action=edit | • ]] [[{=$FullName} | {=$FullName} ]] || (:else:) || {=$:Date} || {=$LastModified} || {=$:Author} || {=$:Tags} ||[[{=$FullName} | {=$FullName} ]] || (:ifend:) (:template last:) %red%{=$Group} contains {$$GroupPageCount} pages. [[<<]] [[#planfmtend]] (:ifend:) (:pagelist group={$Group} fmt=#planfmt :) |
(:template last:)
Site contains 29 pages.
|
fmt=#jumpbox
(:if false:) [[#jumpbox]] (:template first:) (:input jumpbox value="{*$Group}" label="{*$Group}" :) {# (:if exists {*$Group}.Plan:)(:input jumpbox value="Plan" label=Plan :)(:ifend:) #} {# (:input jumpbox value="Note" label= "🗒 Note ":) #} (:if exists {*$Group}.Essai:)(:input jumpbox value="Essai" label=Essai :)(:ifend:) (:input jumpbox value="RecentChanges" label= "🕒 $[RecentChanges]":) (:if exists {*$Group}.Aide:)(:input jumpbox value="Aide" label=Aide :)(:ifend:) (:input jumpbox value="{*$Name}#top" label=--------------- :) (:template each:) (:input jumpbox value="{=$PageUrl}" label="{=$Title}":) [[#jumpboxend]] #} (:ifend:) (:pagelist group={$Group} fmt=#jumpbox :) |
(:template each:)
|
(:template defaults list=grouphomes:)
(:template first:)
(:template each:)
.PageListTemplates
(:template each:)
fmt=#jumpboxmethode
(:if false:) [[#jumpboxmethode]] (:template first:) (:input jumpbox value='' label=$['Methode Toposcopie']:) (:if exists Methode.{$Name}:)(:input jumpbox value='Methode.{$Name}' label='{$Name}':)(:ifend:) (:input jumpbox value="{*$Name}#top" label=---- :) (:template each:) (:input jumpbox value="{=$PageUrl}" label="{=$Title}":) [[#jumpboxmethodeend]]#} (:ifend:) (:pagelist group={$Group} fmt=#jumpboxmethode :) |
(:template each:)
|
Fmt =#liste
Date | Author | Titre | Tag |
---|
(:template each:)
{=$:Date} | {=$:Author} | FullName? {=$:Sommaire} | {=$:Tags} |
(:template each:)
05/29/2023 : {=$LastModifiedBy}? : FullName?
Texte NoteSemaison
(:template each:) | |||||
---|---|---|---|---|---|
{=$:Date} | {=$:Author} | FullName? | {=$:Sommaire} | {=$:Tags}
(:template last:) |
fmt=#oneline
compact pagelist in one line. xxxxxx
fmt=#default
The default template for pagelists when fmt=
isn't specified (and note that on the PmWiki.org wiki, this template is over-ridden by the one on the Site.LocalTemplates page).
(:if false:) [[#default]] (:template first {=$Group}:) :[[{=$Group}/]] /: (:template each:) : :[[{=$Group}/{=$Name}]] [[#defaultend]] (:ifend:) (:pagelist group={$Group} fmt=#default count=6:) |
|
fmt=#bygroup
Display pages by group/name.
(:if false:) [[#bygroup]] (:template first {=$Group}:) :[[{=$Group}/]] /: (:template each:) : :[[{=$Group}/{=$Name}]] [[#bygroupend]] (:ifend:) (:pagelist group={$Group} fmt=#bygroup count=6:) |
|
fmt=#simple
A simple bullet list of page names.
(:if false:) [[#simple]] * [[{=$FullName}]] [[#simpleend]] (:ifend:) (:pagelist group={$Group} fmt=#simple count=5:) |
|
fmt=#simplenom
A simple bullet list of page names.
(:if false:) [[#simplenom]] * [[{=$Name}]] [[#simplenomend]] (:ifend:) (:pagelist group={$Group} fmt=#simplenom count=5:) |
|
fmt=#edit
A simple bullet list for edit page names.
(:if false:) [[#edit]] * [[{=$FullName}?action=edit|+]] [[#editend]] (:ifend:) (:pagelist group={$Group} fmt=#edit count=5:) |
|
fmt=#title
A simple bullet list of page titles.
(:if false:) [[#title]] (:template defaults order=title:) * [[{=$FullName}|+]] [[#titleend]] (:ifend:) (:pagelist group={$Group} fmt=#title count=5:) |
|
fmt=#titlespaced
Outputs wiki page titles with spaces between the words in the title.
(:if false:) [[#titlespaced]] (:template defaults order=title:) * [[{=$FullName}|{=$Titlespaced}]] [[#titlespacedend]] (:ifend:) (:pagelist group={$Group} fmt=#titlespaced count=5:) |
|
fmt=#group
A bullet list of groups (will not work with count=...).
(:if false:) [[#group]] (:template first {=$Group}:) * '''[[{=$Group}/]]''' [[#groupend]] (:ifend:) (:pagelist fmt=#group:) |
|
fmt=#grouphomes
An optimized bullet list of group home pages (will work with count=...), requires PmWiki 2.2.103.
(:if false:) [[#grouphomes]] (:template default list=grouphomes:) * [[{=$Group}/|+]] [[#grouphomesend]] (:ifend:) (:pagelist group={$Group} fmt=#jumpbox :) |
INCLUDE
Include Definition
(:template first:)
>>>> 2023-05-29 07:37 - - {=$Group}? Définition
Date | Auteur | Tags | Nom | Définition |
---|
(:template each:)
{=$:Date} | {=$:Author} | {=$:Tags} | {=$Name}? | {{=$FullName}$:Definition} |
(:template last:)
Displayed {$$PageCount} pages.
Include Reel
(:template first:)
>>>> 2023-05-29 07:37 - - {=$Group}? Réel
U? | P? | L? | O? | C? | Methode.Reel |
(:template each:)
{{=$FullName}$:U} | {{=$FullName}$:P} | {{=$FullName}$:L} | {{=$FullName}$:O} | {{=$FullName}$:C} | {=$FullName}? |
(:template last:)
Displayed {$$PageCount} pages.
Include Topos
(:template first:)
>>>> 2023-05-29 07:37 - - {=$Group}? Réel
(:template each:)
U? | P? | L? | O? | C? | Methode.Reel |
{{=$FullName}$:UU} | {{=$FullName}$:UP} | {{=$FullName}$:UL} | {{=$FullName}$:UO} | {{=$FullName}$:UC} | {{=$FullName}$:EU} |
{{=$FullName}$:PU} | {{=$FullName}$:PP} | {{=$FullName}$:PL} | {{=$FullName}$:PO} | {{=$FullName}$:PC} | {{=$FullName}$:EP} |
{{=$FullName}$:LU} | {{=$FullName}$:LP} | {{=$FullName}$:LL} | {{=$FullName}$:LO} | {{=$FullName}$:LC} | {{=$FullName}$:EL} |
{{=$FullName}$:OU} | {{=$FullName}$:OP} | {{=$FullName}$:OL} | {{=$FullName}$:OO} | {{=$FullName}$:OC} | {{=$FullName}$:EO} |
{{=$FullName}$:CU} | {{=$FullName}$:CP} | {{=$FullName}$:CL} | {{=$FullName}$:CO} | {{=$FullName}$:CC} | {{=$FullName}$:EC} |
{{=$FullName}$:VU} | {{=$FullName}$:VP} | {{=$FullName}$:VL} | {{=$FullName}$:VO} | {{=$FullName}$:VC} | FullName? |
(:template last:)
Displayed {$$PageCount} pages.
fmt=#include
Concatenate the text of pages in the list (note, this can be an expensive Opération).
[[#include]] (:include {=$FullName} self=0:) [[#includeend]]
fmt=#includefaq
Include just the #faq sections from pages in the list. (This can also be expensive,
especially if the list includes pages that don't have the [[#faq]]
anchor!)
[[#includefaq]] !![[{=$FullName}|+]] >>faq<< (:include {=$FullName}#faq#faqend self=0:) >><< [[#includefaqend]]
fmt=#simplename
Simple bullet list of page names, without the Group name.
(:if false:) [[#simplename]] * [[({=$Group}/){=$Name}]] [[#simplenameend]] (:ifend:) (:pagelist group={$Group} fmt=#simplename count=5:) |
|
fmt=#simplenamespaced
Simple bullet list of spaced page names, without the Group name.
(:if false:) [[#simplenamespaced]] * [[({=$Group}/){=$Namespaced}]] [[#simplenamespacedend]] (:ifend:) (:pagelist group={$Group} fmt=#simplenamespaced count=5:) |
|
fmt=#titlesummary
A simple bullet list of page title and summary.
>>comment<< [[#titlesummary]] * [[{=$FullName} | {=$Title}]] [-{=$:Summary}-] [[#titlesummaryend]] >>font-size:smaller<< (:pagelist group=Site fmt=#titlesummary list=normal count=8:) |
|
fmt=#count
Number of pages in pagelist
(:if false:) [[#count]] (:template defaults wrap=inline list=normal :) (:template last:) {$$PageCount} [[#countend]] (:ifend:) Number of pages in the {$Group} group: (:pagelist group={$Group} fmt=#count :). Number of pages in the {$Group} group: (:pagelist group={$Group} fmt=count :). There are (:pagelist group=PmWiki fmt=#count wrap=html :) pages in the PmWiki group. |
Number of pages in the Site group:
Number of pages in the Site group: 29.
There are 105 |
OLD=========================================================
Page last modified on 04 septembre 2022 à 10h56 with pmwiki-2.3.20 - 📩 Vos commentaires. Merci -> mailto:toposcopie [snail] gmail [period] com?subject=https://www [period] toposcopie [period] fr/Site [period] PageListTemplates -