SandBox

From Xenharmonic Wiki
Jump to: navigation, search


This is the sandbox. To experiment with editing, click on the [Edit] tab.

#expr

Help:Extension:ParserFunctions - MediaWiki #expr

We can build a cent function:

* {{#expr: ln (9/8) / ln 2 * 1200}}
* {{#expr: ln (3/2) / ln 2 * 1200}}
* {{#expr: ln (5/4) / ln 2 * 1200}}
  • 203.91000173077
  • 701.95500086539
  • 386.31371386483

but for formatting rounded results, it would be good to use Extension:NumberFormat - MediaWiki

... which is currently not available (it's displaying just the code I typed):

12345678.055555

The Problem that can be solved by {{#number_format: [...] is that {{#expr: (ln (3/2) / ln 2 * 1200) round 5}} gives us 701.955 instead of 701.95500 if 5 decimals are requested, as indicated by the 5 after round.

H2 heading

This is text in the H2 heading.

Item
Description
Item
Description

I found that fonts and font heights could be slightly better adjusted to visually separate bold typeface from headings H4 and below. Also H4, H5, and H6 seem to be indistinguishable.

H3 heading A

This is text in the H3 heading. This is a description list

Item
Description
Item
Description

This is just bold text

H4 heading A

This is text in the H4 heading.

Item
Description
Item
Description

This is just bold text

H5 heading A

This is text in the H5 heading.

Item
Description
Item
Description

This is just bold text

H5 heading B

This is text in the H5 heading.

Item
Description
Item
Description

This is just bold text

H6 heading A

This is text in the H6 heading.

Item
Description
Item
Description

This is just bold text

H6 heading B

This is text in the H6 heading.

Item
Description
Item
Description

This is just bold text

H5 heading C

This is text in the H5 heading.

Item
Description
Item
Description

This is just bold text

H4 heading B

This is text in the H4 heading.

Item
Description
Item
Description

This is just bold text

H3 heading B

This is text in the H3 heading. This is a description list

Item
Description
Item
Description

MediaWiki vs. HTML

This is a line
broken by just <br> (instead of <br/>).

...and this really causes <br> within the produced HTML. But why?