Sandbox/Worksheet
Some test cases for VisualEditor.
Text formatting and lists edit
Text style edit
This is some basic text. This is a link and some italics bold text.
Here we talk shop about code
because code instanceof Poetry === true
. And perhaps some text using the obsolete teletype text element.
Links edit
- Plain internal link: Sandbox, text.
- Named internal link, text.
- Named red internal link, text.
- Interwiki link, text.
- Plain external link: http://example.org, text.
- Unnamed external link: [1], text.
- Named external link, text.
- Named protocol-relative external link, text.
Lists edit
- This bullet list should display "normally"
- With another bullet
- With a sub-item
- A numbered sub-sub-item
- And its successor
- With a sub-item
- And be able to be split, extended, in-/out-dented and ended as normal.
Caching layers:
- Browser caches
- Native browser cache
- HTML5 Web Storage (SessionStorage, LocalStorage, ..)
- Front-end Varnishes
- Varnish caches the entire HTTP responses, including thumbnails of images, frequently-requested pages, ResourceLoader modules, and similar items that can be retrieved over HTTP. The front-end Varnishes keep these in memory. A weighted-random load balancer (LVS) distributes web requests to the front-end Varnishes.
- Back-end Varnishes
- When a front-end Varnish doesn't have a response cached, it passes the request to the back-end.
- memcached
- Object cache
- Query cache
Preformatted edit
== Preformatted == Example '''test''' with [[link]] and <em>emphasis</em>.
Syntax highlighter edit
/*global
Color,
Fruit, PearFruit,
Basket, BigBasket, FruitBigBasket,
InvalidArgumentError
*/
var util = require('util');
/**
* A non-empty basket of green-coloured fruits
* that are not pears.
*
* @class
* @extends FruitBigBasket
*
* @constructor
* @param {Array} items
* @throws {InvalidArgumentError} If basket contains unexpected items.
*/
function SmoigelBasket(items) {
SmoigelBasket.super_.apply(this, arguments);
if (
!items.length ||
items.some(function (item) {
return !item.color.isLike(Color.newFromKeyword('green')) || item instanceof PearFruit;
})
) {
throw new InvalidArgumentError();
}
}
util.inherits(SmoigelBasket, FruitBigBasket);
Quote edit
Plain blockquote:
Cupcake ipsum dolor sit amet tart powder tootsie roll cotton candy. Lollipop tootsie roll tiramisu chocolate bar jelly-o ice cream tootsie roll powder. I love jelly-o chupa chups applicake. Candy fruitcake muffin liquorice oat cake.
– Cupcake Ipsum
Fancy blockquote:
This was a triumph. I'm making a note here: HUGE SUCCESS.
So I'm GLaD. I got burned.
– GLaDOS
Cite:
GLaDOS was "making a note here".
Tables edit
Keys | Values |
---|---|
foo | lorem |
bar | ipsum |
baz | dolor |
quux | sit |
Enhanced elements edit
Table with sortable
(jquery.tablesorter) and mw-collapsible
(jquery.makeCollapsible).
Keys | Values |
---|---|
foo | lorem |
bar | ipsum |
baz | dolor |
quux | sit |
Headings! edit
Are! edit
Really! edit
Over-used! edit
Here!
Media files edit
This is an inline image, a frameless one, and a block one with a caption:
Thumb
Bold text:
Multi-line text:
Headings:
With an inline image:
With a thumb image:
With a ref:
- ^ Heya.
With a div:
Templates edit
This is an example of using the "Unsigned" template, an inline template which you can edit (documentation): — Preceding unsigned comment added by User:Jdforrester (WMF) (talk • contribs) 16:25, 12 June 2013 (UTC)
Transclusion with html comment in target — Preceding unsigned comment added by User:Krinkle (talk • contribs) 21:42, 9 July 2014 (CEST).
Transclusion with wikitext expression as target — Preceding unsigned comment added by User:Krinkle (talk • contribs) 21:42, 9 July 2014 (CEST).
Template:Wikimedia engineering project information
This is an example of using the {{Wikimedia engineering project information}} template, a block template which you can edit (documentation):
WikiHiero edit
- See also Extension:WikiHiero
|
Poem edit
Species C1 C2 C3
Sp1 1 1 0
Sp2 1 0 1
Sp3 1 1 1
References edit
Simple reference.[1]
Bold text reference.[2]
Multi-line reference.[3]
In-line image in a reference.[4]
Block-level image in a reference.[5]
Heading in a reference.[6]
Template in a reference.[7]
Another Template in a reference.[8]
List in a reference.[9]
Multi-level lists in a reference.[10]
Reference in a reference.[11]
Cite web edit
- John Doe: Script error: No such module "Vorlage:Internetquelle". In: Script error: No such module "Vorlage:Internetquelle". Open Publishing, 30. April 2005, abgerufen am 6. Juli 2005.
- John Doe: Script error: No such module "Vorlage:Internetquelle". In: Script error: No such module "Vorlage:Internetquelle". Open Publishing, 30. April 2005, abgerufen am 6. Juli 2005.
And inline in a reference. [12]
References list edit
- ^ Simple reference!
- ^ Bold text reference!
- ^ Multi-line reference!
- ^ In-line image in a reference!
- ^ Block-level image in a reference!
Test. - ^
This is a
Heading edit
in a reference!
- ^ Template in a reference!
- ^
- ^
- List
- in
- a
- reference!
- ^
- Multi-level
- lists
- 1
- in
- 2
- a
- lists
- reference!
- Multi-level
- ^ Reference[notes 1]
- ^ John Doe: Script error: No such module "Vorlage:Internetquelle". In: Script error: No such module "Vorlage:Internetquelle". Open Publishing, 30. April 2005, abgerufen am 6. Juli 2005.
Notes list edit
- ^ in a reference
See also edit
da:Sandkasse en:Sandpit et:Liivakast fi:Hiekkalaatikko (leikkipaikka) fr:Bac à sable hu:Homokozó is:Sandkassi it:Sabbionaia nn:Sandkasse no:Sandkasse pl:Piaskownica