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

Jump to navigation Jump to search
Line 180: Line 180:
|sc(text)||text||Converts '''text''' to sentence case.<br>Example: sc('HELLO THERE!') = 'Hello there!'
|sc(text)||text||Converts '''text''' to sentence case.<br>Example: sc('HELLO THERE!') = 'Hello there!'
|-
|-
|?set(name, data)||nothing||Declares a new tag called name containing data, same as custom tags internally.<br>Example ?set('temp', 'text')
|set(name, data)||nothing||Declares a new variable called '''name''' containing '''data'''.<br>Example: set('temp', 'text')
|-
|-
|?split(text, find, index)||text||Splits text on find and returns the specified index. Index starts from 1.<br>Example ?split(ym, '-', 2)
|split(text, find, index)||text||Splits '''text''' on '''find''' and returns the specified '''index'''. Index starts from 1.<br>Example: split('2011-05-19', '-', 2) = 05
|-
|-
|?start(text, find)||boolean||Checks if find matches the start of text.<br>Example ?start(y, '199')
|start(text, find)||boolean||Checks if '''find''' matches the start of '''text'''.<br>Example: start('1999', '199') = true
|-
|-
|?tc(text)||text||Converts text to title case.<br>Example ?tc(a)
|tc(text)||text||Converts '''text''' to title case.<br>Example: tc('HELLO THERE!') = 'Hello There!'
|-
|-
|?uc(text)||text||Converts text to upper case.<br>Example ?uc(crc)
|uc(text)||text||Converts '''text''' to upper case.<br>Example: uc('abcd') = 'ABCD'
|}
|}


254

edits

Navigation menu

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