From: Martin Zobel-Helas Date: Sat, 5 Feb 2011 09:57:02 +0000 (+0100) Subject: Add templates X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-wiki.git;a=commitdiff_plain;h=8f7f61590f3f01be17c9624ea3d28d7ea849d510 Add templates Signed-off-by: Martin Zobel-Helas --- diff --git a/templates/aggregatepost.tmpl b/templates/aggregatepost.tmpl new file mode 100644 index 0000000..8b89367 --- /dev/null +++ b/templates/aggregatepost.tmpl @@ -0,0 +1,15 @@ + + +[[!tag ]] + + +[[!meta title=""]] + + +[[!meta permalink=""]] + + +[[!meta copyright=""]] + +[[!meta author=""]] +[[!meta authorurl=""]] diff --git a/templates/archivepage.tmpl b/templates/archivepage.tmpl new file mode 100644 index 0000000..28800e7 --- /dev/null +++ b/templates/archivepage.tmpl @@ -0,0 +1,19 @@ +

+ +
+ +
+
+ +Posted + +by + + + + + + + + +

diff --git a/templates/atomitem.tmpl b/templates/atomitem.tmpl new file mode 100644 index 0000000..87cbee9 --- /dev/null +++ b/templates/atomitem.tmpl @@ -0,0 +1,48 @@ + + <TMPL_VAR TITLE> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + " type="text/html" /> + + + " type="application/atom+xml" /> + + diff --git a/templates/atompage.tmpl b/templates/atompage.tmpl new file mode 100644 index 0000000..fc0088a --- /dev/null +++ b/templates/atompage.tmpl @@ -0,0 +1,39 @@ + + + +<TMPL_VAR TITLE> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +ikiwiki + + + diff --git a/templates/autoindex.tmpl b/templates/autoindex.tmpl new file mode 100644 index 0000000..d5ec3b8 --- /dev/null +++ b/templates/autoindex.tmpl @@ -0,0 +1 @@ +[[!map pages="/* and ! /*/*"]] diff --git a/templates/autotag.tmpl b/templates/autotag.tmpl new file mode 100644 index 0000000..6bc809d --- /dev/null +++ b/templates/autotag.tmpl @@ -0,0 +1,4 @@ +[[!meta title="tag "]] + +[[!inline pages="tagged()" actions="no" archive="yes" +feedshow=10]] diff --git a/templates/blogpost.tmpl b/templates/blogpost.tmpl new file mode 100644 index 0000000..7eeede6 --- /dev/null +++ b/templates/blogpost.tmpl @@ -0,0 +1,16 @@ +
+
+ +RSS + + +Atom + + + + + + + +
+
diff --git a/templates/calendarmonth.tmpl b/templates/calendarmonth.tmpl new file mode 100644 index 0000000..23cd954 --- /dev/null +++ b/templates/calendarmonth.tmpl @@ -0,0 +1,5 @@ +[[!sidebar content=""" +[[!calendar type=month month= year= pages=""]] +"""]] + +[[!inline pages="creation_month() and creation_year() and " show=0 feeds=no reverse=yes]] diff --git a/templates/calendaryear.tmpl b/templates/calendaryear.tmpl new file mode 100644 index 0000000..714bd6d --- /dev/null +++ b/templates/calendaryear.tmpl @@ -0,0 +1 @@ +[[!calendar type=year year= pages=""]] diff --git a/templates/change.tmpl b/templates/change.tmpl new file mode 100644 index 0000000..5f277a0 --- /dev/null +++ b/templates/change.tmpl @@ -0,0 +1,46 @@ +[[!meta author=""""""]] + +[[!meta authorurl=""""""]] + +[[!meta title="""change to on """]] + +[[!meta permalink=""]] + + +
+ + +
+
+
+
+ +
+
+
+
+
+
+ diff --git a/templates/comment.tmpl b/templates/comment.tmpl new file mode 100644 index 0000000..39cba0f --- /dev/null +++ b/templates/comment.tmpl @@ -0,0 +1,58 @@ +
+
+ +
+ + + + + +
+ +
+ +
+ +
+Comment by + + + + + + + + + + + + + + + + + + + + + + + + + + + +— +
+ + + + + +
diff --git a/templates/commentmoderation.tmpl b/templates/commentmoderation.tmpl new file mode 100644 index 0000000..2978864 --- /dev/null +++ b/templates/commentmoderation.tmpl @@ -0,0 +1,32 @@ + +
+
+ + + + + +
+ +
+
+ +
+ + + + + + +
+
+
+ + + +
+ +

+No comments need moderation at this time. +

+
diff --git a/templates/editcomment.tmpl b/templates/editcomment.tmpl new file mode 100644 index 0000000..32e8c39 --- /dev/null +++ b/templates/editcomment.tmpl @@ -0,0 +1,32 @@ +
+ + + + + + + +Name: (optional, or +signin)
+Website: (optional)
+ +(You might want to Signin first?)
+
+
+Subject:
+
+
+ + + + +
+
+Comment preview: +
+
+ +
+
+ +
diff --git a/templates/editconflict.tmpl b/templates/editconflict.tmpl new file mode 100644 index 0000000..1252033 --- /dev/null +++ b/templates/editconflict.tmpl @@ -0,0 +1,7 @@ +

+Your changes conflict with other changes made to the page. +

+

+Conflict markers have been inserted into the page content. Reconcile the +conflict and commit again to save your changes. +

diff --git a/templates/editcreationconflict.tmpl b/templates/editcreationconflict.tmpl new file mode 100644 index 0000000..c99102f --- /dev/null +++ b/templates/editcreationconflict.tmpl @@ -0,0 +1,9 @@ +

+While you were creating this page, someone else independently created a page +with the same name. +

+

+The edit box below contains the page's current content, followed by the +content you entered previously, to allow you to merge the two +together before saving. +

diff --git a/templates/editfailedsave.tmpl b/templates/editfailedsave.tmpl new file mode 100644 index 0000000..5184f7d --- /dev/null +++ b/templates/editfailedsave.tmpl @@ -0,0 +1,10 @@ +

+Failed to save your changes. +

+

+Your changes were not able to be saved to disk. The system gave the error: +

+ +
+Your changes are preserved below, and you can try again to save them. +

diff --git a/templates/editpage.tmpl b/templates/editpage.tmpl new file mode 100644 index 0000000..b1cf015 --- /dev/null +++ b/templates/editpage.tmpl @@ -0,0 +1,50 @@ +
+ + + + + + + + + +Page location: +Page type: + +
+ + +
+
+ +Optional comment about this change:
+
+
+ + + +Attachments +
+ + + + + + + + +
+
+
+ + + + +
+
+Page preview: +
+
+ +
+
diff --git a/templates/editpagegone.tmpl b/templates/editpagegone.tmpl new file mode 100644 index 0000000..2eed03a --- /dev/null +++ b/templates/editpagegone.tmpl @@ -0,0 +1,7 @@ +

+The page you were editing has disappeared. +

+

+Perhaps someone else has deleted it or moved it. If you want to recreate +this page with your text, click "Save Page" again. +

diff --git a/templates/feedlink.tmpl b/templates/feedlink.tmpl new file mode 100644 index 0000000..2963156 --- /dev/null +++ b/templates/feedlink.tmpl @@ -0,0 +1,8 @@ + diff --git a/templates/googleform.tmpl b/templates/googleform.tmpl new file mode 100644 index 0000000..f39b465 --- /dev/null +++ b/templates/googleform.tmpl @@ -0,0 +1,7 @@ +
+
+ + placeholder="search" /> +
+
diff --git a/templates/inlinepage.tmpl b/templates/inlinepage.tmpl new file mode 100644 index 0000000..1e0a167 --- /dev/null +++ b/templates/inlinepage.tmpl @@ -0,0 +1,72 @@ +
+ +
+ + + + + + + + + +
+ + + + + +
+
+ +
+ +
+ +
+ + +Posted + + + + + + + + + + + +
+License: +
+
+ + +
+ + +
+ +
diff --git a/templates/microblog.tmpl b/templates/microblog.tmpl new file mode 100644 index 0000000..2e84441 --- /dev/null +++ b/templates/microblog.tmpl @@ -0,0 +1,22 @@ +
+ +
+ +
+ +
+ + + + + + + + + + + +— + +
+
diff --git a/templates/misc.tmpl b/templates/misc.tmpl new file mode 100644 index 0000000..5654cab --- /dev/null +++ b/templates/misc.tmpl @@ -0,0 +1,43 @@ + + + + + + + + + + + + +<TMPL_VAR TITLE> + + + + + + + + + + +
+ +
+ +
+ + + diff --git a/templates/page.tmpl b/templates/page.tmpl new file mode 100644 index 0000000..967e17b --- /dev/null +++ b/templates/page.tmpl @@ -0,0 +1,196 @@ + + + + + <TMPL_VAR TITLE> + + + + + + + + + + + + + + + + +
+ + + + + +
+ +
 
+
+ + + + + + +
+ + diff --git a/templates/passwordmail.tmpl b/templates/passwordmail.tmpl new file mode 100644 index 0000000..aa8a68c --- /dev/null +++ b/templates/passwordmail.tmpl @@ -0,0 +1,15 @@ +Someone[1], possibly you, requested that the password for + on [2] be reset. + +To change your password, visit the following url, and enter a new password: + + + +This url can only be used once to change your password, and it will also +stop working the next time you successfully log in. + +-- +ikiwiki + +[1] Their IP address was +[2] Located at diff --git a/templates/pocreatepage.tmpl b/templates/pocreatepage.tmpl new file mode 100644 index 0000000..96c8fdd --- /dev/null +++ b/templates/pocreatepage.tmpl @@ -0,0 +1,3 @@ +

+WARNING this page must be written in . +

\ No newline at end of file diff --git a/templates/recentchanges.tmpl b/templates/recentchanges.tmpl new file mode 100644 index 0000000..340a157 --- /dev/null +++ b/templates/recentchanges.tmpl @@ -0,0 +1,7 @@ + +
+ + + +
+
diff --git a/templates/renamesummary.tmpl b/templates/renamesummary.tmpl new file mode 100644 index 0000000..60f81b3 --- /dev/null +++ b/templates/renamesummary.tmpl @@ -0,0 +1,26 @@ + +

+Failed to rename to : + +

+ +

+Successfully renamed to . +

+

+ +The following pages have been automatically modified to update their links to : +

    +
  • +
+
+ + +The following pages still link to : +
    +
  • +
+
+
+

+ diff --git a/templates/rssitem.tmpl b/templates/rssitem.tmpl new file mode 100644 index 0000000..069ae19 --- /dev/null +++ b/templates/rssitem.tmpl @@ -0,0 +1,29 @@ + + + <TMPL_VAR AUTHOR ESCAPE=HTML>: <TMPL_VAR TITLE> + + + <TMPL_VAR TITLE> + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/rsspage.tmpl b/templates/rsspage.tmpl new file mode 100644 index 0000000..e54094a --- /dev/null +++ b/templates/rsspage.tmpl @@ -0,0 +1,11 @@ + + + +<TMPL_VAR TITLE> + + + + + diff --git a/templates/searchform.tmpl b/templates/searchform.tmpl new file mode 100644 index 0000000..cb65d12 --- /dev/null +++ b/templates/searchform.tmpl @@ -0,0 +1,6 @@ +
+
+placeholder="search" /> +
+
diff --git a/templates/searchquery.tmpl b/templates/searchquery.tmpl new file mode 100644 index 0000000..5b9fbbf --- /dev/null +++ b/templates/searchquery.tmpl @@ -0,0 +1,113 @@ +$setmap{prefix,title,S} +$setmap{prefix,link,XLINK} +$set{thousand,$.}$set{decimal,.}$setmap{BN,,Any Country,uk,England,fr,France} +${ +$def{PREV, +$if{$ne{$topdoc,0},, +} +} + +$def{NEXT, +$if{$ne{$last,$msize},, +} +} + +$def{P,} +$def{PAGE,$if{$gt{$1,9},$if{$gt{$1,99},$P{$1,$div{$1,100}}}$P{$1,$mod{$div{$1,10},10}}}$P{$1,$mod{$1,10}}} + +$def{S,$1} +$def{SPAGE,$if{$gt{$1,9},$if{$gt{$1,99},$S{$1,$div{$1,100}}}$S{$1,$mod{$div{$1,10},10}}}$S{$1,$mod{$1,10}}} +} + +$def{PREV,$if{$ne{$topdoc,0},}} + +$def{PAGE,} + +$def{SPAGE,} + +$def{NEXT,$if{$ne{$last,$msize},}} + +

+ +

+
+ + +$env{HELPLINK} +
+ +$or{$html{$error}, +$if{$eq{$msize,0}, +$if{$query,No documents match your query, +
Searching $nice{$dbsize} documents +}, +$if{$not{$msizeexact}, + $nice{$add{$topdoc,1}}-$nice{$last} of about $nice{$msize} matches, + $if{$and{$eq{$last,$msize},$eq{$topdoc,0}}, + All $nice{$msize} matches, + $nice{$add{$topdoc,1}}$if{$ne{$add{$topdoc,1},$last},-$nice{$last}} of exactly $nice{$msize} matches} +} +
+
+$list{$map{$queryterms,$list{$html{$uniq{$unstem{$_}}},,/,}: $nice{$freq{$_}}},Term frequencies: ,$. ,} +
Search took $time seconds + +$hitlist{ +} +
+${$percentage%} +
+
+
+
+ +Modified:
$html{$date{$field{modtime},%Y-%m-%d}}

+$if{$field{language},Language: $html{$field{language}}
} +$if{$field{size},Size: $html{$filesize{$field{size}}}
} +
+
$html{$or{$field{caption},$field{title},$field{url},Untitled}}
+$highlight{$field{sample},$terms}$if{$field{sample},...}
+ +$percentage% relevant$. matching: +$list{$map{$terms,$html{$prettyterm{$_}}},$. , and }${for lynx:}

+ +
+ +
+${suppress next, prev, and page links if there's only one page} +$if{$ne{$lastpage,1}, +$set{a,$if{$opt{pagelink_height}, HEIGHT=$opt{pagelink_height}}$if{$opt{pagelink_width}, WIDTH=$opt{pagelink_width}}} + +${1-W ... X-(this)-Y ...} +$set{w,$min{3,$add{$thispage,-1}}} +$set{x,$max{$add{$opt{w},1},$add{$thispage,-3}}} +$set{y,$min{$lastpage,$add{$thispage,8}}} +$PREV +$map{$range{1,$opt{w}},$PAGE{$_}} +$if{$ne{$add{$opt{w},1},$opt{x}},...} +$map{$range{$opt{x},$add{$thispage,-1}},$PAGE{$_}} +$SPAGE{$thispage} +$map{$range{$add{$thispage,1},$opt{y}},$PAGE{$_}} +$if{$ne{$opt{y},$lastpage},...} +$NEXT +} +}} +

+$if{$dbname,} +$if{$ne{$topdoc,0},} +$if{$ne{$hitsperpage,10},} +$if{$fmt,} +$if{$cgi{COLLAPSE},} +$if{$queryterms,} + + +$list{$relevants,} +$if{$cgi{THRESHOLD},} +
+
diff --git a/templates/titlepage.tmpl b/templates/titlepage.tmpl new file mode 100644 index 0000000..8a11e69 --- /dev/null +++ b/templates/titlepage.tmpl @@ -0,0 +1,7 @@ +

+ + + + + +