Sandbox

  • Revision slug: User:Elchi3/Sandbox
  • Revision title: Sandbox
  • Revision id: 48632
  • Created:
  • Creator: fscholz
  • Is current revision? No
  • Comment 18 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 Desktop browsers Mobile
Internet Explorer Firefox (Gecko) Opera (Presto) Chrome (WebKit) Safari (WebKit) Safari Mobile (WebKit) Windows phone Opera Mini (Presto)
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) ---

attribution template

{{ attribution("Peter-Paul Koch", "http://quirksmode.org") }}

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 rowspan="2">Feature</th> <th colspan="5" style="text-align: center; height: 50px; border-left: 2px solid #ccc">Desktop browsers</th> <th colspan="3" style="text-align: center; height: 50px; border-left: 2px solid #ccc">Mobile</th> </tr> <tr> <th style="border-left: 2px solid #ccc">Internet Explorer</th> <th>Firefox (Gecko)</th> <th>Opera (Presto)</th> <th>Chrome (WebKit)</th> <th>Safari (WebKit)</th> <th style="border-left: 2px solid #ccc">Safari Mobile (WebKit)</th> <th>Windows phone</th> <th>Opera Mini (Presto)</th> </tr> <tr> <td>Basic support</td> <td style="border-left: 2px solid #ccc">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 style="border-left: 2px solid #ccc">5.0 (430)</td> <td>3.1 (430)</td> <td>9.0 (520)</td> </tr> <tr> <td>x-y fetaure</td> <td style="border-left: 2px solid #ccc">8.0</td> <td>8.0</td> <td>4.0 (2.0)</td> <td><em>Nightly build</em></td> <td>---</td> <td style="border-left: 2px solid #ccc">?</td> <td>---</td> <td>10.0 (533)</td> </tr> <tr> <td>x-y fetaure</td> <td style="border-left: 2px solid #ccc">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 style="border-left: 2px solid #ccc">5.0 (430)</td> <td>3.1 (430)</td> <td>---</td> </tr> </tbody>
</table>
<h3>attribution template</h3>
<p>{{ attribution("Peter-Paul Koch", "http://quirksmode.org") }}</p>
Revert to this revision