Difference between revisions of "Scribunto/Test"

From PKC
Jump to navigation Jump to search
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#invoke:Test|hello_world|The FIRST ARGUMENT |THE 2nd ARG|The 3rd Arg}}
{{#invoke:Test|hello_world|The FIRST ARGUMENT |THE 2nd ARG|The 3rd Arg}}


<math>\pi</math>-Calculus
 
=Reverse string function=
{{#invoke:Test|reverseResult|"123ABC"}}


=Math type setting instruction must be produced by the function=
=Math type setting instruction must be produced by the function=
{{#invoke:Test|greek_letter|pi}}-Calculus
#{{#invoke:Test|greek_letter|lambda}}-Calculus
#{{#invoke:Test|greek_letter|pi}}-Calculus
#{{#invoke:Test|greek_letter|nu}}-Calculus


=Raw String=
=Raw String=
Line 10: Line 14:


=Selector=
=Selector=
{{#invoke:Test|selector|1|<math>\pi</math>|<math>\beta</math>}}-Calculus
{{#invoke:Test|selector|2|<math>\pi</math>|<math>\beta</math>}}
 
{{#invoke:Test|selector|2|{{CURRENTDAY}}|{{CURRENTMONTH}}}}


=Multi-Argument=
=Multi-Argument=
Line 16: Line 22:


=Arithmetic=
=Arithmetic=
<nowiki>{{#invoke:Test|arithmetic|5|4|3}}</nowiki>
{{#invoke:Test|arithmetic|5|4|3}} is the identity sum
{{#invoke:Test|arithmetic|5|4|3}} is the identity sum


Line 22: Line 29:


=Repetition=
=Repetition=
{{#invoke:Test|repetition|8|4|3}}  
{{#invoke:Test|repetition|3|4|3}}  
 
=Statistics=
{{#invoke:Test|pagesInCategory|Resource|subcats|3}}
 
 




{{PAGENAME}}
{{PAGENAME}}

Latest revision as of 15:10, 9 January 2022

Hello, world! from The 3rd Arg-The FIRST ARGUMENT -THE 2nd ARG


Reverse string function

"CBA321"

Math type setting instruction must be produced by the function

  1. -Calculus
  2. -Calculus
  3. -Calculus

Raw String

Selector

11

Multi-Argument

1 , ,-Calculus

Arithmetic

{{#invoke:Test|arithmetic|5|4|3}}

12 is the identity sum

Trig Function

-2.0510342851533e-10 is the cos of pi

Repetition

4, 3, 1, 2, 

Statistics

12



Scribunto/Test