Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1431100
stringFunctionTests.txt
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
852 B
Referenced Files
None
Subscribers
None
stringFunctionTests.txt
View Options
!! Version 2
# Force the test runner to ensure the extension is loaded
# Use '#switch' to do the detection, since we might not have
# string functions enabled (yet) -- they are force-enabled on a per-test
# basis by the ParserTestGlobals hook.
!! functionhooks
switch
!! endfunctionhooks
# @todo expand
!! test
#len
!! wikitext
{{#len:}}
{{#len:0}}
{{#len:test}}
!! html
<p>0
1
4
</p>
!! end
!! test
#urldecode
!! wikitext
{{#urldecode:}}
{{#urldecode:foo%20bar}}
{{#urldecode:%D0%9C%D0%B5%D0%B4%D0%B8%D0%B0%D0%92%D0%B8%D0%BA%D0%B8}}
{{#urldecode: some unescaped string}}
!! html
<p>foo bar
МедиаВики
some unescaped string
</p>
!! end
!! test
#pos
!! wikitext
{{#pos:Žmržlina|žlina}}
{{#pos:stringstring|str|4}}
!! html
<p>3
6
</p>
!! end
!! test
#pos with too large offset (T209600)
!! wikitext
{{#pos:FooBar|Foo|32}}
!! html
!! end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 20:05 (3 h, 12 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f8/0a/9b13a89908c50f584e2c014e39a3
Default Alt Text
stringFunctionTests.txt (852 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment