MessageLibrary.html 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <!DOCTYPE html>
  2. <html dir="ltr">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  5. <title>Diagnostics/Scribunto/MessageLibrary - XOWA</title>
  6. <link rel="shortcut icon" href="https://gnosygnu.github.io/xowa/xowa_logo.png" />
  7. <link rel="stylesheet" href="https://gnosygnu.github.io/xowa/xowa_common.css" type="text/css">
  8. </head>
  9. <body class="mediawiki ltr sitedir-ltr ns-0 ns-subject skin-vector action-submit vector-animateLayout" spellcheck="false">
  10. <div id="mw-page-base" class="noprint"></div>
  11. <div id="mw-head-base" class="noprint"></div>
  12. <div id="content" class="mw-body">
  13. <h1 id="firstHeading" class="firstHeading"><span>Diagnostics/Scribunto/MessageLibrary</span></h1>
  14. <div id="bodyContent" class="mw-body-content">
  15. <div id="siteSub">From XOWA: the free, open-source, offline wiki application</div>
  16. <div id="contentSub"></div>
  17. <div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
  18. <h2>
  19. <span class="mw-headline" id="Message_Library">Message Library</span>
  20. </h2>
  21. <ul>
  22. <li>
  23. Calls code in <a href="/wiki/Module:Diagnostics/MessageLibrary" id="xolnki_2" title="Module:Diagnostics/MessageLibrary">Module:Diagnostics/MessageLibrary</a>
  24. </li>
  25. <li>
  26. Tests compatibility for <b>MessageLibrary.php</b> and <b>mw.message.lua</b>
  27. </li>
  28. </ul>
  29. <table class="wikitable">
  30. <tr>
  31. <th>
  32. name
  33. </th>
  34. <th>
  35. code
  36. </th>
  37. <th>
  38. actl
  39. </th>
  40. <th>
  41. rslt
  42. </th>
  43. </tr>
  44. <tr>
  45. <td>
  46. <span style='color: green;'>pass</span>
  47. </td>
  48. <td>
  49. init_message_for_lang (via getDefaultLanguage)
  50. </td>
  51. <td>
  52. {{#invoke:Diagnostics/MessageLibrary|getDefaultLanguage}}
  53. </td>
  54. <td>
  55. en
  56. <p>
  57. <br>
  58. </p>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td>
  63. <span style='color: green;'>pass</span>
  64. </td>
  65. <td>
  66. plain
  67. </td>
  68. <td>
  69. {{#invoke:Diagnostics/MessageLibrary|plain|mainpage}}
  70. </td>
  71. <td>
  72. Main Page
  73. <p>
  74. <br>
  75. </p>
  76. </td>
  77. </tr>
  78. <tr>
  79. <td>
  80. <span style='color: green;'>pass</span>
  81. </td>
  82. <td>
  83. plain; params
  84. </td>
  85. <td>
  86. {{#invoke:Diagnostics/MessageLibrary|plain|redirectedfrom|A}}
  87. </td>
  88. <td>
  89. (Redirected from A)
  90. <p>
  91. <br>
  92. </p>
  93. </td>
  94. </tr>
  95. <tr>
  96. <td>
  97. <span style='color: green;'>pass</span>
  98. </td>
  99. <td>
  100. exists; true
  101. </td>
  102. <td>
  103. {{#invoke:Diagnostics/MessageLibrary|check|exists|sun}}
  104. </td>
  105. <td>
  106. true
  107. <p>
  108. <br>
  109. </p>
  110. </td>
  111. </tr>
  112. <tr>
  113. <td>
  114. <span style='color: green;'>pass</span>
  115. </td>
  116. <td>
  117. exists; false
  118. </td>
  119. <td>
  120. {{#invoke:Diagnostics/MessageLibrary|check|exists|sunx}}
  121. </td>
  122. <td>
  123. false
  124. <p>
  125. <br>
  126. </p>
  127. </td>
  128. </tr>
  129. <tr>
  130. <td>
  131. <span style='color: green;'>pass</span>
  132. </td>
  133. <td>
  134. isBlank; false
  135. </td>
  136. <td>
  137. {{#invoke:Diagnostics/MessageLibrary|check|isBlank|sun}}
  138. </td>
  139. <td>
  140. false
  141. <p>
  142. <br>
  143. </p>
  144. </td>
  145. </tr>
  146. <tr>
  147. <td>
  148. <span style='color: green;'>pass</span>
  149. </td>
  150. <td>
  151. isDisabled; false
  152. </td>
  153. <td>
  154. {{#invoke:Diagnostics/MessageLibrary|check|isDisabled|sun}}
  155. </td>
  156. <td>
  157. false
  158. <p>
  159. <br>
  160. </p>
  161. </td>
  162. </tr>
  163. <tr>
  164. <td>
  165. <span style='color: green;'>pass</span>
  166. </td>
  167. <td>
  168. inLanguage
  169. </td>
  170. <td>
  171. {{#invoke:Diagnostics/MessageLibrary|plain_inLanguage|fr|sun}}
  172. </td>
  173. <td>
  174. Dim.
  175. <p>
  176. <br>
  177. </p>
  178. </td>
  179. </tr>
  180. <tr>
  181. <td>
  182. <span style='color: green;'>pass</span>
  183. </td>
  184. <td>
  185. rawMessage_toString
  186. </td>
  187. <td>
  188. {{#invoke:Diagnostics/MessageLibrary|plain_rawMessage|a$1c|b}}
  189. </td>
  190. <td>
  191. abc
  192. <p>
  193. <br>
  194. </p>
  195. </td>
  196. </tr>
  197. </table>
  198. </div>
  199. </div>
  200. </div>
  201. <div id="mw-head" class="noprint">
  202. <div id="left-navigation">
  203. <div id="p-namespaces" class="vectorTabs">
  204. <h3>Namespaces</h3>
  205. <ul>
  206. <li id="ca-nstab-main" class="selected"><span><a id="ca-nstab-main-href" href="index.html">Page</a></span></li>
  207. </ul>
  208. </div>
  209. </div>
  210. </div>
  211. <div id='mw-panel' class='noprint'>
  212. <div id='p-logo'>
  213. <a style="background-image: url(https://gnosygnu.github.io/xowa/xowa_logo.png);" href="http://xowa.org/" title="Visit the main page"></a>
  214. </div>
  215. <div class="portal" id='xowa-portal-home'>
  216. <h3>XOWA</h3>
  217. <div class="body">
  218. <ul>
  219. <li><a href="http://xowa.org/index.html" title='Visit the main page'>Main page</a></li>
  220. <li><a href="http://xowa.org/screenshots.html" title='See screenshots of XOWA'>Screenshots</a></li>
  221. <li><a href="https://www.youtube.com/watch?v=q0qbXYXEH6M" title="See a video of XOWA Desktop in action">Video</a></li>
  222. <li><a href="http://xowa.org/home/wiki/Help/Download_XOWA.html" title='Download the XOWA application'>Download XOWA</a></li>
  223. <li><a href="http://xowa.org/home/wiki/Dashboard/Image_databases.html" title='Download offline wikis and image databases'>Download wikis</a></li>
  224. </ul>
  225. </div>
  226. </div>
  227. <div class="portal" id='xowa-portal-started'>
  228. <h3>Getting started</h3>
  229. <div class="body">
  230. <ul>
  231. <li><a href="http://xowa.org/home/wiki/App/Setup/System_requirements.html" title='Get XOWA&apos;s system requirements'>Requirements</a></li>
  232. <li><a href="http://xowa.org/home/wiki/App/Setup/Installation.html" title='Get instructions for installing XOWA'>Installation</a></li>
  233. <li><a href="http://xowa.org/home/wiki/App/Import/Simple_Wikipedia.html" title='Learn how to set up Simple Wikipedia'>Simple Wikipedia</a></li>
  234. <li><a href="http://xowa.org/home/wiki/App/Import/English_Wikipedia.html" title='Learn how to set up English Wikipedia'>English Wikipedia</a></li>
  235. <li><a href="http://xowa.org/home/wiki/App/Import/Other_wikis.html" title='Learn how to set up other Wikipedias'>Other Wikipedias</a></li>
  236. </ul>
  237. </div>
  238. </div>
  239. <div class="portal" id='xowa-portal-android'>
  240. <h3>Android</h3>
  241. <div class="body">
  242. <ul>
  243. <li><a href="http://xowa.org/home/wiki/Android/Setup.html" title='Setup XOWA on your Android device'>Setup</a></li>
  244. <li><a href="https://www.youtube.com/watch?v=jsMTBxGweUw" title="See a video of XOWA Android in action">Video</a></li>
  245. </ul>
  246. </div>
  247. </div>
  248. <div class="portal" id='xowa-portal-help'>
  249. <h3>Help</h3>
  250. <div class="body">
  251. <ul>
  252. <li><a href="http://xowa.org/home/wiki/Help/About.html" title='Get more information about XOWA'>About</a></li>
  253. <li><a href="http://xowa.org/home/wiki/Help/Contents.html" title='View a list of help topics'>Contents</a></li>
  254. <li><a href="http://xowa.org/home/wiki/Help/Media.html" title='Read what others have written about XOWA'>Media</a></li>
  255. <li><a href="http://xowa.org/home/wiki/Help/Feedback.html" title='Questions? Comments? Leave feedback for XOWA'>Feedback</a></li>
  256. </ul>
  257. </div>
  258. </div>
  259. <div class="portal" id='xowa-portal-blog'>
  260. <h3>Blog</h3>
  261. <div class="body">
  262. <ul>
  263. <li><a href="http://xowa.org/home/wiki/Blog.html" title='Follow XOWA''s development process'>Current</a></li>
  264. </ul>
  265. </div>
  266. </div>
  267. <div class="portal" id='xowa-portal-links'>
  268. <h3>Links</h3>
  269. <div class="body">
  270. <ul>
  271. <li><a href="http://dumps.wikimedia.org/backup-index.html" title="Get wiki datababase dumps directly from Wikimedia">Wikimedia dumps</a></li>
  272. <li><a href="https://archive.org/search.php?query=xowa" title="Search archive.org for XOWA files">XOWA @ archive.org</a></li>
  273. <li><a href="http://en.wikipedia.org" title="Visit Wikipedia (and compare to XOWA!)">English Wikipedia</a></li>
  274. </ul>
  275. </div>
  276. </div>
  277. <div class="portal" id='xowa-portal-donate'>
  278. <h3>Donate</h3>
  279. <div class="body">
  280. <ul>
  281. <li><a href="https://archive.org/donate/index.php" title="Support archive.org!">archive.org</a></li><!-- listed first due to recent fire damages: http://blog.archive.org/2013/11/06/scanning-center-fire-please-help-rebuild/ -->
  282. <li><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector" title="Support Wikipedia!">Wikipedia</a></li>
  283. <li><a href="http://xowa.org/home/wiki/Help/Donate.html" title="Support XOWA!">XOWA</a></li>
  284. </ul>
  285. </div>
  286. </div>
  287. </div>
  288. </body>
  289. </html>