| t | | t | |
| <table align="right"><tr><td><div class="toc"> | | |
| Contents: | | |
| <ul> | | |
| <li><a href="#file_upload">file upload</a></li> | | |
| <li><a href="#test_bullets_and_headers">test bullets and headers</a></li> | | |
| <li><a href="#IfNotAdmin">IfNotAdmin</a></li> | | |
| <li><a href="#table_with_ROUND">table with ROUND</a></li> | | |
| <li><a href="#ExternalCmdExample">ExternalCmdExample</a></li> | | |
| <li><a href="#section_1">section 1</a></li> | | |
| <li><a href="#section_2">section 2</a></li> | | |
| <li><a href="#section_3">section 3</a></li> | | |
| <li><a href="#section_4">section 4</a></li> | | |
| <li><a href="#try_some_data_elements">try some data elements</a></li> | | |
| </ul> | | |
| </div></td></tr></table> | | |
| <p> | | |
| This <b>page</b> is for testing things. Please feel free to edit or change | | |
| anything here. | | |
| <p> | | |
| <h1><a name="file_upload">file upload</a> | | |
| <span align=right class="section_edit_link">[<a href="/tbwiki/Sandbox?action=edit§ion=file_upload">edit section</a>]</font></span> | | |
| </h1> | | |
| <ul><li><a style="color:red;" href="/tbwiki/Sandbox?action=upload_one&dest_fn=foo.txt">file:foo.txt</a> | | |
| </ul> | | |
| <p> | | |
| <h1><a name="test_bullets_and_headers">test bullets and headers</a> | | |
| <span align=right class="section_edit_link">[<a href="/tbwiki/Sandbox?action=edit§ion=test_bullets_and_headers">edit section</a>]</font></span> | | |
| </h1> | | |
| <ul><li>see <a style="color:red;" href="/tbwiki/TestBulletsAndHeaders">TestBulletsAndHeaders</a> | | |
| </ul> | | |
| <p> | | |
| <h1><a name="IfNotAdmin">IfNotAdmin</a> | | |
| <span align=right class="section_edit_link">[<a href="/tbwiki/Sandbox?action=edit§ion=IfNotAdmin">edit section</a>]</font></span> | | |
| </h1> | | |
| Here is a message showing Admin status: | | |
| <p> | | |
| You are NOT an admin<p> | | |
| Above this line should either be a message about Admins or Non-Admins. | | |
| <p> | | |
| <h1><a name="table_with_ROUND">table with ROUND</a> | | |
| <span align=right class="section_edit_link">[<a href="/tbwiki/Sandbox?action=edit§ion=table_with_ROUND">edit section</a>]</font></span> | | |
| </h1> | | |
| <table border=1> | | |
| <tr bgcolor="#d0d0ff"> | | |
| <td align="center"><b>number</b> <a href="/tbwiki/Sandbox?sortby=number">^</a></td> | | |
| <td align="center"><b>formula</b> <a href="/tbwiki/Sandbox?sortby=formula">^</a></td> | | |
| <td align="center"><b>result</b> <a href="/tbwiki/Sandbox?sortby=result">^</a></td> | | |
| <td align="center"><b>expected</b> <a href="/tbwiki/Sandbox?sortby=expected">^</a></td> | | |
| </tr> | | |
| <tr> | | |
| <td>12.00001</td> | | |
| <td>f=ROUND($.number,2)</td> | | |
| <td>12.0</td> | | |
| <td>12.00</td> | | |
| </tr> | | |
| <tr> | | |
| <td>15.12468</td> | | |
| <td>f=ROUND($.number,1)</td> | | |
| <td>15.1</td> | | |
| <td>15.1</td> | | |
| </tr> | | |
| <tr> | | |
| <td>15.12468</td> | | |
| <td>f=ROUND($.number,2)</td> | | |
| <td>15.12</td> | | |
| <td>15.12</td> | | |
| </tr> | | |
| <tr> | | |
| <td>15.12468</td> | | |
| <td>f=ROUND($.number,3)</td> | | |
| <td>15.125</td> | | |
| <td>15.125</td> | | |
| </tr> | | |
| <tr> | | |
| <td>15.12468</td> | | |
| <td>f=ROUND($.number,4)</td> | | |
| <td>15.1247</td> | | |
| <td>15.1247</td> | | |
| </tr> | | |
| <tr> | | |
| <td>literal</td> | | |
| <td>f=ROUND(23.149,1)</td> | | |
| <td>23.1</td> | | |
| <td>23.1</td> | | |
| </tr> | | |
| <tr> | | |
| <td>literal</td> | | |
| <td>f=ROUND(23.149,2)</td> | | |
| <td>23.15</td> | | |
| <td>23.15</td> | | |
| </tr> | | |
| </table> | | |
| <a href="/tbwiki/Sandbox?action=Table.query_form&source_spec=Sandbox%3A__block1&conf=&table_block=Sandbox%3A__block1"> | | |
| <font size=-1>Query</font></a> | | |
| <br> | | |
| | | |
| <p> | | |
| <h1><a name="ExternalCmdExample">ExternalCmdExample</a> | | |
| <span align=right class="section_edit_link">[<a href="/tbwiki/Sandbox?action=edit§ion=ExternalCmdExample">edit section</a>]</font></span> | | |
| </h1> | | |
| Here is an example of running the ExternCmdExample processor: | | |
| <p> | | |
| Here is an 'ls' example: | | |
| <PRE> | | |
| total 308 | | |
| drwxr-xr-x 2 birdorg birdorg 4096 May 25 20:14 __pycache__ | | |
| -rwxr-xr-x 1 birdorg birdorg 1706 Sep 17 17:59 blog.cgi | | |
| -rwxr-xr-x 1 birdorg birdorg 1681 Sep 12 14:27 family.cgi | | |
| -rwxr-xr-x 2 birdorg birdorg 19586 Sep 4 2018 fserver.py | | |
| -rwxr-xr-x 1 birdorg birdorg 1903 Feb 23 2026 fuego-1.0.cgi | | |
| -rwxr-xr-x 1 birdorg birdorg 1924 Feb 23 2026 fuego-1.2.cgi | | |
| -rwxr-xr-x 1 birdorg birdorg 1884 Feb 23 2026 fuego.cgi | | |
| -rwxr-xr-x 1 birdorg birdorg 799 Aug 18 2016 give_data_to_bad_guys.cgi | | |
| -rwxr-xr-x 1 birdorg birdorg 1785 Feb 23 2026 jonathan.cgi | | |
| -rwxr-xr-x 1 birdorg birdorg 1629 Jan 3 2020 mwiki.cgi | | |
| -rwxr-xr-x 1 birdorg birdorg 1773 Feb 23 2026 nathan.cgi | | |
| -rwxr-xr-x 1 birdorg birdorg 73 Feb 19 2026 pytest.cgi | | |
| -rwxr-xr-x 1 birdorg birdorg 1761 Feb 23 2026 ryan.cgi | | |
| -rwxr-xr-x 1 birdorg birdorg 1773 Feb 23 2026 samuel.cgi | | |
| -rwxr-xr-x 1 birdorg birdorg 1645 Feb 23 2026 scout.cgi | | |
| -rwxr-xr-x 1 birdorg birdorg 1628 Aug 3 18:41 sony.cgi | | |
| -rwxr-xr-x 1 birdorg birdorg 2863 Feb 23 2026 space.cgi | | |
| -rwxr-xr-x 1 birdorg birdorg 1664 Sep 12 20:29 tbwiki.cgi | | |
| -rwxr-xr-x 1 birdorg birdorg 979 Feb 26 2026 test-py-encoding.cgi | | |
| -rwxr-xr-x 1 birdorg birdorg 612 Feb 26 2026 test-sh-encoding.cgi | | |
| -rwxr-xr-x 1 birdorg birdorg 504 Sep 4 19:15 test-this.cgi | | |
| -rwxr-xr-x 1 birdorg birdorg 2823 Sep 10 08:05 test.cgi | | |
| -rwxr-xr-x 1 birdorg birdorg 1977 Feb 18 2020 test.cgi.save | | |
| -rw-r--r-- 1 birdorg birdorg 147 May 25 22:11 testfile | | |
| -rwxr-xr-x 1 birdorg birdorg 52 Sep 4 19:15 this-python | | |
| -rwxr-xr-x 1 birdorg birdorg 41 Sep 4 19:07 this-shell | | |
| -rwxr-xr-x 1 birdorg birdorg 1657 Apr 30 14:44 tims.cgi | | |
| -rw-r--r-- 1 birdorg birdorg 194 May 25 20:24 vgchart-note.txt | | |
| -rwxr-xr-x 1 birdorg birdorg 30479 May 25 23:59 vgchart.py | | |
| -rw-r--r-- 1 birdorg birdorg 21142 Nov 23 2025 vgchart.pyc | | |
| -rwxr-xr-x 1 birdorg birdorg 1270 Aug 17 18:14 words.cgi | | |
| </PRE> | | |
| | | |
| <p> | | |
| <hr size=2> | | |
| Here is a 'bc' example: | | |
| 39.58403 | | |
| <p> | | |
| The line above should show: 39.58403 | | |
| <p> | | |
| <hr size=2> | | |
| Here is a 'cat' example: | | |
| This data goes into a temp file, which is cat'ed back out. | | |
| | | |
| | | |
| Here is more stuff I added in the processor | | |
| <p> | | |
| The line above should read "This data goes into a temp file, which is cat'ed back out. | | |
| Here is more stuff I added in the processor. | | |
| <p> | | |
| Help page: <a href="https://bird.org/tbwiki/Sandbox?action=ExternalCmdExample.help">ExternalCmdExample.help</a> | | |
| <h1><a name="section_1">section 1</a> | | |
| <span align=right class="section_edit_link">[<a href="/tbwiki/Sandbox?action=edit§ion=section_1">edit section</a>]</font></span> | | |
| </h1> | | |
| <p> | | |
| This is section 1 | | |
| Here is a link to section 3: | | |
| <ul><li><a href="/tbwiki/Sandbox#section_3">section 3</a> | | |
| </ul> | | |
| <p> | | |
| Here is another link to section 3: | | |
| <ul><li><a href="#section_3">section 3</a> | | |
| </ul> | | |
| <p> | | |
| The above anchor link to the same page should work, and it does! | | |
| <p> | | |
| <h1><a name="section_2">section 2</a> | | |
| <span align=right class="section_edit_link">[<a href="/tbwiki/Sandbox?action=edit§ion=section_2">edit section</a>]</font></span> | | |
| </h1> | | |
| <p> | | |
| This is section 2. It has a block with lots of lines in it. | | |
| <p> | | |
| <pre> | | |
| lots more text in a block to cause lots of lines | | |
| lots more text in a block to cause lots of lines | | |
| lots more text in a block to cause lots of lines | | |
| lots more text in a block to cause lots of lines | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| abc | | |
| </pre> | | |
| <p> | | |
| <h1><a name="section_3">section 3</a> | | |
| <span align=right class="section_edit_link">[<a href="/tbwiki/Sandbox?action=edit§ion=section_3">edit section</a>]</font></span> | | |
| </h1> | | |
| <p> | | |
| This is section 3 | | |
| <p> | | |
| Some more test material | | |
| <p> | | |
| <h1><a name="section_4">section 4</a> | | |
| <span align=right class="section_edit_link">[<a href="/tbwiki/Sandbox?action=edit§ion=section_4">edit section</a>]</font></span> | | |
| </h1> | | |
| <p> | | |
| This tests a compact hidden block: | | |
| <p> | | |
| There is a block between this line | | |
| <p> | | |
| | | |
| <p> | | |
| and this line | | |
| <p> | | |
| <h1><a name="try_some_data_elements">try some data elements</a> | | |
| <span align=right class="section_edit_link">[<a href="/tbwiki/Sandbox?action=edit§ion=try_some_data_elements">edit section</a>]</font></span> | | |
| </h1> | | |
| <ul><li>TBWIKI git_describe = v2.0.0-40-ga4adefa | | |
| </ul> | | |
| <p> | | |