Module:ShowMath/doc: Difference between revisions

From DRMF
Jump to navigation Jump to search
imported>Physikerwelt
imported>Plastikspork
TFD closed as no consensus (XFDcloser)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Module rating |<!-- Values:  pre-alpha • alpha • beta • release • protected  --  If a rating not needed/relevant, delete this template call -->}}
{{replace||template|module}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
== Usage ==


<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|render|propertyID}}</code> renders math from a wikidata entry
<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|render|propertyID}}</code> renders math from a wikidata entry
<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|named|Page Title}}</code> renders the defining formula for a wikipage
== Testing ==
Copy and paste the following into any article and preview it (please don't save!):
<pre>
* - {{#invoke:ShowMath|render|P2534|}}
</pre>
In [[Pythagorean theorem]] you should get:
* - <math>c^2=a^2+b^2</math>


=== List of named formulae ===
<pre>
* {{#invoke:ShowMath|named|Pythagorean theorem}}
* {{#invoke:ShowMath|named|Euler's identity}}
* {{#invoke:ShowMath|named|Cauchy–Schwarz inequality}}
* {{#invoke:ShowMath|named|Minkowski inequality}}
</pre>
* {{#invoke:ShowMath|named|Pythagorean theorem}}
* {{#invoke:ShowMath|named|Euler's identity}}
* {{#invoke:ShowMath|named|Cauchy–Schwarz inequality}}
* {{#invoke:ShowMath|named|Minkowski inequality}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- Categories below this line, please; interwikis at Wikidata -->


}}</includeonly>
}}</includeonly>

Latest revision as of 01:47, 23 June 2018

Template:replace

Usage

{{#invoke:ShowMath|render|propertyID}} renders math from a wikidata entry {{#invoke:ShowMath|named|Page Title}} renders the defining formula for a wikipage

Testing

Copy and paste the following into any article and preview it (please don't save!):

* - {{#invoke:ShowMath|render|P2534|}}

In Pythagorean theorem you should get:

  • - Failed to parse (LaTeXML (experimental; uses MathML): Invalid response ("") from server "http://latexml:8080/convert/":): {\displaystyle c^2=a^2+b^2}

List of named formulae

* {{#invoke:ShowMath|named|Pythagorean theorem}}
* {{#invoke:ShowMath|named|Euler's identity}}
* {{#invoke:ShowMath|named|Cauchy–Schwarz inequality}}
* {{#invoke:ShowMath|named|Minkowski inequality}}
  • Script error: No such module "ShowMath".
  • Script error: No such module "ShowMath".
  • Script error: No such module "ShowMath".
  • Script error: No such module "ShowMath".