Module:Igenmod/doc: Difference between revisions
From Neodyland Wiki
More actions
m -tag |
m +link |
||
| Line 12: | Line 12: | ||
* {{#Invoke:Igenmod|t_split}} "/"-splitting of parm1, transcludes the 1st split of parm1 with all the other values | * {{#Invoke:Igenmod|t_split}} "/"-splitting of parm1, transcludes the 1st split of parm1 with all the other values | ||
* {{#Invoke:Igenmod|subst }} returns the input text with eventually the first character substitited | * {{#Invoke:Igenmod|subst }} returns the input text with eventually the first character substitited | ||
* {{#Invoke:Igenmod|dotrepl}} returns the input text with eventually the last character substitited</pre> | * {{#Invoke:Igenmod|dotrepl}} returns the input text with eventually the last character substitited</pre> | ||
* {{#Invoke:Igenmod| | * {{#Invoke:Igenmod|remprf }} returns the input text with eventually a special prefix removed | ||
* {{#Invoke:Igenmod| | * {{#Invoke:Igenmod|inkscape}}<!-- | ||
* {{#Invoke:Igenmod|subst| | * {{#Invoke:Igenmod|subst|testtext}}--> | ||
<pre> | <pre> | ||
------------ functions in alpha: | ------------ functions in alpha: | ||
| Line 26: | Line 24: | ||
* {{#Invoke:Igenmod|cattest}} | * {{#Invoke:Igenmod|cattest}} | ||
* {{#Invoke:Igenmod|newfile|10}} | * {{#Invoke:Igenmod|newfile|10}} | ||
* {{#Invoke:Igenmod|compare}} | * {{#Invoke:Igenmod|compare}} | ||
</pre> | </pre> | ||
Revision as of 06:27, 11 May 2021
This module contains the functions needed by Image generation
* {{#Invoke:Igenmod|wrkdate}} returns the <s>"creation date"</s> of a file, the value given to the date parameter, yyyy-mm-dd
* {{#Invoke:Igenmod|invdate}} returns the <s>"creation date"</s> inverted: a string 20301231 - yyyymmdd
* {{#Invoke:Igenmod|exttext}} returns the file extension uppercased
* {{#Invoke:Igenmod|extcode}} returns either "s" for SVG, "n" for anything else
* {{#Invoke:Igenmod|default}} returns either "v" for SVG, "n" for anything else
* {{#Invoke:Igenmod|unspec }} returns nothing for SVG, "n" for anything else
* {{#Invoke:Igenmod|categ }} returns either "SVG" for SVG, "PNG" for anything else
* {{#Invoke:Igenmod|split }} transcludes the template of parm2 (def: cbox) with the "/"-split values of parm1
* {{#Invoke:Igenmod|c_split}} transcludes the template of parm1 with every value of the "/"-splitting of parm2
* {{#Invoke:Igenmod|t_split}} "/"-splitting of parm1, transcludes the 1st split of parm1 with all the other values
* {{#Invoke:Igenmod|subst }} returns the input text with eventually the first character substitited
* {{#Invoke:Igenmod|dotrepl}} returns the input text with eventually the last character substitited
- Lua error: bad argument #1 to 'sub' (string expected, got nil). returns the input text with eventually a special prefix removed
- Lua error: expandTemplate: template "=" does not exist.
------------ functions in alpha:
* {{#Invoke:Igenmod|sortkey}}
* {{#Invoke:Igenmod|getdate}}
* {{#Invoke:Igenmod|sysdate}}
* {{#Invoke:Igenmod|invtest}}
* {{#Invoke:Igenmod|cattest}}
* {{#Invoke:Igenmod|newfile|10}}
* {{#Invoke:Igenmod|compare}}