10 prototype
= "@Lua_Config"
17 html_page
= [=[ <div class="title">$if_title_icon[[
18 <img src="$title_icon" class="title_icon" alt="type icon ($title_icon)"/>]]
19 <a name="title" title="_(CURRENT_PAGE)" $show_link >$title</a> $if_old_version[[<span class="from_version">($version)</span>]]
21 <div id="breadcrumbs">
24 <li class="first"><a $link>$title</a></li>]],[[
25 <li class="follow"><a $link>â–¹ $title</a></li>]]
27 <span class="toolbar">
35 $do_messages[[<p class="$class">$message</p>]]
44 html_meta_keywords
= ""
45 html_meta_description
= ""
46 redirect_destination
= ""
47 xssfilter_allowed_tags
= ""
48 http_cache_control
= ""
50 content
= [====[--- this is the template that generates the outer tags of the page ---
52 TRANSLATIONS = "Translations:Main"
54 --------------------------------------------------------------------------------
55 ------- BASIC TEMPLATES --------------------------------------------------------
56 --------------------------------------------------------------------------------
58 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
59 <HTML><HEAD><TITLE>lua-users wiki: $title</TITLE>
60 <LINK TYPE="text/css" REL="stylesheet" HREF="http://lua-users.org/styles/main.css">
61 <STYLE TYPE="text/css" REL="stylesheet">
62 input.hidden, div.honey {
68 div.advanced_field input, div.advanced_field textarea {
74 div#toggle_advanced_fields {
80 <BODY ><table width="100%" border="0"> <tr><td align=left width="100%"><h1><a href="]===]..NICE_URL..[===[_search&q=$title&Search=Search" title="List pages referring to $title">$title</a></h1></td><td align=right>
81 <table cellpadding="0" cellspacing="0" border="0" width="1%">
85 <img src="http://lua-users.org/images/nav-logo.png" alt="lua-users home" width="177" height="40" border="0"></a></td>
90 <table cellpadding="0" cellspacing="0" border="0" width="100%">
93 <td><img src="http://lua-users.org/images/nav-elbow.png" alt="" width="48" height="40"></td>
94 <td nowrap valign="middle" width="100%">
95 <a href="$nice_url" class="nav">wiki</a></td>
109 <a href="$nice_url/FindPage" >FindPage</a> · <a href="$nice_url/RecentChanges">RecentChanges</a>
110 <a $edit_link>edit</a> · <a $history_link>history</a> ·
111 $if_logged_in[[ logged as $user (<a $logout_link>logout</a>)]]
112 $if_not_logged_in[[<a $login_link>login</a>]]
121 LOGGED_OUT = [===[_(YOU_ARE_NOW_LOGGED_OUT)]===]
125 --------------------------------------------------------------------------------
126 ------- HISTORY, ETC -----------------------------------------------------------
127 --------------------------------------------------------------------------------
129 DATE_SELECTOR = [===[
130 <div id="date_selector" style="border:1px solid #bbb; background: #eee8aa; padding: 5 5 5 5">
131 _(CHANGES_BY_DATE) ($current_month):
132 <span class="history_dates">
133 $do_dates[=[$if_current_date[[$date]]|[[<a $date_link>$date</a>]]
137 _(CHOOSE_ANOTHER_MONTH) ($current_year) :
138 <span class="history_months">
139 $do_months[=[$if_current_month[[$month]]$if_other_month[[<a $month_link>$month</a>]]
143 </div> <!-- end of "date_selector" div-->
148 <form action="$base_url">
149 <input type="hidden" class="hidden" name="p" value="$node_name.diff"/>
150 <input type="submit" value="_(DIFF_SELECTED_VERSIONS)"/>
156 <tr><td style="border-right: 0; border-left: 0" colspan="3"><h2>$date</h2></td></tr>
159 <td width="5px" $if_minor[[bgcolor="#f0f0f0"]]>
160 <input class="diff_radio" type="radio" value="$version" name="other"/>
162 <td width="5px" $if_minor[[bgcolor="#f0f0f0"]]>
163 <input class="diff_radio" type="radio" value="$version" name="version"/>
165 <td width="400px" $if_minor[[bgcolor="#f0f0f0"]]>
166 _(AUTHOR_SAVED_VERSION) $if_summary[[<ul><li>$summary</li></ul>]]
177 COMPLETE_HISTORY = [===[
182 <tr><td style="border-right: 0; border-left: 0" colspan="3"><h2>$date</h2></td></tr>
186 <td width="50px" $if_stale[[style="display:none"]] rowspan="$row_span">
187 <a $latest_link>$title</a>
189 <td width="300px" $if_minor[[bgcolor="#f0f0f0"]] style="border-right: 0px">
190 _(AUTHOR_SAVED_VERSION)
191 $if_summary[[<p>$summary</p>]]
193 <td width="10%" $if_minor[[bgcolor="#f0f0f0"]] style="border-left: 0px" align="right">
194 <a $diff_link title="_(DIFF)"><img alt="_(DIFF)" src="$diff_icon"/></a>
195 <a $history_link title="_(HISTORY)"><img alt="_(HISTORY)" src="$history_icon"/></a>
206 <li><a $link1><ins class='diffmod'>$version1</ins></a> _(BY_AUTHOR1)</li>
207 $if_version2_exists[[<li><a $link2><del class='diffmod'>$version2</del></a> _(BY_AUTHOR2)</li>]]
212 RSS = [===[<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
214 <title>$title</title>
216 <link>$channel_url</link>
220 <title>$title</title>
221 <guid isPermaLink="$ispermalink">$guid</guid>
222 <pubDate>$pub_date</pubDate>
223 <dc:creator>$author</dc:creator>
224 <description>$summary</description>
231 $if_summary_exists[[$summary]]
232 $if_no_summary[[_(NO_EDIT_SUMMARY)]]
234 <a href="$history_url">_(HISTORY)</a>
235 <a href="$diff_url">_(SHOW_CHANGES_SINCE_PREVIOUS)</a>]===]
237 LIST_OF_ALL_PAGES = [===[
238 $do_nodes[[<a href="$url">$name</a><br/>]]
242 SITEMAP_XML = [===[<?xml version="1.0" encoding="UTF-8"?>
243 <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
244 xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
245 xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
248 <lastmod>$lastmod</lastmod>
249 <changefreq>$changefreq</changefreq>
250 <priority>$priority</priority>
255 --------------------------------------------------------------------------------
256 ------- MISCELLANEOUS ----------------------------------------------------------
257 --------------------------------------------------------------------------------
261 <form class="edit" method="post" enctype="multipart/form-data" action="$action_url">
263 <input class="hidden" type="hidden" name="p" value="$node_name.post"/>
264 <input class="hidden" type="hidden" name="post_token" value="$post_token"/>
265 <input class="hidden" type="hidden" name="post_timestamp" value="$post_timestamp"/>
266 <input class="hidden" type="hidden" name="post_fields" value="$post_fields"/>
268 <h2>_(PREVIEWING_UNSAVED_CHANGES)</h2>
269 <div class="preview">$preview</div>
270 <a href="#new_page_content_header" class="button">_(CHANGE)</a>
272 <button class="positive" type="submit" name="action_save" accesskey="s">_(SAVE)</button>
273 <button class="negative" type="submit" name="action_show" accesskey="c">_(CANCEL)</button>
278 <button class="positive" type="submit" accesskey="s" name="action_save">_(SAVE)</button>
279 <button class="positive" type="submit" accesskey="s" name="action_preview">_(PREVIEW)</button>
280 <button class="negative" type="submit" accesskey="s" name="action_cancel">_(CANCEL)</button>
285 EDIT_FORM_HEADER = [[<a name="$anchor"></a><h2>$label</h2>]]
286 EDIT_FORM_NOTE = [[<h3>$label</h3>]]
287 EDIT_FORM_LABEL = [[<label>$label</label>]]
288 EDIT_FORM_INLINE_LABEL = [[<label class="inline">$label</label>]]
289 EDIT_FORM_FILE = [[<input type="file" value="$value" name="$name"/>]]
290 EDIT_FORM_HONEYPOT = [[<input type="text" value="$value" name="$name"/>]]
291 EDIT_FORM_TEXT_FIELD = [[<input type="text" value="$value" name="$name" class="textfield"/>]]
292 EDIT_FORM_HIDDEN = [[<input type="hidden" class="hidden" value="$value" name="$name"/>]]
293 EDIT_FORM_READONLY_TEXT = [[<input type="text" value="$value" name="$name" class="readonly textfield" readonly="readonly" />]]
294 EDIT_FORM_PASSWORD = [[<input type="password" value="$value" name="$name" size="20" class="textfield"></input>]]
295 EDIT_FORM_TEXTAREA = [[<textarea class="$class" name="$name" cols="80" rows="$rows">$value</textarea>]]
296 EDIT_FORM_EDITOR = [[<textarea class="$class" name="$name" cols="80" rows="$rows">$value</textarea>]]
297 EDIT_FORM_BIG_TEXTAREA = [[<textarea class="$class" name="$name" id="main_text_area" cols="80" rows="$rows">$value</textarea><br/>
298 <a href="#" onclick="expandTextArea(); return false;">expand</a>]]
299 EDIT_FORM_CHECKBOX = [[<input class="checkbox" style="border:1px solid black"
300 type="checkbox" name="$name" value="yes"
301 $if_checked[=[checked="checked"]=] /><br/>]]
302 EDIT_FORM_CHECKBOX_TEXT = [[<input class="checkbox" style="border:1px solid black"
303 type="checkbox" name="$name" value="yes"
304 $if_checked[=[checked="checked"]=] />$text<br/>]]
305 EDIT_FORM_SELECT = [[<select name="$name" tabindex="$tab_index">
306 $do_options[===[<option value="$value" $if_selected[=[selected="yes"]=]>$display</option>]===]
308 EDIT_FORM_SHOW_ADVANCED = [[<a id="more_fields" href="#" class="local" onclick="toggleElements('advanced_field')">
309 <div id="toggle_advanced_fields">_(SHOW_ADVANCED_OPTIONS)</div></a>]]
310 EDIT_FORM_DIV_START = [=[$do_collapse[[<h2 id="trigger_$id" class="ctrigger $state">$label</h2>]]<div id="$id" class="$class">]=]
311 EDIT_FORM_DIV_END = [[</div>]]
315 <form method="post" action="$action_url">
316 <input class="hidden" type="hidden" name="post_token" value="$post_token"/>
317 <input class="hidden" type="hidden" name="post_timestamp" value="$post_timestamp"/>
318 <input class="hidden" type="hidden" name="post_fields" value="$post_fields"/>
320 <button class="submit" type="submit" accesskey="c" name="action_login">_(LOGIN)</button>
324 --------------------------------------------------------------------------------
325 ------- DEALING WITH LUA CODE --------------------------------------------------
326 --------------------------------------------------------------------------------
329 $if_ok[[<font color="green">_(THIS_LUA_CODE_PARSES_CORRECTLY)</font>]]
332 <p><b>_(THIS_LUA_CODE_HAS_PROBLEMS)</b></p>
333 <code> $errors </code>
341 border-collapse: collapse
348 table.code tbody th {
351 table.code tbody th a{
352 text-decoration: none;
355 table.code th.lineno {
361 table.code tbody td {
364 table.code tbody td code {
367 table.code tbody td code.bad{
375 <th id="L$i" class="$class"><a href="#L$i">$i</a></th>
376 <td><code class="$class">$line</code></td>
384 ACTION_NOT_FOUND = [===[
385 <div class="error_message">
386 <p>_(PAGE_DOES_NOT_SUPPORT_ACTION)</p>
388 <p>_(THIS_PAGE_DEFINED_THE_FOLLOWING_ACTIONS)</p>
389 <pre><code>$actions</code></pre>
395 <h3>Create new account</h3>
396 <form class="register" method="post" enctype="multipart/form-data" action="$action_url">
397 <input class="hidden" type="hidden" name="p" value="$node_name.$action"/>
398 <input class="hidden" type="hidden" name="post_token" value="$post_token"/>
399 <input class="hidden" type="hidden" name="post_timestamp" value="$post_timestamp"/>
400 <input class="hidden" type="hidden" name="post_fields" value="$post_fields"/>
404 <button class="submit positive" type="submit" accesskey="s" name="action_submit">Register</button>
410 <h2>Installer Version</h2>
414 <h2>Specific Rocks</h2>