| 1 |
TRANSLATIONS = "Translations:Main" |
| 2 |
|
| 3 |
MAIN = [===[ |
| 4 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 5 |
<HTML><HEAD><TITLE>lua-users wiki: $title</TITLE> |
| 6 |
<LINK TYPE="text/css" REL="stylesheet" HREF="http://lua-users.org/styles/main.css"> |
| 7 |
<STYLE TYPE="text/css" REL="stylesheet"> |
| 8 |
input.hidden, div.honey { |
| 9 |
display: none; |
| 10 |
} |
| 11 |
div.advanced_field { |
| 12 |
display: none; |
| 13 |
} |
| 14 |
div.advanced_field input, div.advanced_field textarea { |
| 15 |
display: block; |
| 16 |
} |
| 17 |
div.advanced_field { |
| 18 |
margin-top: .5em; |
| 19 |
} |
| 20 |
div#toggle_advanced_fields { |
| 21 |
display: inline; |
| 22 |
font-size: smaller; |
| 23 |
} |
| 24 |
</STYLE> |
| 25 |
</HEAD> |
| 26 |
<BODY ><table width="100%" border="0"> <tr><td align=left width="100%"><h1><a href="/wiki/_search&q=$title&Search=Search" title="List pages referring to $title">$title</a></h1></td><td align=right> |
| 27 |
<table cellpadding="0" cellspacing="0" border="0" width="1%"> |
| 28 |
<tbody> |
| 29 |
<tr> |
| 30 |
<td><a href="/"> |
| 31 |
<img src="http://lua-users.org/images/nav-logo.png" alt="lua-users home" width="177" height="40" border="0"></a></td> |
| 32 |
|
| 33 |
</tr> |
| 34 |
<tr> |
| 35 |
<td> |
| 36 |
<table cellpadding="0" cellspacing="0" border="0" width="100%"> |
| 37 |
<tbody> |
| 38 |
<tr> |
| 39 |
<td><img src="http://lua-users.org/images/nav-elbow.png" alt="" width="48" height="40"></td> |
| 40 |
<td nowrap valign="middle" width="100%"> |
| 41 |
<a href="/wiki/" class="nav">wiki</a></td> |
| 42 |
|
| 43 |
</tr> |
| 44 |
</tbody> |
| 45 |
</table> |
| 46 |
</td> |
| 47 |
</tr> |
| 48 |
</tbody> |
| 49 |
</table> |
| 50 |
</td></tr> </table> |
| 51 |
|
| 52 |
$content |
| 53 |
|
| 54 |
<hr> |
| 55 |
<a href="/wiki/FindPage" >FindPage</a> · <a href="/wiki/RecentChanges" >RecentChanges</a> · <a href="/cgi-bin/wiki.pl?action=editprefs" >preferences</a><br> |
| 56 |
<a $edit_link>edit</a> · <a $history_link>history</a> · |
| 57 |
$if_logged_in[[ logged as $user (<a $logout_link>logout</a>)]] |
| 58 |
$if_not_logged_in[[<a $login_link>login</a>]] |
| 59 |
|
| 60 |
</body> |
| 61 |
</html> |
| 62 |
]===] |
| 63 |
|
| 64 |
LOGGED_OUT = [===[_(YOU_ARE_NOW_LOGGED_OUT)]===] |
| 65 |
|
| 66 |
-------------------------------------------------------------------------------- |
| 67 |
------- HISTORY, ETC ----------------------------------------------------------- |
| 68 |
-------------------------------------------------------------------------------- |
| 69 |
|
| 70 |
DATE_SELECTOR = [===[ |
| 71 |
<div id="date_selector" style="border:1px solid #bbb; background: #eee8aa; padding: 5 5 5 5"> |
| 72 |
_(CHANGES_BY_DATE) ($current_month): |
| 73 |
<span class="history_dates"> |
| 74 |
$do_dates[=[$if_current_date[[$date]]|[[<a $date_link>$date</a>]] |
| 75 |
]=] |
| 76 |
</span> |
| 77 |
<br/> |
| 78 |
_(CHOOSE_ANOTHER_MONTH) ($current_year) : |
| 79 |
<span class="history_months"> |
| 80 |
$do_months[=[$if_current_month[[$month]]$if_other_month[[<a $month_link>$month</a>]] |
| 81 |
]=] |
| 82 |
</span> |
| 83 |
<br/> |
| 84 |
</div> <!-- end of "date_selector" div--> |
| 85 |
<br/> |
| 86 |
]===] |
| 87 |
|
| 88 |
HISTORY = [===[ |
| 89 |
<br> |
| 90 |
<form action="$base_url"> |
| 91 |
<input type="hidden" class="hidden" name="p" value="$node_name.diff"/> |
| 92 |
<input type="submit" value="_(DIFF_SELECTED_VERSIONS)"/> |
| 93 |
<br> |
| 94 |
<br> |
| 95 |
$do_revisions[==[ |
| 96 |
Revision $version: <a $version_link>View</a> |
| 97 |
<input class="diff_radio" type="radio" value="$version" name="other"/> |
| 98 |
<input class="diff_radio" type="radio" value="$version" name="version"/> |
| 99 |
. .$if_minor[[<i>(minor edit)</i>]] by <a $author_link>$author</a>$if_summary[[ <b>[$summary]</b>]]<br> |
| 100 |
]==] |
| 101 |
</form> |
| 102 |
]===] |
| 103 |
|
| 104 |
COMPLETE_HISTORY = [===[ |
| 105 |
$do_revisions[==[ |
| 106 |
Revision $version: <a $version_link>View</a> <a $diff_link>Diff</a> . .$if_minor[[<i>(minor edit)</i>]] by <a $author_link>$author</a>$if_summary[[ <b>[$summary]</b>]]</a> in <a $latest_link>$title</a><br> |
| 107 |
]==] |
| 108 |
]===] |
| 109 |
|
| 110 |
DIFF = [===[ |
| 111 |
<ul> |
| 112 |
<li><a $link1><ins class='diffmod'>$version1</ins></a> by $author1</li> |
| 113 |
<li><a $link2><del class='diffmod'>$version2</del></a> by $author2</li> |
| 114 |
</ul> |
| 115 |
$diff |
| 116 |
]===] |
| 117 |
|
| 118 |
RSS = [===[<rss version="2.0"> |
| 119 |
<channel> |
| 120 |
<title>$title</title> |
| 121 |
<description/> |
| 122 |
<link>$baseurl</link> |
| 123 |
$items[[ |
| 124 |
<item> |
| 125 |
<link>$link</link> |
| 126 |
<title>$title</title> |
| 127 |
<guid isPermalink="$ispermalink">$guid</guid> |
| 128 |
<description>$summary</description> |
| 129 |
</item>]] |
| 130 |
</channel> |
| 131 |
</rss> |
| 132 |
]===] |
| 133 |
|
| 134 |
LIST_OF_ALL_PAGES = [===[ |
| 135 |
<H2>Regular Nodes</H2> |
| 136 |
$do_regular_nodes[[<a href="$url">$name</a><br/>]] |
| 137 |
|
| 138 |
<H2>Special Nodes</H2> |
| 139 |
$do_special_nodes[[<a href="$url">$name</a><br/>]] |
| 140 |
]===] |
| 141 |
|
| 142 |
|
| 143 |
SITEMAP_XML = [===[<?xml version="1.0" encoding="UTF-8"?> |
| 144 |
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 145 |
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" |
| 146 |
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> |
| 147 |
$do_urls[[<url> |
| 148 |
<loc>$url</loc> |
| 149 |
<lastmod>$lastmod</lastmod> |
| 150 |
<changefreq>$changefreq</changefreq> |
| 151 |
<priority>$priority</priority> |
| 152 |
</url>]] |
| 153 |
</urlset> |
| 154 |
]===] |
| 155 |
|
| 156 |
-------------------------------------------------------------------------------- |
| 157 |
------- MISCELLANEOUS ---------------------------------------------------------- |
| 158 |
-------------------------------------------------------------------------------- |
| 159 |
|
| 160 |
EDIT = [===[ |
| 161 |
$if_try_again[[ |
| 162 |
<br/><font color='red'><b>$alert</b></font><br/><br/> |
| 163 |
]] |
| 164 |
|
| 165 |
<form method="post" action="$action_url"> |
| 166 |
<script type="text/javascript"> |
| 167 |
function toggleElements(class_name) { |
| 168 |
var re = new RegExp('\\b' + "advanced_field" + '\\b'); |
| 169 |
var els = document.getElementsByTagName("div"); |
| 170 |
for(var i=0,j=els.length; i<j; i++) { |
| 171 |
var elem = els[i]; |
| 172 |
if(re.test(elem.className)) { |
| 173 |
if (elem.style.display=="block") { |
| 174 |
elem.style.display = "none"; |
| 175 |
document.getElementById("toggle_advanced_fields").innerHTML="_(SHOW_ADVANCED_OPTIONS)" |
| 176 |
} else { |
| 177 |
elem.style.display = "block"; |
| 178 |
document.getElementById("toggle_advanced_fields").innerHTML="_(HIDE_ADVANCED_OPTIONS)" |
| 179 |
} |
| 180 |
} |
| 181 |
} |
| 182 |
} |
| 183 |
function expandTextArea() { |
| 184 |
var elem = document.getElementById("main_text_area"); |
| 185 |
elem.style.width="915px"; |
| 186 |
elem.style.height="800px"; |
| 187 |
elem.style.margin="10px 10px 10px -205px"; |
| 188 |
} |
| 189 |
</script> |
| 190 |
<input class="hidden" type="hidden" name="p" value="$node_name.post"/> |
| 191 |
<input class="hidden" type="hidden" name="post_token" value="$post_token"/> |
| 192 |
<input class="hidden" type="hidden" name="post_timestamp" value="$post_timestamp"/> |
| 193 |
<input class="hidden" type="hidden" name="post_fields" value="$post_fields"/> |
| 194 |
|
| 195 |
$html_for_fields |
| 196 |
|
| 197 |
<p style='font-size:80%'> |
| 198 |
ATTENTION if your purpose is SEO / search engine optimization / pageranking: |
| 199 |
</p> |
| 200 |
<ul style='font-size:80%;margin-bottom:0em'> |
| 201 |
<li style='margin-top:0em'> any sites you link to will be added to a blacklist used by a network of wiki's |
| 202 |
<li> inappropriate links will be promptly removed |
| 203 |
<li> this wiki's page history and diffs are not crawled by search engines |
| 204 |
</ul> |
| 205 |
<br> |
| 206 |
|
| 207 |
<input class="submit" type="submit" accesskey="p" name="action_preview" value="_(PREVIEW)"/> |
| 208 |
<input class="submit" type="submit" accesskey="s" name="action_save" value="_(SAVE)"/> |
| 209 |
<input class="submit" type="submit" accesskey="c" name="action_show" value="_(CANCEL)"/> |
| 210 |
<div><input type="hidden" name=".cgifields" value="recent_edit" /></div></form> |
| 211 |
]===] |
| 212 |
|
| 213 |
EDIT_FORM_HEADER = [[<a name="$anchor"></a><h2>$label</h2>]] |
| 214 |
EDIT_FORM_NOTE = [[<h3>$label</h3>]] |
| 215 |
EDIT_FORM_LABEL = [[<label>$label</label> ]] |
| 216 |
EDIT_FORM_HONEYPOT = [[<input type="text" value="$value" name="$name"/>]] |
| 217 |
EDIT_FORM_TEXT_FIELD = [[<input type="text" value="$value" name="$name" size="60" maxlength="200" />]] |
| 218 |
EDIT_FORM_READONLY_TEXT = [[<input type="text" value="$value" name="$name" class="readonly" readonly="readonly" />]] |
| 219 |
EDIT_FORM_PASSWORD = [[<input type="password" value="$value" name="$name" size="20"></input>]] |
| 220 |
EDIT_FORM_TEXTAREA = [[<textarea class="small" name="$name" rows="$rows" cols="65" wrap="virtual" style="width:100%">$value</textarea>]] |
| 221 |
EDIT_FORM_BIG_TEXTAREA = [[<textarea name="$name" rows="20" cols="65" wrap="virtual" style="width:100%">$value</textarea><p>]] |
| 222 |
EDIT_FORM_CHECKBOX = [[<label><input type="checkbox" name="$name" value="yes" $if_checked[=[checked="checked"]=] />$label</label><br/>]] |
| 223 |
EDIT_FORM_SELECT = [[<select name="$name">$do_options[=[<option $if_selected[==[selected="yes"]==]>$option</option>]=]</select>]] |
| 224 |
EDIT_FORM_SHOW_ADVANCED = [[<a id="more_fields" href="#" class="local" onclick="toggleElements('advanced_field')"><div id="toggle_advanced_fields">_(SHOW_ADVANCED_OPTIONS)</div></a>]] |
| 225 |
|
| 226 |
LOGIN_FORM = [===[ |
| 227 |
$if_try_again[[ |
| 228 |
<br/><font color='red'><b>$alert</b></font><br/><br/> |
| 229 |
]] |
| 230 |
<form method="post" action="$action_url"> |
| 231 |
<input class="hidden" type="hidden" name="p" value="$node_name.post"/> |
| 232 |
<input class="hidden" type="hidden" name="post_token" value="$post_token"/> |
| 233 |
<input class="hidden" type="hidden" name="post_timestamp" value="$post_timestamp"/> |
| 234 |
<input class="hidden" type="hidden" name="post_fields" value="$post_fields"/> |
| 235 |
$html_for_fields |
| 236 |
<input class="submit" type="submit" accesskey="c" name="action_show_login_form" value="_(LOGIN)"/> |
| 237 |
</form> |
| 238 |
]===] |
| 239 |
-------------------------------------------------------------------------------- |
| 240 |
------- DEALING WITH LUA CODE -------------------------------------------------- |
| 241 |
-------------------------------------------------------------------------------- |
| 242 |
|
| 243 |
LUA_CODE = [===[ |
| 244 |
$if_ok[[<font color="green">_(THIS_LUA_CODE_PARSES_CORRECTLY)</font>]] |
| 245 |
$if_errors[[ |
| 246 |
<font color='red'> |
| 247 |
<p><b>_(THIS_LUA_CODE_HAS_PROBLEMS)</b></p> |
| 248 |
<code> $errors </code> |
| 249 |
</font>]] |
| 250 |
|
| 251 |
<div width="100%"> |
| 252 |
<style> |
| 253 |
table.code { |
| 254 |
width: 100%; |
| 255 |
border-collapse: collapse |
| 256 |
background: red; |
| 257 |
border-style: none; |
| 258 |
} |
| 259 |
table.body { |
| 260 |
background: yellow; |
| 261 |
} |
| 262 |
table.code tbody th { |
| 263 |
font-size: 90%; |
| 264 |
} |
| 265 |
table.code tbody th a{ |
| 266 |
text-decoration: none; |
| 267 |
color: white; |
| 268 |
} |
| 269 |
table.code th.lineno { |
| 270 |
width: 4em; |
| 271 |
} |
| 272 |
table.code th.bad { |
| 273 |
background: red; |
| 274 |
} |
| 275 |
table.code tbody td { |
| 276 |
//font: normal 120% monospace; |
| 277 |
border: none; |
| 278 |
//color: black; |
| 279 |
} |
| 280 |
table.code tbody td code { |
| 281 |
background: white; |
| 282 |
} |
| 283 |
table.code tbody td code.bad{ |
| 284 |
background: yellow; |
| 285 |
} |
| 286 |
</style> |
| 287 |
<table class="code"> |
| 288 |
<tbody> |
| 289 |
$do_lines[[ |
| 290 |
<tr> |
| 291 |
<th id="L$i" class="$class"><a href="#L$i">$i</a></th> |
| 292 |
<td><code class="$class">$line</code></td> |
| 293 |
</tr> |
| 294 |
]] |
| 295 |
</tbody> |
| 296 |
</table> |
| 297 |
</div> |
| 298 |
]===] |
| 299 |
|
| 300 |
ACTION_NOT_FOUND = [===[ |
| 301 |
<div class="error_message"> |
| 302 |
<p>_(PAGE_DOES_NOT_SUPPORT_ACTION)</p> |
| 303 |
$if_custom_actions[[ |
| 304 |
<p>_(THIS_PAGE_DEFINED_THE_FOLLOWING_ACTIONS)</p> |
| 305 |
<pre><code>$actions</code></pre> |
| 306 |
]] |
| 307 |
</div> |
| 308 |
]===] |
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
|