Revision 48630 of Sandbox

  • Revision slug: User:Elchi3/Sandbox
  • Revision title: Sandbox
  • Revision id: 48630
  • Created:
  • Creator: fscholz
  • Is current revision? No
  • Comment compat table; 113 words added

Revision Content

Syntax highlighting

Turn line numbers off

<pre function="syntax.html{code:$, gutter: false}">

Collapse a code sample

<pre function="syntax.html{code:$, collapse: true}">

Turn line wrapping on/off

<pre function="syntax.html{code:$, wrap:true}">
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam

wiki.contributors()

{{ contributors(nil, 15) }}

page.viewcount

{{ page.viewcount }}

Template tests

  • {{ jsapixref("JS_SetOperationCallback") }}
  • {{ jsapixref("JS_SetFunctionCallback()") }}
  • {{ jsapixref("JS_TriggerOperationCallback") }}

Browser compat table

Feature Internet Explorer Windows phone Firefox (Gecko) Opera (Presto) Opera Mini (Presto) Safari (WebKit) Safari Mobile (WebKit) Chrome (WebKit)
Basic support 7.0 8.0 4.0 (2.0) 11.0 (2.x) 11.0 (2.x) 5.0 (430) 3.1 (430) 9.0 (520)
x-y fetaure 8.0 8.0 4.0 (2.0) Nightly build --- ? --- 10.0 (533)
x-y fetaure 9.0 8.0 4.0 (2.0) -o-attr-blafoobar was
supported from 7.8 until 10.5
--- 5.0 (430) 3.1 (430) ---

Revision Source

<h2 id="syntax">Syntax highlighting</h2>
<h3>Turn line numbers off</h3>
<pre class="brush: html">&lt;pre function="syntax.html{code:$, gutter: false}"&gt;
</pre>
<h3>Collapse a code sample</h3>
<pre class="brush: html">&lt;pre function="syntax.html{code:$, collapse: true}"&gt;
</pre>
<h3>Turn line wrapping on/off</h3>
<pre class="brush: html">&lt;pre function="syntax.html{code:$, wrap:true}"&gt;
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
</pre>
<h2 id="wiki">wiki.contributors()</h2>
<p>{{ contributors(nil, 15) }}</p>
<h2 id="counter">page.viewcount</h2>
<p>{{ page.viewcount }}</p>
<h2>Template tests</h2>
<ul> <li>{{ jsapixref("JS_SetOperationCallback") }}</li> <li>{{ jsapixref("JS_SetFunctionCallback()") }}</li> <li>{{ jsapixref("JS_TriggerOperationCallback") }}</li>
</ul>
<h2>Browser compat table</h2>
<table class="standard-table"> <tbody> <tr> <th>Feature</th> <th>Internet Explorer</th> <th>Windows phone</th> <th>Firefox (Gecko)</th> <th>Opera (Presto)</th> <th>Opera Mini (Presto)</th> <th>Safari (WebKit)</th> <th>Safari Mobile (WebKit)</th> <th>Chrome (WebKit)</th> </tr> <tr> <td>Basic support</td> <td>7.0</td> <td>8.0</td> <td>4.0 (2.0)</td> <td>11.0 (2.x)</td> <td>11.0 (2.x)</td> <td>5.0 (430)</td> <td>3.1 (430)</td> <td>9.0 (520)</td> </tr> <tr> <td>x-y fetaure</td> <td>8.0</td> <td>8.0</td> <td>4.0 (2.0)</td> <td><em>Nightly build</em></td> <td>---</td> <td>?</td> <td>---</td> <td>10.0 (533)</td> </tr> <tr> <td>x-y fetaure</td> <td>9.0</td> <td>8.0</td> <td>4.0 (2.0)</td> <td><code>-o-attr-blafoobar</code> was<br> supported from 7.8 until 10.5</td> <td>---</td> <td>5.0 (430)</td> <td>3.1 (430)</td> <td>---</td> </tr> </tbody>
</table>
Revert to this revision