SandBox: Difference between revisions

interwiki
ArrowHead294 (talk | contribs)
mNo edit summary
 
(55 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{SandBox please edit after this line}}
[[Category:Sandboxes]] {{SandBox please edit after this line}}


== #expr ==
~~<noinclude />~~
[https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##expr Help:Extension:ParserFunctions - MediaWiki &#35;expr]


We can build a cent function:
833.090{{c}}
 
<nowiki>* {{#expr: ln (9/8) / ln 2 * 1200}}
* {{#expr: ln (3/2) / ln 2 * 1200}}
* {{#expr: ln (5/4) / ln 2 * 1200}}</nowiki>
 
* {{#expr: ln (9/8) / ln 2 * 1200}}
* {{#expr: ln (3/2) / ln 2 * 1200}}
* {{#expr: ln (5/4) / ln 2 * 1200}}
 
but for formatting rounded results, it would be good to use [https://www.mediawiki.org/wiki/Extension:NumberFormat Extension&#58;NumberFormat - MediaWiki]
 
... which is currently not available (it's displaying just the code I typed):
 
{{#number_format:12 345 678,055555|_|.||,}}
 
'''The Problem''' that can be solved by <code><nowiki>{{#number_format: [...]</nowiki></code> is that
<code><nowiki> {{#expr: (ln (3/2) / ln 2 * 1200) round 5}}</nowiki></code> gives us <tt>{{#expr: (ln (3/2) / ln 2 * 1200) round 5}}</tt> instead of <tt>701.95500</tt> if 5 decimals are requested, as indicated by the <tt>5</tt> after <tt>round</tt>.
 
== 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 <br> broken by just <code><nowiki><br></nowiki></code> (instead of <code><nowiki><br/></nowiki></code>).
 
...and this really causes <code><nowiki><br></nowiki></code> within the produced HTML. But why?
 
== Math ==
 
Is not supported?
 
<math>3^2</math>
 
Oh it is!
 
== Wikipedia ==
This is an inter-wiki link to Wikipedia: [[wikipedia:Indeterminate form]].