AniDB O'Matic - Documentation: Local file renaming: Difference between revisions

Line 154: Line 154:
===Function tags===
===Function tags===
{|
{|
|contains(find, text)||boolean||Returns true if ''find'' is found in ''text''. Case sensitive.<br>Example: contains('bcd', 'abcdef') = true
|contains(find, text)||boolean||Returns true if '''find''' is found in '''text'''. Case sensitive.<br>Example: contains('bcd', 'abcdef') = true
|-
|-
|if(test, trueval[, falseval])||any||If statement, returns ''trueval'' if ''test'' is true, otherwise returns ''falseval''.<br> Example: if(23=23, 'equal', 'not equal') = 'equal'
|if(test, trueval[, falseval])||any||If statement, returns '''trueval''' if '''test''' is true, otherwise returns '''falseval'''.<br> Example: if(23=23, 'equal', 'not equal') = 'equal'
|-
|-
|in(find, text...)||boolean||Checks if ''find'' is present in a number of ''text'' parameters.<br>Example: in('bb', 'aa', 'bb', 'cc', 'dd') = true
|in(find, text...)||boolean||Checks if '''find''' is present in a number of '''text''' parameters.<br>Example: in('bb', 'aa', 'bb', 'cc', 'dd') = true
|-
|-
|join(glue, text...)||text||Joins together two or more ''text''s, empty parameters are ignored with no glue added.<br>Example: join(' ', 'a', 'b', 'c') = 'a b c'
|join(glue, text...)||text||Joins together two or more '''text'''s, empty parameters are ignored with no glue added.<br>Example: join(' ', 'a', 'b', 'c') = 'a b c'
|-
|-
|lc(text)||text||Converts ''text'' to lower case.<br>Example: lc('ABCDEF') = 'abcdef'
|lc(text)||text||Converts '''text''' to lower case.<br>Example: lc('ABCDEF') = 'abcdef'
|-
|-
|length(text)||number||Returns the length of ''text''.<br>Example: length('abcdef') = 6
|length(text)||number||Returns the length of '''text'''.<br>Example: length('abcdef') = 6
|-
|-
|limit(text, length[, end])||text||Limits the length of ''text'' to at most ''length'' characters. ''End'' is optional, if specified and the text is cropped, it'll be added at the end of text.<br>Example: limit(e, 100) or limit('abcdefghijklmnop', 7, '...') = 'abcd...'
|limit(text, length[, end])||text||Limits the length of '''text''' to at most '''length''' characters. '''End''' is optional, if specified and the text is cropped, it'll be added at the end of text.<br>Example: limit(e, 100) or limit('abcdefghijklmnop', 7, '...') = 'abcd...'
|-
|-
|?min(number...)||number||Returns the lowest supplied number<br>Example ?min(1, 7, 3, 9, 2) returns 1
|?min(number...)||number||Returns the lowest supplied number<br>Example ?min(1, 7, 3, 9, 2) returns 1
254

edits

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.