/usr/share/doc/libcwidget-dev/html/templates.html is in libcwidget-doc 0.5.17-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>templates</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="style.css" type="text/css" />
<link rel="stylesheet" href="local.css" type="text/css" />
<meta name="robots" content="noindex, follow" />
</head>
<body>
<div class="page">
<div class="pageheader">
<div class="header">
<span>
<span class="parentlinks">
<a href="./index.html">cwidget</a>/
</span>
<span class="title">
templates
</span>
</span>
</div>
</div>
<div class="sidebar">
<ul>
<li><a href="./index.html">cwidget</a></li>
<li><a href="./index.html#introduction">introduction</a></li>
<li><a href="./documentation.html">documentation</a>
<ul>
<li><a href="./documentation/downloading.html">getting</a></li>
<li><a href="./documentation/installing.html">installing</a></li>
<li><a href="./documentation/using.html">using</a></li>
<li><a href="./documentation/contributing.html">contributing</a></li>
</ul>
</li>
<li><a href="./index.html#features">features</a></li>
<li><a href="./index.html#status">status</a></li>
<li><a href="./index.html#contact">contact</a></li>
</ul>
</div>
<div id="pagebody">
<div id="content" role="main">
<p><a href="./ikiwiki.html">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><TMPL_VAR variable></code>.</li>
<li>To make a block of text conditional on a variable being set use
<code><TMPL_IF variable>text</TMPL_IF></code>.</li>
<li>To use one block of text if a variable is set and a second if it's not,
use <code><TMPL_IF variable>text<TMPL_ELSE>other text</TMPL_IF></code></li>
</ul>
<h2>template pages</h2>
<p>Template pages are regular wiki pages containing a
<a href="http://ikiwiki.info/ikiwiki/directive/templatebody/">templatebody directive</a>,
used as templates for other pages. The parts of the template
page outside the directive can be used to document it.</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="./templates/note.html">note</a>
</p>
<p>
<a href="./templates/popup.html">popup</a>
</p>
<p>If the template does not contain a <code>templatebody</code> directive, the entire
source of the page is used for the template. This is deprecated.</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>emailauth.tmpl</code>, <code>login-selector.tmpl</code>,
<code>revert.tmpl</code> - Parts of ikiwiki's user interface; do not normally need
to be customised.</li>
</ul>
</div>
</div>
<div id="footer" class="pagefooter" role="contentinfo">
<div id="pageinfo">
<div id="backlinks">
Links:
<a href="./ikiwiki.html">ikiwiki</a>
<a href="./ikiwiki/formatting.html">ikiwiki/formatting</a>
</div>
<div class="pagedate">
Last edited <span class="date">Sun Oct 1 15:32:01 2017</span>
<!-- Created <span class="date">Sun Oct 1 15:32:01 2017</span> -->
</div>
</div>
<!-- from cwidget -->
</div>
</div>
</body>
</html>
|