This page contains "templates" for Pm Wiki'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
fmt=#exdefault
The default template for pagelists when fmt=
isn't specified (and note that on the Pm Wiki.org wiki, this template is over-ridden by the one on the Site.LocalTemplates? page).
(:if false:)
[[#exdefault]]
(:template first {=$Group}:)
:[[{=$Group}/]] /:
(:template each:)
: :[[{=$Group}/{=$Name}]] -
{=$Titlespaced}
[[#defaultend]]
(:ifend:)
(:pagelist group={$Group} fmt=#default
count=6:)
|
|
fmt=#default
The default template for pagelists when fmt=
isn't specified.
[[#default]]
(:if ! equal {=$Group} {<$Group}:)
[[{=$Group}/]] ↓
(:if:)
* [[{=$Group}/{=$Name}]] ''{=$Description}''
[[#defaultend]]
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=#simple1
A simple bullet list of page names.
(:if false:)
[[#simple1]]
* [[{=$Name}]]
[[#simple1end]]
(:ifend:)
(:pagelist group={$Group} fmt=#simple1
count=5:)
|
|
fmt=#title
A simple bullet list of page titles.
(:if false:)
[[#title]]
(:template defaults order=title:)
* [[{=$FullName}|{=$Titlespaced}]]
[[#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.
[[#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. Creates dash by all names, but adding a nested loop to get rid of it causes markup problems (nested loops are not allowed).
(:if false:)
[[#description]]
* [[{=$FullName}|+]] {=$Description}
[[#descriptionend]]
(:ifend:)
(:pagelist group={$Group}
fmt=#description count=7:)
|
|
fmt=#listwikiEscuela
List pages and append the page's description if it exists. Creates dash by all names, but adding a nested loop to get rid of it causes markup problems (nested loops are not allowed).
(:if false:)
[[#listwikiEscuela]]
* [[{=$FullName}|+]] ''{=$Description}''
[[#listwikiEscuelaend]]
(:ifend:)
(:pagelist group={$Group}
fmt=#listwikiEscuela count=15:)
|
|
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} | {=$Titlespaced}]]
[-{=$: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:
19
.
Number of pages in the Site group: 0.
There are pages in the Pm Wiki group.
|
fmt=#listaN1
Lista las páginas con nombre y breve descripción
[[#listaN1]]
(:div id='idNoticias':)
%color='#45a800'%'''[[{=$FullName}|+]]''' \\
{=$Description}.\\\
[[#listaN1end]]
(:divend:)
fmt=#lista1b
The default template for pagelists when fmt=
isn't specified.
[[#lista1b]]
(:div id='idNoticias':)
%rframe width=130 height=98px%Attach:Noticias/{=$Name}.jpg
%color='#45a800'%'''[[{=$FullName}|+]]''' \\
(:if ! equal {=$Description} '':)
{=$Description}
(:if:)
(:divend:)
----
[[<<]]
[[#lista1bend]]
fmt=#lista2b
idem a lista2 pero
[[#lista2b]]
* %color='#000066'%[[{=$FullName}|+]] %gray%{=$LastModified}.
[[#lista2bend]]
fmt=#lista2
Lista las páginas con nombre y breve descripción
[[#lista2]]
*%color='#000066'%[[{=$FullName}| '''{=$Titlespaced}''' ]]. %gray%{=$Description}\\
%gray%{=$LastModified}\\\
[[#lista2end]]
fmt=#foroDescripcion
Muestra el cartes principal del foro en el que se muestra los datos principales
(:if false:)
[[#foroDescripcion]]
'''{*$CreatedBy}''' propone el siguiente
tema para debatir:
'''[[{=$FullName}|{=$Titlespaced}]]'''.
{=$Description}
[[#foroDescripcionend]]
(:ifend:)
(:pagelist group={$Group}
fmt=#foroDescripcion count=7:)
|
|
fmt=#lista3b
idem a lista1 pero sin ancho definido
[[#lista3b]]
(:div id='noticiasDestacadas':)
%lframe width=145px height=95px%Attach:Noticias/{=$Name}.jpg
%color='#000066'%[[{=$FullName}| '''{=$Titlespaced}''' ]]\\\
%gray%{=$Description}. %color='#000066'%[[{=$FullName}|'''[-Leer Mas-]''']].\\
%gray%{=$LastModified}
(:divend:)
[[<<]]
[[#lista3bend]]
fmt=#listaCategoria
idem a lista1 pero sin ancho definido
[[#listaCategoria]]
(:div style='padding-left:25px;':)
%align=top%Attach:Site/vinetaCategoria.gif%id=verlistaCategoria%[[{=$FullName} | {=$Titlespaced} ]] {=$Description}\\
(:divend:)
[[<<]]
[[#listaCategoriaend]]
fmt=#listaCategoria2
idem a lista1 pero sin ancho definido
[[#listaCategoria2]]
(:div style='padding-left:25px;text-decoration:none;':)
%align=top%Attach:Site/vinetaCategoria.gif %color='#000066'%%newwin%[[{=$FullName} | '''{=$Titlespaced}''']]
(:divend:)
[[<<]]
[[#listaCategoria2end]]