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.
Brief Syntax Explanation:
See also: PageLists, Page Variables, Page Text Variables, Conditional Markup, and Cookbook:PagelistTemplateSamples.
Use with page variables: = current item < previous item > next item
Conditionals used to structure pagelist output:
(:if equal {<$Group}:)
At beginning of list
(:if equal {>$Group}:)
At end of list
(:if ! equal {=$Group} {<$Group}:)
First item in group
(:if ! equal {=$Group} {>$Group}:)
Last item in group
fmt=#default
The default template for pagelists when fmt=
isn't specified.
[[#default]] (:template first {=$Group}:) :[[{=$Group}/]] /: (:template each:) : :[[{=$Group}/{=$Name}]] [[#defaultend]]
fmt=#bygroup
Display pages by group/name.
[[#bygroup]] (:template first {=$Group}:) :[[{=$Group}/]] /: (:template each:) : :[[{=$Group}/{=$Name}]] [[#bygroupend]]
fmt=#simple
A simple bullet list of page names.
[[#simple]] * [[{=$FullName}]] [[#simpleend]]
fmt=#title
A simple bullet list of page titles.
[[#title]] (:template defaults order=title:) * [[{=$FullName}|+]] [[#titleend]]
fmt=#titlespaced
Outputs wiki page titles with spaces between the words in the title.
[[#titlespaced]] (:template defaults order=title:) * [[{=$FullName}|{=$Titlespaced}]] [[#titlespacedend]]
fmt=#titlespaced2
Outputs wiki page titles with spaces between the words in the title. Pas d'ordre imposé
[[#titlespaced2]] (:template defaults:) * [[{=$FullName}|{=$Titlespaced}]] [[#titlespacedend2]]
fmt=#group
A bullet list of groups.
[[#group]] (:template first {=$Group}:) * [[{=$Group}/]] [[#groupend]]
fmt=#include
Concatenate the text of pages in the list. (Note, this can be an expensive operation!)
[[#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=#description
List pages and append the page's description if it exists.
[[#description]] *[[{=$FullName}|+]] (:if ! equal {=$Description} '':) ->'-''description:'' {=$Description}-' (:if:) [[#descriptionend]]
fmt=#simplename
Simple bullet list of page names, without the Group name.
[[#simplename]] * [[({=$Group}/){=$Name}]] [[#simplenameend]]
fmt=#simplenamespacedsansintro
Simple bullet list of spaced page names, without the Group name.
[[#simplenamespacedsansintro]] * [[({=$Group}/){=$Namespaced}|{=$:Titre}]][[<<]] [[#simplenamespacedendsansintro]]
fmt=#simplenamespaced
Simple bullet list of spaced page names, without the Group name.
[[#simplenamespaced]] (:template none:) Aucune page dans cette catégorie. (:template first:)(:table style='border:0.1px solid #FFFFFF;' width=99% bgcolor=#FFFFFF :) (:template each:) (:cellnr width=2%:)http://www.paranormal-encyclopedie.com/wiki/uploads/Main/{=$Group}.png (:cell:)[+[[({=$Group}/){=$Name}|{=$:Titre}]]+][[<<]] ''[-{=$:Intro}-]'' (:template last:) (:tableend:) [[#simplenamespacedend]]
fmt=#BACKUP2simplenamespaced
Simple bullet list of spaced page names, without the Group name.
[[#BACKUP2simplenamespaced]] (:table style='border:0.1px solid #FFFFFF;' width=99% bgcolor=#FFFFFF :) (:cell width=2%:)http://www.paranormal-encyclopedie.com/wiki/uploads/Main/{=$Group}.png (:cell:)[+[[({=$Group}/){=$Name}|{=$:Titre}]]+][[<<]] ''[-{=$:Intro}-]''[[<<]] (:tableend:) [[#BACKUP2simplenamespacedend]]
fmt=#pardates
Simple bullet list of spaced page names, without the Group name.
[[#pardates]] (:table style='border:0.1px solid #FFFFFF;' width=99% bgcolor=#FFFFFF :) (:cell width=2%:)Attach:{=$Group}.png (:cell:)[+[[({=$Group}/){=$Name}|{=$:Chronologie}]]+] ''[-{=$:Intro}-]''[[<<]] (:tableend:) [[#pardatesend]]
fmt=#images
Simple bullet list of spaced page names, without the Group name.
[[#images]] (:template first:) (:table border=1 bordercolor=white width=100% align=center cellpadding=0:) (:template each:) (:cellnr align=center width=20%:) %newwin% [[Images.{=$Namespaced}|Attach:{=$Namespaced}.png ]] %% (:cell width=80%:) '''[[Images.{=$Namespaced}| {=$:Titre}]]''' {=$:Intro} (:template last:) (:tableend:) [[#images]]
fmt=#vidéos
Simple bullet list of spaced page names, without the Group name.
[[#vidéos]] (:template first:) (:table border=1 bordercolor=white width=100% align=center cellpadding=0:) (:template each:) (:cellnr align=center width=20%:) %newwin% [[Vidéos.{=$Namespaced}|Attach:{=$Namespaced}.png ]] %% (:cell width=80%:) '''[[Vidéos.{=$Namespaced}| {=$:Titre}]]''' {=$:Intro} (:template last:) (:tableend:) [[#vidéos]]
fmt=#dossiers
Affichage des dossiers par ordre chronologique et inversement.
[[#dossiers]] !!{=$:Titre} ---- '''Par [[Category.{=$:Auteur} | {=$:Auteur}]]''' {=$:Intro} ''' [[Dossiers.{=$Namespaced} | [Lire la suite] ]]''' [[<<]][[<<]][[<<]] [[#dossiers]]
fmt=#dernierdossier
Pour afficher le dernier dossier publié.
[[#dernierdossier]] !!Dernière publication : « {=$:Titre} » ---- '''Par [[Category.{=$:Auteur} | {=$:Auteur}]]''' {=$:Intro} ''' [[Dossiers.{=$Namespaced} | [Lire la suite] ]]''' [[<<]][[<<]][[<<]] [[#dernierdossier]]
fmt=#dernierbillet
Pour afficher le dernier billet publié.
[[#dernierbillet]] !!Dernière publication : « {=$:Titre} » ---- '''Par [[Category.{=$:Auteur} | {=$:Auteur}]]''' {=$:Intro} ''' [[Humeurs.{=$Namespaced} | [Lire la suite] ]]''' [[<<]][[<<]][[<<]] [[#dernierbillet]]
fmt=#BACKUPsimplenamespaced
Simple bullet list of spaced page names, without the Group name.
[[#BACKUPsimplenamespaced]] * [[({=$Group}/){=$Namespaced}]] [[#BACKUPsimplenamespacedend]]
fmt=#hasard
[[#hasard]] (:table style='border:1px solid #ffffff;' width=528 :) (:cell width=528 style='background-image:url([=http://www.paranormal-encyclopedie.com/images/haut_bleu.png=])' :) >>center<< %white% [+ Article aléatoire : [[({=$Group}/){=$Namespaced}| {=$:Titre}]]+] (:cellnr style='background-image:url([=http://www.paranormal-encyclopedie.com/Milieu3.jpg=])':) >><< {=$:Intro} [[ ({=$Group}/){=$Namespaced} | [Lire la suite] ]] (:cellnr style='background-image:url([=http://www.paranormal-encyclopedie.com/Bas3.jpg=])' :) [[<<]] (:tableend:) [[#hasard]]
fmt=#miniimages
Simple bullet list of spaced page names, without the Group name.
[[#miniimages]] (:template first:) (:table border=1 bordercolor=white width=100% align=center cellpadding=0:) (:cellnr align=center width=25%:) (:template each:) (:if equal {(mod {$$PageCount} 4)} 0 :) [[<<]][[Images.{=$Namespaced}|Attach:{=$Namespaced}.png ]] (:cellnr align=center width=25%:) (:else:)[[<<]][[Images.{=$Namespaced}|Attach:{=$Namespaced}.png ]] (:cell align=center width=25%:) (:ifend:) (:template last:) (:tableend:) [[#miniimages]]
fmt=#minividéos
Simple bullet list of spaced page names, without the Group name.
[[#minividéos]] (:template first:) (:table border=1 bordercolor=white width=100% align=center cellpadding=0:) (:cellnr align=center width=25%:) (:template each:) (:if equal {(mod {$$PageCount} 4)} 0 :) [[<<]][[Vidéos.{=$Namespaced}|Attach:{=$Namespaced}.png ]] (:cellnr align=center width=25%:) (:else:)[[<<]][[Vidéos.{=$Namespaced}|Attach:{=$Namespaced}.png ]] (:cell align=center width=25%:) (:ifend:) (:template last:) (:tableend:) [[#minividéos]]
fmt=#BACKUPimages
Simple bullet list of spaced page names, without the Group name.
[[#BACKUPimages]] (:table border=1 bordercolor=white width=100% align=center cellpadding=1:) (:cellnr align=center width=20%:) %newwin% [[Images.{=$Namespaced}|Attach:{=$Namespaced}.png ]] %% (:cell width=80%:) '''[[Images.{=$Namespaced}| {=$:Titre}]]''' {=$:Intro} (:tableend:) [[#BACKUPimages]]
fmt=#randomarticle
Pour la page "Hasard"
[[#randomarticle]] Page choisie : '''[[{=$Group}.{=$Name}|{=$Namespaced}]]''' (:include {=$Group}.{=$Name} basepage={{=$Group}.{=$Name}} :) [[#randomarticle]]