advtrains_doc_integration.describe.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  5. <head>
  6. <title>Manual for advtrains_doc_integration</title>
  7. <link rel="stylesheet" href="../ldoc.css" type="text/css" />
  8. </head>
  9. <body>
  10. <div id="container">
  11. <div id="product">
  12. <div id="product_logo"></div>
  13. <div id="product_name"><big><b></b></big></div>
  14. <div id="product_description"></div>
  15. </div> <!-- id="product" -->
  16. <div id="main">
  17. <!-- Menu -->
  18. <div id="navigation">
  19. <br/>
  20. <h1>Documentation System Integration for Advtrains</h1>
  21. <ul>
  22. <li><a href="../index.html">Index</a></li>
  23. </ul>
  24. <h2>Contents</h2>
  25. <ul>
  26. <li><a href="#Functions">Functions</a></li>
  27. </ul>
  28. <h2>Modules</h2>
  29. <ul class="nowrap">
  30. <li><a href="../modules/advtrains_doc_integration.bc.html">advtrains_doc_integration.bc</a></li>
  31. <li><strong>advtrains_doc_integration.describe</strong></li>
  32. <li><a href="../modules/advtrains_doc_integration.hypertext.html">advtrains_doc_integration.hypertext</a></li>
  33. <li><a href="../modules/advtrains_doc_integration.html">advtrains_doc_integration</a></li>
  34. <li><a href="../modules/advtrains_doc_integration.latex.html">advtrains_doc_integration.latex</a></li>
  35. <li><a href="../modules/advtrains_doc_integration.mathutils.html">advtrains_doc_integration.mathutils</a></li>
  36. <li><a href="../modules/advtrains_doc_integration.utils.html">advtrains_doc_integration.utils</a></li>
  37. </ul>
  38. <h2>Topics</h2>
  39. <ul class="">
  40. <li><a href="../topics/README.md.html">README</a></li>
  41. </ul>
  42. </div>
  43. <div id="content">
  44. <h1>Module <code>advtrains_doc_integration.describe</code></h1>
  45. <p>Describing things.</p>
  46. <p> This module includes functions used for describing things.</p>
  47. <h2><a href="#Functions">Functions</a></h2>
  48. <table class="function_list">
  49. <tr>
  50. <td class="name" nowrap><a href="#conns">conns (conns)</a></td>
  51. <td class="summary">Describe a conns object</td>
  52. </tr>
  53. <tr>
  54. <td class="name" nowrap><a href="#mixed_fraction">mixed_fraction (int, num, denom)</a></td>
  55. <td class="summary">Describe a (mixed) fraction</td>
  56. </tr>
  57. <tr>
  58. <td class="name" nowrap><a href="#length">length (x)</a></td>
  59. <td class="summary">Describe a short length (using mm and in).</td>
  60. </tr>
  61. <tr>
  62. <td class="name" nowrap><a href="#speed">speed (x)</a></td>
  63. <td class="summary">Describe a speed value (using m/s, km/h and mph).</td>
  64. </tr>
  65. </table>
  66. <br/>
  67. <br/>
  68. <h2 class="section-header "><a name="Functions"></a>Functions</h2>
  69. <dl class="function">
  70. <dt>
  71. <a name = "conns"></a>
  72. <strong>conns (conns)</strong>
  73. </dt>
  74. <dd>
  75. Describe a conns object
  76. <h3>Parameters:</h3>
  77. <ul>
  78. <li><span class="parameter">conns</span>
  79. <span class="types"><a class="type" href="https://git.bananach.space/advtrains.git/tree/advtrains/api_doc.txt">advtrains.conns</a> or <a class="type" href="https://git.bananach.space/advtrains.git/tree/advtrains/api_doc.txt">{advtrains.conns,number,...}</a></span>
  80. The conns object to describe.
  81. </li>
  82. </ul>
  83. <h3>Returns:</h3>
  84. <ol>
  85. <span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a> or <span class="type">nil</span></span>
  86. The description of the conns object.
  87. </ol>
  88. </dd>
  89. <dt>
  90. <a name = "mixed_fraction"></a>
  91. <strong>mixed_fraction (int, num, denom)</strong>
  92. </dt>
  93. <dd>
  94. Describe a (mixed) fraction
  95. <h3>Parameters:</h3>
  96. <ul>
  97. <li><span class="parameter">int</span>
  98. <span class="types"><span class="type">integer</span></span>
  99. The integer part of the number.
  100. </li>
  101. <li><span class="parameter">num</span>
  102. <span class="types"><span class="type">integer</span></span>
  103. The numerator.
  104. </li>
  105. <li><span class="parameter">denom</span>
  106. <span class="types"><span class="type">integer</span></span>
  107. The denominator.
  108. </li>
  109. </ul>
  110. <h3>Returns:</h3>
  111. <ol>
  112. <span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span>
  113. The description of the mixed fraction.
  114. </ol>
  115. </dd>
  116. <dt>
  117. <a name = "length"></a>
  118. <strong>length (x)</strong>
  119. </dt>
  120. <dd>
  121. Describe a short length (using mm and in).
  122. <h3>Parameters:</h3>
  123. <ul>
  124. <li><span class="parameter">x</span>
  125. <span class="types"><span class="type">number</span></span>
  126. The length in meters.
  127. </li>
  128. </ul>
  129. <h3>Returns:</h3>
  130. <ol>
  131. <span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span>
  132. The description of the length.
  133. </ol>
  134. </dd>
  135. <dt>
  136. <a name = "speed"></a>
  137. <strong>speed (x)</strong>
  138. </dt>
  139. <dd>
  140. Describe a speed value (using m/s, km/h and mph).
  141. <h3>Parameters:</h3>
  142. <ul>
  143. <li><span class="parameter">x</span>
  144. <span class="types"><span class="type">number</span></span>
  145. The speed in m/s.
  146. </li>
  147. </ul>
  148. <h3>Returns:</h3>
  149. <ol>
  150. <span class="types"><a class="type" href="https://www.lua.org/manual/5.4/manual.html#6.4">string</a></span>
  151. The description of the speed.
  152. </ol>
  153. </dd>
  154. </dl>
  155. </div> <!-- id="content" -->
  156. </div> <!-- id="main" -->
  157. <div id="about">
  158. <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i>
  159. <i style="float:right;">Last updated 2024-01-29 22:34:40 </i>
  160. </div> <!-- id="about" -->
  161. </div> <!-- id="container" -->
  162. </body>
  163. </html>