Module:ShowMath/doc: Difference between revisions

From DRMF
Jump to navigation Jump to search
imported>Plastikspork
Relisted
imported>Physikerwelt
No edit summary
Line 4: Line 4:


<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 ==
== Testing ==
Copy and paste the following into any article and preview it (please don't save!):
Copy and paste the following into any article and preview it (please don't save!):
Line 12: Line 13:
* - <math>c^2=a^2+b^2</math>
* - <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>

Revision as of 13:07, 17 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".