aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html214
-rw-r--r--templates/note/index.html132
-rw-r--r--templates/popup/index.html135
3 files changed, 481 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 00000000000..2288697d224
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,214 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+<meta name="viewport" content="width=device-width, initial-scale=1.0" />
+
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>templates</title>
+
+<link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css" type="text/css" />
+<link rel="stylesheet" href="../bootstrap/css/bootstrap-responsive.min.css" />
+
+<link rel="stylesheet" href="../local.css" type="text/css" />
+
+
+
+
+<meta name="robots" content="noindex, follow" />
+<style type="text/css">
+@media (max-width: 979px) {
+ .navbar-fixed-top {
+ position: fixed;
+ margin-left: 0px;
+ margin-right: 0px;
+ }
+}
+</style>
+</head>
+<body>
+
+<div class="container">
+
+ <div class="row-fluid">
+ <div class="span12">
+ <h1></h1>
+
+ <ul class="breadcrumb">
+
+ <li><a href="../">Arquivo Público de Memória Coletiva</a> <span class="divider">/</span> </li>
+
+ <li>templates</li>
+ <li><span class="divider">|</span> <a href="/meta">Meta</a></li>
+ <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=arquivo.git;a=history;f=templates.mdwn">History</a></li>
+ <li><span class="divider">|</span> <a href="/index.rss">Feed</a></li>
+ </ul>
+ </div>
+ </div>
+
+ <div class="page row-fluid">
+
+ <div>
+ <div class="pageheader">
+ <div class="header">
+ <h1>
+ templates
+
+ </h1>
+
+ </div>
+
+ </div>
+
+ <div id="pagebody">
+
+ <div id="content">
+ <p class="pagedate">
+ <strong>Posted <span class="date">Qua 28 Mar 2012 21:56:22 BRT</span></strong>
+ </p>
+ <p><a href="../ikiwiki/">Ikiwiki</a> uses many templates for many purposes. By editing its templates,
+you can fully customise its appearance, and avoid duplicate content.</p>
+
+<p>Ikiwiki uses the HTML::Template module as its template engine. This
+supports things like conditionals and loops in templates and is pretty
+easy to learn. All you really need to know to modify templates is this:</p>
+
+<ul>
+<li>To insert the value of a template variable, use <code>&lt;TMPL_VAR variable&gt;</code>.</li>
+<li>To make a block of text conditional on a variable being set use
+<code>&lt;TMPL_IF variable&gt;text&lt;/TMPL_IF&gt;</code>.</li>
+<li>To use one block of text if a variable is set and a second if it's not,
+use <code>&lt;TMPL_IF variable&gt;text&lt;TMPL_ELSE&gt;other text&lt;/TMPL_IF&gt;</code></li>
+</ul>
+
+
+<h2>template pages</h2>
+
+<p>Template pages are regular wiki pages that are used as templates for other
+pages.</p>
+
+<p>The <a href="http://ikiwiki.info/ikiwiki/directive/template/">template directive</a> allows
+template pages to be filled out and inserted into other pages in the wiki.</p>
+
+<p>These template pages are currently available:</p>
+
+<p>
+
+<a href="./note/">note</a>
+
+</p>
+<p>
+
+<a href="./popup/">popup</a>
+
+</p>
+
+
+
+<h2>template files</h2>
+
+<p>Template files are unlike template pages in that they have the extension
+<code>.tmpl</code>. Template files are used extensively by Ikiwiki to generate html.
+They can contain html that would not normally be allowed on a wiki page.</p>
+
+<p>Template files are located in <code>/usr/share/ikiwiki/templates</code> by default;
+the <code>templatedir</code> setting can be used to make another directory be
+searched first. Customised template files can also be placed inside the
+"templates/" directory in your wiki's source -- files placed there override
+ones in the <code>templatedir</code>.</p>
+
+<p>Here is a full list of the template files used:</p>
+
+<ul>
+<li><p><code>page.tmpl</code> - Used for displaying all regular wiki pages. This is the
+key template to customise to change the look and feel of Ikiwiki.</p></li>
+<li><p><code>rsspage.tmpl</code> - Used for generating rss feeds for blogs.</p></li>
+<li><code>rssitem.tmpl</code> - Used for generating individual items on rss feeds.</li>
+<li><code>atompage.tmpl</code> - Used for generating atom feeds for blogs.</li>
+<li><code>atomitem.tmpl</code> - Used for generating individual items on atom feeds.</li>
+<li><code>inlinepage.tmpl</code> - Used for displaying a post in a blog.</li>
+<li><code>archivepage.tmpl</code> - Used for listing a page in a blog archive page.</li>
+<li><code>titlepage.tmpl</code> - Used for listing a page by title in a blog archive page.</li>
+<li><code>microblog.tmpl</code> - Used for showing a microblogging post inline.</li>
+<li><code>blogpost.tmpl</code> - Used for a form to add a post to a blog (and rss/atom links)</li>
+<li><code>feedlink.tmpl</code> - Used to add rss/atom links if <code>blogpost.tmpl</code> is not used.</li>
+<li><code>aggregatepost.tmpl</code> - Used by the aggregate plugin to create
+a page for a post.</li>
+<li><code>searchform.tmpl</code>, <code>googleform.tmpl</code> - Used by the search plugin
+and google plugin to add search forms to wiki pages.</li>
+<li><code>searchquery.tmpl</code> - This is a Omega template, used by the
+search plugin.</li>
+<li><code>comment.tmpl</code> - Used by the comments plugin to display a comment.</li>
+<li><code>change.tmpl</code> - Used to create a page describing a change made to the wiki.</li>
+<li><code>recentchanges.tmpl</code> - Used for listing a change on the RecentChanges page.</li>
+<li><code>autoindex.tmpl</code> - Filled in by the autoindex plugin to make index pages.</li>
+<li><code>autotag.tmpl</code> - Filled in by the tag plugin to make tag pages.</li>
+<li><code>calendarmonth.tmpl</code>, <code>calendaryear.tmpl</code> - Used by ikiwiki-calendar to
+make calendar archive pages.</li>
+<li><code>trails.tmpl</code> - Used by the trail plugin to generate links on each page
+that is a member of a trail.</li>
+<li><code>notifyemail.tmpl</code> - Used by the notifymail plugin to generate mails about
+changed pages.</li>
+<li><code>editpage.tmpl</code>, <code>editconflict.tmpl</code>, <code>editcreationconflict.tmpl</code>,
+<code>editfailedsave.tmpl</code>, <code>editpagegone.tmpl</code>, <code>pocreatepage.tmpl</code>,
+<code>editcomment.tmpl</code> <code>commentmoderation.tmpl</code>, <code>renamesummary.tmpl</code>,
+<code>passwordmail.tmpl</code>, <code>openid-selector.tmpl</code>, <code>revert.tmpl</code> - Parts of ikiwiki's user
+interface; do not normally need to be customised.</li>
+</ul>
+
+
+ </div>
+
+ <hr />
+
+
+
+
+
+ </div>
+
+ <div id="footer" class="pagefooter">
+
+ <div id="pageinfo">
+
+
+
+
+ <div id="backlinks">
+ Links:
+
+ <a href="../ikiwiki/">ikiwiki</a>
+
+ <a href="../ikiwiki/formatting/">ikiwiki/formatting</a>
+
+
+ </div>
+
+
+
+
+
+
+ <!--<div class="pagedate">
+ Last edited <span class="date">Qua 28 Mar 2012 21:56:22 BRT</span>
+ </div> -->
+
+ </div>
+
+
+ <!-- from Arquivo Público de Memória Coletiva -->
+ </div>
+
+ </div>
+
+ <div class="span4">
+
+
+
+ </div>
+
+ </div>
+</div>
+
+</body>
+</html>
diff --git a/templates/note/index.html b/templates/note/index.html
new file mode 100644
index 00000000000..96528bcb15b
--- /dev/null
+++ b/templates/note/index.html
@@ -0,0 +1,132 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+<meta name="viewport" content="width=device-width, initial-scale=1.0" />
+
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>note</title>
+
+<link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css" type="text/css" />
+<link rel="stylesheet" href="../../bootstrap/css/bootstrap-responsive.min.css" />
+
+<link rel="stylesheet" href="../../local.css" type="text/css" />
+
+
+
+
+
+<style type="text/css">
+@media (max-width: 979px) {
+ .navbar-fixed-top {
+ position: fixed;
+ margin-left: 0px;
+ margin-right: 0px;
+ }
+}
+</style>
+</head>
+<body>
+
+<div class="container">
+
+ <div class="row-fluid">
+ <div class="span12">
+ <h1></h1>
+
+ <ul class="breadcrumb">
+
+ <li><a href="../../">Arquivo Público de Memória Coletiva</a> <span class="divider">/</span> </li>
+
+ <li><a href="../">templates</a> <span class="divider">/</span> </li>
+
+ <li>note</li>
+ <li><span class="divider">|</span> <a href="/meta">Meta</a></li>
+ <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=arquivo.git;a=history;f=templates/note.mdwn">History</a></li>
+ <li><span class="divider">|</span> <a href="/index.rss">Feed</a></li>
+ </ul>
+ </div>
+ </div>
+
+ <div class="page row-fluid">
+
+ <div>
+ <div class="pageheader">
+ <div class="header">
+ <h1>
+ note
+
+ </h1>
+
+ </div>
+
+ </div>
+
+ <div id="pagebody">
+
+ <div id="content">
+ <p class="pagedate">
+ <strong>Posted <span class="date">Qua 05 Mai 2010 23:47:37 BRT</span></strong>
+ </p>
+ <div class="notebox">
+
+</div>
+
+
+<p>
+Use this template to insert a note into a page. The note will be styled to
+float to the right of other text on the page. This template has one
+parameter:</p>
+
+<ul>
+<li>`text` - the text to display in the note
+</ul>
+
+
+<p></p>
+
+ </div>
+
+ <hr />
+
+
+
+
+
+ </div>
+
+ <div id="footer" class="pagefooter">
+
+ <div id="pageinfo">
+
+
+
+
+
+
+
+
+
+ <!--<div class="pagedate">
+ Last edited <span class="date">Qua 05 Mai 2010 23:47:37 BRT</span>
+ </div> -->
+
+ </div>
+
+
+ <!-- from Arquivo Público de Memória Coletiva -->
+ </div>
+
+ </div>
+
+ <div class="span4">
+
+
+
+ </div>
+
+ </div>
+</div>
+
+</body>
+</html>
diff --git a/templates/popup/index.html b/templates/popup/index.html
new file mode 100644
index 00000000000..ddf72791fac
--- /dev/null
+++ b/templates/popup/index.html
@@ -0,0 +1,135 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+<meta name="viewport" content="width=device-width, initial-scale=1.0" />
+
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>popup</title>
+
+<link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css" type="text/css" />
+<link rel="stylesheet" href="../../bootstrap/css/bootstrap-responsive.min.css" />
+
+<link rel="stylesheet" href="../../local.css" type="text/css" />
+
+
+
+
+
+<style type="text/css">
+@media (max-width: 979px) {
+ .navbar-fixed-top {
+ position: fixed;
+ margin-left: 0px;
+ margin-right: 0px;
+ }
+}
+</style>
+</head>
+<body>
+
+<div class="container">
+
+ <div class="row-fluid">
+ <div class="span12">
+ <h1></h1>
+
+ <ul class="breadcrumb">
+
+ <li><a href="../../">Arquivo Público de Memória Coletiva</a> <span class="divider">/</span> </li>
+
+ <li><a href="../">templates</a> <span class="divider">/</span> </li>
+
+ <li>popup</li>
+ <li><span class="divider">|</span> <a href="/meta">Meta</a></li>
+ <li><span class="divider">|</span> <a href="https://git.sarava.org/?p=arquivo.git;a=history;f=templates/popup.mdwn">History</a></li>
+ <li><span class="divider">|</span> <a href="/index.rss">Feed</a></li>
+ </ul>
+ </div>
+ </div>
+
+ <div class="page row-fluid">
+
+ <div>
+ <div class="pageheader">
+ <div class="header">
+ <h1>
+ popup
+
+ </h1>
+
+ </div>
+
+ </div>
+
+ <div id="pagebody">
+
+ <div id="content">
+ <p class="pagedate">
+ <strong>Posted <span class="date">Qua 05 Mai 2010 23:47:37 BRT</span></strong>
+ </p>
+ <p>
+Use this template to create a popup window that is displayed when the mouse
+is over part of the page. This template has two parameters:</p>
+
+<ul>
+<li>`mouseover` - This is the text or other content that triggers the
+popup.
+<li>`popup` - This should be the content of the popup window. It can be
+anything, even images or a whole little wiki page, but should not be too
+large for good usability.
+</ul>
+
+
+<p>Note that browsers that do not support the CSS will display the popup
+inline in the page, inside square brackets.
+
+<span class="popup">
+<span class="paren">[</span><span class="balloon"></span><span class="paren">]</span>
+</span></p>
+
+ </div>
+
+ <hr />
+
+
+
+
+
+ </div>
+
+ <div id="footer" class="pagefooter">
+
+ <div id="pageinfo">
+
+
+
+
+
+
+
+
+
+ <!--<div class="pagedate">
+ Last edited <span class="date">Qua 05 Mai 2010 23:47:37 BRT</span>
+ </div> -->
+
+ </div>
+
+
+ <!-- from Arquivo Público de Memória Coletiva -->
+ </div>
+
+ </div>
+
+ <div class="span4">
+
+
+
+ </div>
+
+ </div>
+</div>
+
+</body>
+</html>