211 lines
9.9 KiB
HTML
211 lines
9.9 KiB
HTML
|
<!DOCTYPE html>
|
||
|
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
|
||
|
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||
|
|
||
|
<meta name='robots' content='max-image-preview:large' />
|
||
|
|
||
|
<!-- Facebook Meta Tags -->
|
||
|
<meta property="og:url" content="https://cdpq-palestine.info/">
|
||
|
<meta property="og:type" content="website">
|
||
|
<meta property="og:title" content="templates">
|
||
|
<meta property="og:description" content="GRIP-UQAM">
|
||
|
<meta property="og:image" content="/og-image.png">
|
||
|
|
||
|
<!-- Twitter Meta Tags -->
|
||
|
<meta name="twitter:card" content="summary_large_image">
|
||
|
<meta property="twitter:domain" content="cdpq-palestine.info">
|
||
|
<meta property="twitter:url" content="https://cdpq-palestine.info/">
|
||
|
<meta name="twitter:title" content="templates">
|
||
|
<meta name="twitter:description" content="GRIP-UQAM">
|
||
|
<meta name="twitter:image" content="/og-image.png">
|
||
|
|
||
|
<meta name="robots" content="noindex, follow" />
|
||
|
|
||
|
<title>templates - GRIP-UQAM</title>
|
||
|
|
||
|
<link rel="icon" type="image/png" href="../favicon-96x96.png" sizes="96x96" />
|
||
|
<link rel="icon" type="image/svg+xml" href="../favicon.svg" />
|
||
|
<link rel="shortcut icon" href="../favicon.ico" />
|
||
|
<link rel="apple-touch-icon" sizes="180x180" href="../apple-touch-icon.png" />
|
||
|
<meta name="apple-mobile-web-app-title" content="GRIP-UQAM" />
|
||
|
<link rel="manifest" href="../site.webmanifest" />
|
||
|
|
||
|
<!-- Bootstrap core CSS -->
|
||
|
<!-- those checksums can be verified with: shasum -b -a 384 $file | xxd -r -p |
|
||
|
base64 -->
|
||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
||
|
|
||
|
<!-- Custom styles for derivatives -->
|
||
|
|
||
|
<link rel="stylesheet" href="../css/local.css" type="text/css" />
|
||
|
|
||
|
|
||
|
<!-- opendyslexic font -->
|
||
|
<link href="../css/opendyslexic.css" rel="stylesheet" />
|
||
|
</head>
|
||
|
<body class="d-flex flex-column h-100">
|
||
|
<header>
|
||
|
<nav class="navbar navbar-expand-md navbar-light bg-danger text-white border" data-bs-theme="dark">
|
||
|
<div class="container-lg">
|
||
|
<a class="navbar-brand me-auto" href="../">
|
||
|
<img alt="GRIP-UQAM" src="../favicon-96x96.png" width="96" height="96" />
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
<button class="navbar-toggler collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbarScroll" aria-expanded="false" aria-label="Toggle navigation">
|
||
|
<span class="navbar-toggler-icon"></span>
|
||
|
</button>
|
||
|
|
||
|
<div id="navbar" class="collapse navbar-collapse">
|
||
|
<!-- the anchors force ikiwiki to use a tags instead of spans. hopefully. -->
|
||
|
<ul class="navbar-nav nav-link align-items-center ms-auto">
|
||
|
<li><a href="../">Accueil</a></li>
|
||
|
</ul>
|
||
|
|
||
|
<ul class="nav navbar-nav">
|
||
|
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</nav>
|
||
|
</header>
|
||
|
|
||
|
<main class="flex-shrink-0 bg-secondary">
|
||
|
<div id="content">
|
||
|
<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><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="./note/">note</a>
|
||
|
|
||
|
</p>
|
||
|
<p>
|
||
|
|
||
|
<a href="./popup/">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> <!-- /container -->
|
||
|
</main>
|
||
|
|
||
|
<footer class="footer mt-auto py-2 bg-primary bg-opacity-25" role="contentinfo">
|
||
|
<div class="container-lg h-100">
|
||
|
<div class="text-center">
|
||
|
<h2>Liens intéressants</h2>
|
||
|
<ul>
|
||
|
<li><a href=https://www.facebook.com/GRIPUQAM" target="_blank">Page Facebook du GRIP-UQÀM</a></li>
|
||
|
<li><a href="https://www.facebook.com/groups/gripuqam" target="_blank">Groupe Facebook du GRIP-UQÀM</a></li>
|
||
|
<li><a href="https://assoarmu.wordpress.com/a-propos/" target="_blank">Association pour la Réappropriation des Milieux Urbains</a></li>
|
||
|
<li><a href="https://bibliothequedira.wordpress.com/" target="_blank">Bibliothèque DIRA</a></li>
|
||
|
<li><a href="https://www.resistancemontreal.org/calendrier" target="_blank">Calendrier Résistance Montréal</a></li>
|
||
|
<li><a href="https://www.clac-montreal.net/" target="_blank">Convergence des luttes anticapitalistes Montréal</a></li>
|
||
|
<li><a href="https://www.qpirgconcordia.org/" target="_blank">QPIRG Concordia GRIP</a></li>
|
||
|
<li><a href="https://qpirgmcgill.org/" target="_blank">QPIRG | GRIP McGill</a></li>
|
||
|
<li><a href="https://rqge.qc.ca/" target="_blank">Réseau Québecois des Groupes Écologistes</a></li>
|
||
|
<li><a href="https://www.pourlatransitionenergetique.org/" target="_blank">Front commun pour la transition énergétique</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</footer>
|
||
|
|
||
|
<!-- Bootstrap core JavaScript
|
||
|
================================================== -->
|
||
|
<!-- Placed at the end of the document so the pages load faster -->
|
||
|
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>
|
||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" integrity="sha384-0pUGZvbkm6XF6gxjEnlmuGrJXVbNuzT9qBBavbLwCsOGabYfZo0T0to5eqruptLy" crossorigin="anonymous"></script>
|
||
|
</body>
|
||
|
</html>
|