Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > d8544620e4ac7bee48ddb48c85d55709 > files > 544

ikiwiki-3.20190228-1.mga7.noarch.rpm

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Right-to-left &#40;RTL&#41; page text</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" />










</head>
<body>

<div class="page">

<div class="pageheader">
<div class="header">
<span>
<span class="parentlinks">

<a href="../index.html">ikiwiki</a>/ 

<a href="../tips.html">tips</a>/ 

</span>
<span class="title">
Right-to-left &#40;RTL&#41; page text

</span>
</span>



</div>









</div>





<div id="pagebody">

<div id="content" role="main">
<p>Here's a simple way to create pages in which the page body (or a part of it) goes right-to-left.
This includes things you insert into the page, such as polls and blockquotes and
lists and a progress bar and so on. Some things don't work perfectly, but if
you want to have some RTL pages in your wiki, this will probably do.</p>

<p>It does not modify the things around the body, such as the page header and the
footer. Only what is rendered from the mdwn file is affected.</p>

<h1>1 Add an RTL Template</h1>

<p>Create a new template page <em>templates/rtl.mdwn</em> with the following content:</p>

<pre><code>&lt;div dir="rtl"&gt;
&lt;TMPL_VAR text&gt;
&lt;/div&gt;
&lt;TMPL_UNLESS text&gt;
Use this template to insert RTL text into a page. 
This template has one parameter:
&lt;ul&gt;
&lt;li&gt;`text` - the text to display in RTL
&lt;/ul&gt;
&lt;/TMPL_UNLESS&gt;
</code></pre>

<h1>2 Use the Template</h1>

<p>To make a page or part of it RTL, use the <a href="../ikiwiki/directive/template.html">template</a> directive:</p>

<pre><code>[[!template  id="rtl" text="""

This text will be aligned to the right. You can write here in Hebrew, Arabic, etc. You can
put here anything you want to put on the page. As said above, some elements may not
align perfectly, but:

1. It can be solved per case
2. It's not critical, everything works quite well and is readable. If you have any comments,
    suggestions, improvements, bugs, etc - please share here :-)

"""]]
</code></pre>

</div>







</div>

<div id="footer" class="pagefooter" role="contentinfo">

<div id="pageinfo">











<div class="pagedate">
Last edited <span class="date">Tue Feb 26 23:01:54 2019</span>
<!-- Created <span class="date">Fri Jul 11 12:25:31 2014</span> -->
</div>

</div>


<!-- from ikiwiki -->
</div>

</div>

</body>
</html>