Difference between revisions of "User:Kebap"
Jump to navigation
Jump to search
(→Projects: test edit for discord integration) |
|||
Line 27: | Line 27: | ||
==functionName== | ==functionName== | ||
− | ;functionName(arg1, arg2) | + | ;functionName(arg1, arg2, [optionalArg3]) |
− | : What the function does. | + | : What the function does. In this case, it is just a non-existing function with the only purpose to show, how to write documentation for functions |
: Returns whatever the function returns. | : Returns whatever the function returns. | ||
: See also: [[Manual:Lua_Functions#paste|paste]] | : See also: [[Manual:Lua_Functions#paste|paste]] | ||
Line 38: | Line 38: | ||
* arg2: | * arg2: | ||
: What arg2 is/does. Passed as a string. | : What arg2 is/does. Passed as a string. | ||
+ | * optionalArg3 | ||
+ | : (optional) The name needn't be telling. Relevant is to mark optional arguments at the start of this line (with text "optional" in brackets) and in the function definition line (with [these] brackets) | ||
<br/> | <br/> | ||
Revision as of 21:17, 4 August 2018
About me
Mudlet user and script developer, hailing from MorgenGrauen (German).
Projects
- User:Kebap/documentation-in-wiki
- currently on hold
- Establish translation-infrastructure for Mudlet universe
- Create PR to clean up feedback from Crowdin - see issue 1802
- Improve documentation for translators
- How to translate plural forms in crowdin
- Improve documentation for developers
- How to handle special characters at start or end of translateable text
- Learn how to write working i18n style code for English hacks like "next %n time(s)"
- QT documentation thereof: http://doc.qt.io/qt-5/i18n-source-translation.html#handling-plurals
- New structure for wiki manual
- Graphical overview of Release dates
- Add MorgenGrauen to Mudlet MUDs
- review recommendations from Listing_Your_MUD
- Enable Discord group "Testers" to (de-)register themselves via Discord reactions
- Create PR to clean up texts in source - see github issue 1801
- Learn how to make small PR like above with Smart Git instead of github web interface
Examples for Wiki formatting
functionName
- functionName(arg1, arg2, [optionalArg3])
- What the function does. In this case, it is just a non-existing function with the only purpose to show, how to write documentation for functions
- Returns whatever the function returns.
- See also: paste
- Parameters
- arg1:
- What arg1 is/does. Passed as a string.
- arg2:
- What arg2 is/does. Passed as a string.
- optionalArg3
- (optional) The name needn't be telling. Relevant is to mark optional arguments at the start of this line (with text "optional" in brackets) and in the function definition line (with [these] brackets)
- Examples
<lua> --a small example snippet of the function in action --the comments up top should introduce it/explain what the snippet does functionName("arg1", "arg2") </lua>