Local Templates

User-created pagelist templates for use in other pages.

This page contains page list templates for use in searches and other pages.

[[#groups]]
(:template defaults order={=$Group}:)
(:template first {=$Group}:)
* [[{=$Group}/|+]]
[[#groupsend]]

[[#groupspaced]]
(:template defaults order={=$Groupspaced}:)
(:template first {=$Groupspaced}:)
* [[{=$Groupspaced}/|+]]
[[#groupspacedend]]

[[#groups]]
(:template defaults order={=$Groupspaced}:)
(:template first {=$Groupspaced}:)
* [[{=$Groupspaced}/|+]]
[[#groupsend]]

[[#ctitle]]
(:template defaults order=-$:c,-$LastModifiedTime:)
(:comment template first {=$Group}:)
(:comment * [[{=$Group}/|{=$Groupspaced}]]:)
(:template each:)
** [[{=$Group}/{=$Namespaced}|+]] ({=$:c})
(:template last:)
[[#ctitleend]]

[[#gctitle]]
(:template defaults order=-$:c,-$LastModifiedTime:)
(:template first {=$Group}:)
* [[{=$Group}/|{=$Groupspaced}]]
(:template each:)
** [[{=$Group}/{=$Namespaced}|+]] ({=$:c})
(:template last:)
[[#gctitleend]]

[[#dwheaduser]]
(:template defaults order=-{=$:Dw},{=$Title}:)
(:template first:)
(:template first {=$:Dw}:)
(:if2 [ ! equal "{=$:Dw}" "" && [ equal "{=$Group}" "Character" ]:)
:[[http://{=$:Dw}.dreamwidth.org/profile | Attach:Category/dw-user.png"[personal profile ]"]]⁠[[http://{=$:Dw}.dreamwidth.org/ | '''{=$:Dw}''']]:
: :[[{=$FullName}|+]]
(:elseif2 equal "{=$:Dw}" "moonburnt":)
:[[http://{=$:Dw}.dreamwidth.org/profile | Attach:Category/dw-community.png"[community profile ]"]]⁠[[http://{=$:Dw}.dreamwidth.org/ | '''{=$:Dw}''']]:
: :[[{=$FullName}|+]]
(:elseif2 equal "{=$:Dw}" "dw_news":)
:[[http://{=$:Dw}.dreamwidth.org/profile | Attach:Category/dw-comm_staff.png"[site community profile ]"]]⁠[[http://{=$:Dw}.dreamwidth.org/ | '''{=$:Dw}''']]:
: :[[{=$FullName}|+]]
(:else2:)
:[[http://{=$:Dw}.dreamwidth.org/profile | Attach:Category/dw-user.png"[personal profile ]"]]⁠[[http://{=$:Dw}.dreamwidth.org/ | '''{=$:Dw}''']]:
: :[[{=$FullName}|+]]
(:if2end:)
(:template ! first {=$:Dw}:)
: :[[{=$FullName}|+]]
(:template last:)
(:template none:)
No [[Reality/Dreamwidth]] accounts to display.
[[#dwheadusersend]]

[[#bgtype]]
(:template defaults order=$:type,$Group,$Name:)
(:template first {=$:type}:)
!! {=$:type}
(:template each {=$:type}:)
* [[{=$FullName} | {=$Titlespaced}]]
[[#bgtypeend]]

>>comment<<
[[#bgsummary]]
(:template defaults order=$:type,$Group,$Name:)
(:template first {=$:type}:)
[[#{=$:type}]]
!! {=$:type}
(:template each {=$:type}:)
* [[{=$FullName} | {=$Titlespaced}]] &nbsp; [-{=$:Summary}-]
[[#bgsummaryend]]
>>font-size:smaller<<

>>comment<<
[[#morelike]]
(:template defaults order=$:type,$Group,$Name:)
(:template each {=$:type}:)
* '''[[{=$FullName} | {=$Titlespaced}]]''' - [-{=$:Summary}-]
[[#morelike]]
>>font-size:smaller<<

[[#solo]]
(:comment Used with toolbar quicksearch. For searches that have only one result, automatically redirects to that page.:)
(:template each:)
* [[{=$FullName}]]
(:template last:)
(:if equal {$$PageCount} 1:)(:redirect {=$FullName} status=301 quiet=1:)(:ifend:)
(:template none:)
(:comment redirect Site.PageNotFound status=301 quiet=1:)
No results to display.
[[#soloend]]

[[#singleline]]
(:comment Tweaked by Ree because obsessions. :)
(:template ! last:)[[{=$FullName}|{=$Titlespaced}]], 
(:template last:)(:if equal "{$$PageCount}" "1":)Only [[{=$FullName}|{=$Titlespaced}]]. (:elseif equal "{$$PageCount}" "2":) [[{=$FullName}|{=$Titlespaced}]], and nothing else. (:else:) and [[{=$FullName}|{=$Titlespaced}]]. 
(:template none:)
No results to display.
[[#singlelineend]]

fmt=#sidebar

pagelist of titles for sidebar
[[#sidebar]](:if equal {<$Group}:)
>>fplsidebar<<
(:if ! equal {<$Group} {=$Group}:)
%sidehead%[[{=$Group}]](:if:)
* [[{=$FullName}|+]]
(:if equal {>$Group}:)
>><<(:if:)
[[#sidebarend]]

fmt=#sidebartitles

pagelist of spaced page titles for sidebar, without group heading
[[#sidebartitles]](:if equal {<$Group}:)
>>fplsidebar<<(:if:)
* [[{=$FullName}|{=$Titlespaced}]]
(:if equal {>$Group}:)
>><<(:if:)
[[#sidebartitlesend]]

[[#teasers]]
|| '''[[{=$FullName}]]''' - [[Edit -> {=$FullName}?action=edit]]||

(:include {=$FullName} lines=4:)

(:if ! equal {>$Group}:)
-----
(:if:) 
[[#teasersend]]

[[#headerinclude]]
%rfloat%[-more-] [[{=$FullName}|{=$Titlespaced}]]
(:include {=$FullName} para=1:)
(:if equal {>$Group}:)
(:title {$Title}:)(:if:)
----
[[#headerincludeend]]

[[#articleteasers]]
[+{=$Title}+]
%define=leftborder border-left="2px solid #88f" margin-left="2px" padding="0 0 0 10px"%
>>leftborder<<(:include {=$FullName} lines=5:)

%right% [-[[{=$FullName}|Read More]]-]
(:if ! equal {>$Group}:)
>><<

(:if:) 
[[#articleteasersend]]

[[#includeTitle]]
(:if auth edit:)
%rfloat%[[{=$FullName}?action=edit|[-edit-]]](:if:)
!![[#{=$FullName}]][[{=$FullName}|{=$Title}]]
(:include {=$FullName}:)
----
(:if equal {>$Group}:)
(:title {$Title}:)(:if:)
[[#includeTitleend]]

[[#includeToc]]
* [[#{=$FullName}|{=$Title}]]
[[#includeTocend]]

[[#groupsWithListLinks]]
(:if ! equal {=$Group} {<$Group}:)
* [[{=$Group}]] \
  ([[list pages -> {$Name}?action=search&q=group%3D{=$Group}]])
(:ifend:)
[[#groupsWithListLinksend]]

[[#bygrouptitle]]
(:if ! equal {=$Group} {<$Group}:)

:[[{=$Group}/]] /:
(:if:)
: :[[{=$Group}/[[{=$Name} | + ]]
[[#bygrouptitleend]]

[[#includeXref]]
(:include {=$FullName}#{$Name}:)
[[#includeXrefend]]

(:if false:)
[[#categorized]]
(:template defaults order=title:)
(:template first:)
!!! {{$$link}$Titlespaced}
(:template each:)
* [[{=$FullName}|{=$Titlespaced}]] [-({=$LastModified} - {=$LastModifiedSummary})-]
[[#categorizedend]]
(:ifend:)

(:if1 false:)
[[#sidebarexpandthisgroup]]
(:template first {=$Group}:)
(:if2 group {=$Group} :)
* %sidehead% [[{=$Group}/]]
(:else2:)
* [[{=$Group}/]]
(:if2end:)
(:template each:)
(:if2 equal {*$Group} {=$Group}:)
(:if3 name {=$FullName} :)
** (:comment Empty item so sidehead isn't applied to full list if this is first item :)
** %sidehead% [[{=$FullName}|{=$Titlespaced}]]
(:else3:)
** [[{=$FullName}|{=$Titlespaced}]]
(:if3end:)
(:if2end:)
[[#sidebarexpandthisgroup]]
(:if1end:)

[[#meta]]
(:comment template defaults order=$$meta:)
(:template defaults meta=$:Dw order=$$meta,group,name,random:)
(:comment template first {=$FullName}$$meta:)
(:template first {=$FullName{$$meta}}:)
(:comment order={$$order} :)
(:comment template each {=$FullName}$$meta:)
(:template each:)
(:comment * [[{=$FullName}]] - [-{$$PageCount} {={$$meta}}-] :)
* [-{$$PageCount} %comment% order={$$order} %% -] - {$$meta} = {={$$meta}} - [[{=$FullName}]]
[[#metaend]]

[[#cluster]]
(:if equal {=$n0} 1:)
* [[{=$FullName}|{=$Titlespaced}]]
(:if equal {=$n0} 2:)
** [[{=$FullName}|{=$n2}]]
(:if equal {=$n0} 3:)
*** [[{=$FullName}|{=$n3}]]
(:ifend:)
[[#cluster]]

[[#clusterfancy]]
(:if equal {=$n0} 1:)
* [[{=$FullName}|{=$Titlespaced}]] &nbsp; [-{=$:Summary}-]
(:if equal {=$n0} 2:)
** [[{=$FullName}|{=$n2}]] &nbsp; [-{=$:Summary}-]
(:if equal {=$n0} 3:)
*** [[{=$FullName}|{=$n3}]] &nbsp; [-{=$:Summary}-]
(:ifend:)
[[#clusterfancy]]

Return to home.