Difference between revisions of "Scribunto/Test"

From PKC
Jump to navigation Jump to search
 
(16 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=
=Reverse string function=
{{#invoke:Test|reverse|"abcdefg"}}
{{#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 13: 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 30: Line 33:
=Statistics=
=Statistics=
{{#invoke:Test|pagesInCategory|Resource|subcats|3}}  
{{#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