Editing Template:Pow
Template page
More actions
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{expr:1 | ||
{{ | {{ifexpr:({{{2}}})>0|*({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})>1|*({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})>2|*({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})>3|*({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})>4|*({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})>5|*({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})>6|*({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})>7|*({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})>8|*({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})>9|*({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})>10|*({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})>11|*({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})>12|*({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})>13|*({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})>14|*({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})>15|*({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})>16|*({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})>17|*({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})>18|*({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})>19|*({{{1}}}) | ||
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | ||
{{ | {{ifexpr:({{{2}}})<0|/({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})<-1|/({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})<-2|/({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})<-3|/({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})<-4|/({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})<-5|/({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})<-6|/({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})<-7|/({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})<-8|/({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})<-9|/({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})<-10|/({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})<-11|/({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})<-12|/({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})<-13|/({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})<-14|/({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})<-15|/({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})<-16|/({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})<-17|/({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})<-18|/({{{1}}}) | ||
{{ | {{ifexpr:({{{2}}})<-19|/({{{1}}}) | ||
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
| Line 46: | Line 46: | ||
Allows a number be raised to a small integer power. | Allows a number be raised to a small integer power. | ||
; Syntax | ; Syntax<nowiki>:</nowiki> | ||
: <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|</nowiki></tt>''base''<tt><nowiki>|</nowiki></tt>''power''<tt><nowiki>}}</nowiki></tt> | |||
* The ''base'' and ''power'' can be any valid numeric expression. | * The ''base'' and ''power'' can be any valid numeric expression. | ||
; Note | ; Note<nowiki>:</nowiki> | ||
* Powers greater than 20 are treated as 20. | * Powers greater than 20 are treated as 20. | ||
* Powers less than -20 are treated as -20. | * Powers less than -20 are treated as -20. | ||
* Any decimals in the ''power'' are treated as the next lower integer value (e.g. 17.6 = 17 and -3.1 = -4). | * Any decimals in the ''power'' are treated as the next lower integer value (e.g. 17.6 = 17 and -3.1 = -4). | ||
; Example<nowiki>:</nowiki> | |||
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|2|5}}</nowiki></tt> = {{{{PAGENAME}}|2|5}} | |||
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|10|6}}</nowiki></tt> = {{{{PAGENAME}}|10|6}} | |||
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|10|-4}}</nowiki></tt> = {{{{PAGENAME}}|10|-4}} | |||
* <tt><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|5+5|6-10}}</nowiki></tt> = {{{{PAGENAME}}|5+5|6-10}} | |||
[[Category:Mathematical templates|{{PAGENAME}}]] | [[Category:Mathematical templates|{{PAGENAME}}]] | ||
[[Category:Templates using ParserFunctions|{{PAGENAME}}]] | [[Category:Templates using ParserFunctions|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> | ||