FiM++ Community Wiki

Editing

Paragraph Declaration

1
  • The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit. If you are undoing an edit that is …
Latest revision Your text
Line 13: Line 13:
 
Parameters ([[values]] that are sent to the paragraph) follow the return type and the word "{{code|keyword|using}}" and are separated from each other with "{{code|keyword|and}}".
 
Parameters ([[values]] that are sent to the paragraph) follow the return type and the word "{{code|keyword|using}}" and are separated from each other with "{{code|keyword|and}}".
   
* {{codeblock|{{code|keyword|I learned}}{{tag|whitespace}}{{tag|paragraph|paragraph name}}{{tag|whitespace}}{{tag|keyword|using}}{{tag|whitespace}}{{tag|type}}{{tag|whitespace}}{{tag|variable}}{{tag|punctuation}}}}
+
* {{codeblock|{{code|keyword|I learned}}{{tag|whitespace}}{{tag|paragraph|paragraph name}}{{tag|whitespace}}{{tag|keyword|using}}{{tag|whitespace}}{{tag|type}}{{tag|whitespace}}{{tag|value}}{{tag|punctuation}}}}
* {{codeblock|{{code|keyword|<strong>Today</strong> I learned}}{{tag|whitespace}}{{tag|paragraph|paragraph name}}{{tag|whitespace}}{{tag|keyword|using}}{{tag|whitespace}}{{tag|type}}{{tag|whitespace}}{{tag|variable}}{{tag|punctuation}}}}
+
* {{codeblock|{{code|keyword|<strong>Today</strong> I learned}}{{tag|whitespace}}{{tag|paragraph|paragraph name}}{{tag|whitespace}}{{tag|keyword|using}}{{tag|whitespace}}{{tag|type}}{{tag|punctuation}}}}
   
 
=== Examples ===
 
=== Examples ===
 
Plain declaration (no return, no parameters):
 
Plain declaration (no return, no parameters):
: {{codeblock|{{code|keyword|I learned}}{{code|whitespace|&nbsp;}}{{code|paragraph|how to greet you}}{{code|punctuation|.}}}}
+
: {{codeblock|{{code|keyword|I learned}}{{code|whitespace|&nbsp;}}{{code|paragraph|how to multiply}}{{code|punctuation|.}}}}
   
 
Declaration for a paragraph which returns a [[number]]:
 
Declaration for a paragraph which returns a [[number]]:
: {{codeblock|{{code|keyword|I learned}}{{code|whitespace|&nbsp;}}{{code|paragraph|to randomize}}{{code|whitespace|&nbsp;}}{{code|keyword|with}}{{code|whitespace|&nbsp;}}{{code|type|a number}}{{code|punctuation|.}}}}
+
: {{codeblock|{{code|keyword|I learned}}{{code|whitespace|&nbsp;}}{{code|paragraph|how to multiply}}{{code|whitespace|&nbsp;}}{{code|keyword|with}}{{code|whitespace|&nbsp;}}{{code|type|a number}}{{code|punctuation|.}}}}
   
 
Declaration for a paragraph which takes in an [[arrays|array]] of numbers called "{{code|variable|Fibonacci}}":
 
Declaration for a paragraph which takes in an [[arrays|array]] of numbers called "{{code|variable|Fibonacci}}":
  Loading editor
Below are some commonly used wiki markup codes. Simply click on what you want to use and it will appear in the edit box above.

View this template