LocalTemplates

PageListTemplates

#default

This redefines the default page list output for pmwiki.org. Basically we redefine the list to include any summary that may exist for the page.

>>comment<<
[[#default]]
(:template first {=$Group}:)

:[[{=$Group}/]] /:
(:template each:)
: :[[{=$Group}/{=$Name}]] [-&nbsp;{=$:Summary} (:if ! equal "{=$:Status}" "":)({=$:Status})(:if:)-]
(:template none:)
'''$[No results found.]'''
[[#defaultend]]
>>font-size:smaller<<

(:pagelist group={$Group} fmt=#default list=normal count=7:)

(:template first {=$Group}:)

{=$Group}? /

(:template each:)

{=$Name}?  {=$:Summary} ({=$:Status})

(:template none:) No results found.

Site /
AllRecentChangesMedium  The 180 most recent pages changed
AllRecentChangesMob  RecentChanges optimized for small screens and mobile devices.
AllRecentChangesPerAuthor  All pages changed by Author
AllRecentChangesShort  The 60 most recent pages changed
Analyze  
ApprovedUrls  Redirected to SiteAdmin.ApprovedUrls
AuthForm  Form displayed when requesting a password or username/password

Recent changes like

(:if false:)
[[#rclist]]
(:template defaults order=-time list=normal:)
(:template each:)
* [[{=$FullName}?action=diff#diff{=$LastModifiedTime}|{(ftime fmt="%L" when=@{=$LastModifiedTime})}]] [[{=$FullName}]] . . .  by {=$LastModifiedBy}
[[#rclistend]]
(:ifend:)
(:pagelist group=PmWiki fmt=#rclist count=6:)

#numbered

>>comment<<
[[#numbered]]
(:template first {=$Group}:)

# [[{=$Groupspaced}]] /
(:template each:)
## [[{=$Group}/{=$Namespaced}]] [-&nbsp;{=$:Summary}-]
[[#numbered]]
>>font-size:smaller<<

(:pagelist group={$Group} fmt=#numbered list=normal count=7:)

(:template first {=$Group}:)

  1. {=$Groupspaced}? /

(:template each:)

  1. {=$Namespaced}?  {=$:Summary}

  1. Site /
    1. All Recent Changes Medium  The 180 most recent pages changed
    2. All Recent Changes Mob  RecentChanges optimized for small screens and mobile devices.
    3. All Recent Changes Per Author  All pages changed by Author
    4. All Recent Changes Short  The 60 most recent pages changed
    5. Analyze  
    6. Approved Urls  Redirected to SiteAdmin.ApprovedUrls
    7. Auth Form  Form displayed when requesting a password or username/password

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!)

[[#listoffaq]]
* [[{=$FullName}#faq | {=$Title}]] 
[[#listoffaqend]]

fmt=#summarylist

List of pages and summary, one per line.

>>comment<<
[[#summarylist]]
(:template first {=$Group}:)
(:template each:)
-< [[{=$Group}/{=$Name}]] &nbsp; [-{=$:Summary}-]
[[#summarylistend]]
>>font-size:smaller<<

(:pagelist group={$DefaultGroup} fmt=#summarylist list=normal count=6:)

(:template first {=$Group}:) (:template each:)

{=$Name}?   {=$:Summary}

AccessKeys   Access keys are keyboard shortcuts for tasks that would otherwise require a mouse
AccessKeys-Talk   Discussion of AccessKeys
AdminTask   List of PmWiki administration related tasks organized in alphabetical order
AnalyzeResults   Instructions and possible responses from using the Site Analyzer
AQ   Repository for questions about PmWiki that have been answered, see also FAQ
Audiences   Patrick Michaud's comments regarding the "audiences" for which PmWiki was designed

fmt=#summarylistspaced

List of pages and summary, one per line.

>>comment<<
[[#summarylistspaced]]
(:template first {=$Group}:)
(:template each:)
-< [[{=$Group}/{=$Namespaced}]] &nbsp; [-{=$:Summary}-]
[[#summarylistspacedend]]
>>font-size:smaller<<

(:pagelist group={$DefaultGroup} fmt=#summarylistspaced list=normal count=6:)

(:template first {=$Group}:) (:template each:)

{=$Namespaced}?   {=$:Summary}

Access Keys   Access keys are keyboard shortcuts for tasks that would otherwise require a mouse
Access Keys-Talk   Discussion of AccessKeys
Admin Task   List of PmWiki administration related tasks organized in alphabetical order
Analyze Results   Instructions and possible responses from using the Site Analyzer
AQ   Repository for questions about PmWiki that have been answered, see also FAQ
Audiences   Patrick Michaud's comments regarding the "audiences" for which PmWiki was designed

fmt=#csvlist

List of pages and summary, comma separated, on one line.

>>comment<<
[[#csvlist]]
(:template first {=$Group}:)
(:template each:)
[[{=$Group}/{=$Namespaced}]],
[[#csvlistend]]
>>font-size:smaller<<

(:pagelist group={$DefaultGroup} fmt=#csvlist list=normal count=16:)

(:template first {=$Group}:) (:template each:) {=$Namespaced}?,


fmt=#iuselist

List of pages containing PTV (to be used on RecipeName-Users pages)

>>comment<<
[[#iuselist]]
(:template first {=$Group}:)
(:template each:)
||[[{=$Group}/{=$Namespaced}]] ||[-{{=$FullName}$:I_Use_{(substr {*$Name} 0 -6)}}-] ||
[[#iuselistend]]
>>font-size:smaller<<

(:pagelist group={$DefaultGroup} fmt=#iuselist list=normal count=10:)

(:template first {=$Group}:) (:template each:)

{=$Namespaced}?{{=$FullName}$:I_Use_LocalTem}

[[#onapost]]
(:template defaults savevars=$:date,$:reserve,$:year,$:rstr,$:location,$:meal,$:start,$:end,$:town,$:state,$:prepay,$:price,$:credit,$:cc,$:mailing,$:phone,$:email :)
[[#onapostend]]

onaform

[[#onaform]]
(:input pmform target=onaform :)
(:input default source={*$FullName} :)
(:input default request=1 :)
(:messages:)
(:table:)
(:cellnr:)
|| Event Date:||(:input text $:date size=25 :) ||
|| Reserve Date:||(:input text $:reserve size=25 :) ||
|| Year:||(:input text $:year size=25 :) ||
|| Restaurant:||(:input text $:rstr size=25 :) ||
|| Address:||(:input text $:location size=25 :) ||
|| Meal:||(:input select $:meal value=lunch :)(:input select $:meal value=dinner:)(:input select $:meal value=breakfast :) ||
|| Start Time:||(:input text $:start size=25 :) ||
|| End Time:||(:input text $:end size=25 :) ||
|| Town:||(:input text $:town size=25 :) ||
|| State:||(:input text $:state size=25 :) ||
(:cell:)
|| Prepay Cost:||(:input text $:prepay size=25 :) ||
|| Full Price:||(:input text $:price size=25 :) ||
|| Credit Cards:||(:input text $:credit size=25 :) ||
|| Accept CC?||(:input select $:cc value=yes :)(:input select $:cc value=no :) ||
|| Mailing Address:||(:input text $:mailing size=25 :) ||
|| Phone:||(:input text $:phone size=25 :) ||
|| Email:||(:input text $:email size=25 :) ||
(:tableend:)
(:input submit :)
(:input end:)
[[#onaformend]]
[[#mailpost2]]
(:template default from=mailform@pmichaud.com:)
(:template require from errmsg="$[Missing 'from' address]" :)
(:template require subject errmsg="$[Missing message subject]" :)
(:template require text errmsg="$[Message text required]" :) 
(:template require if="captcha" errmsg="$[Captcha required]" :)
{$$text}

==========
Sent via PmForm at {$$PageUrl}
[[#mailpostend]] 

Used on PmWikiUsers-Map

[[#mapform]]
(:input pmform target=map:)(:input hidden csum "Added Map point via PmForm":)
(:input default request=1:)
(:input default text "{$Author}":)

>>red<<
(:messages:)
>><<
!! Add yourself to the map
If you use PmWiki, please add yourself to our map.

Enter your geographic coordinates below (you can zoom and pan the map above to place the red circle marker on your location):\\
(:input text latlon id=ape_latlon placeholder="Latitude,Longitude or Latitude/Longitude" size=40:)

Your name, or company name (you can enter [=[[wiki links]]=]):\\
(:input text text placeholder="Name" size=40:)

(:input checkbox support "&icolor=0f0" label="Check if you provide PmWiki services or support for hire":)

Enter value: {$Captcha}
(:input captcha:)
(:input submit "" "Add to map":)
(:input end:)
[[#mapformend]]

[[#mappost]]
(:template defaults where=above :) 
(:template require text errmsg="$[Missing name]":)
(:template require latlon errmsg="$[Missing coordinates]":)
(:template require if="captcha" errmsg="$[Missing or invalid code]" :)
: {$$latlon}{$$support} : {$$text}
[[#mappostend]]