Module:ShowMath/doc: Difference between revisions
Jump to navigation
Jump to search
imported>Pppery Tfd tag |
imported>Plastikspork TFD closed as no consensus (XFDcloser) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{replace| | {{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 == | == 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> |
Latest revision as of 01:47, 23 June 2018
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".