Module:Igenmod/doc: Difference between revisions
From Neodyland Wiki
More actions
m format |
m format |
||
| Line 8: | Line 8: | ||
* {{#Invoke:Igenmod|default}} returns either "v" 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|unspec }} returns nothing for SVG, "n" for anything else | ||
* {{#Invoke:Igenmod|categ }} returns either "SVG" for SVG, "PNG" 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|c_split}} transcludes the template of parm1 with every value of the "/"-splitting of parm2 | ||
* {{#Invoke:Igenmod| | * {{#Invoke:Igenmod|subst }} returns the input text with eventually the first character substitited | ||
* {{#Invoke:Igenmod| | * {{#Invoke:Igenmod|dotrepl}} returns the input text with eventually the last character substitited</pre><!-- | ||
* {{#Invoke:Igenmod|subst|testtext}} | * {{#Invoke:Igenmod|subst|testtext}} | ||
* {{#Invoke:Igenmod|subst|###ttext}} | * {{#Invoke:Igenmod|subst|###ttext}} | ||
| Line 18: | Line 18: | ||
* {{#Invoke:Igenmod|subst|:::ttext}} | * {{#Invoke:Igenmod|subst|:::ttext}} | ||
* {{#Invoke:Igenmod|subst|;;;ttext}}--> | * {{#Invoke:Igenmod|subst|;;;ttext}}--> | ||
<pre> | |||
------------ in alpha: | ------------ in alpha: | ||
* | * {{#Invoke:Igenmod|sortkey}} | ||
* {{#Invoke:Igenmod|getdate}} | * {{#Invoke:Igenmod|getdate}} | ||
* {{#Invoke:Igenmod|sysdate}} | * {{#Invoke:Igenmod|sysdate}} | ||
Revision as of 07:36, 10 October 2020
This module contains the functions needed by Image generation
* {{#Invoke:Igenmod|wrkdate}} returns the "creation date" of a file, the value given to the date parameter, yyyy-mm-dd
* {{#Invoke:Igenmod|invdate}} returns the "creation date" 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|subst }} returns the input text with eventually the first character substitited
* {{#Invoke:Igenmod|dotrepl}} returns the input text with eventually the last character substitited
------------ in alpha:
* {{#Invoke:Igenmod|sortkey}}
* {{#Invoke:Igenmod|getdate}}
* {{#Invoke:Igenmod|sysdate}}
* {{#Invoke:Igenmod|invtest}}
* {{#Invoke:Igenmod|cattest}}
* {{#Invoke:Igenmod|newfile|10}}
* {{#Invoke:Igenmod|inkscape}}
* {{#Invoke:Igenmod|compare}}