Difference between revisions of "Demo:CodeWrapper"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
One may also use [[Lua]] to trim the textual content of the given input string: | One may also use [[Lua]] to trim the textual content of the given input string: | ||
{{#invoke:CodeWrapper|trimText|abcde}} | {{#invoke:CodeWrapper|trimText| . _ asd abcde fd _ }} |
Revision as of 15:08, 18 May 2022
This page shows how to include some page in its original form, without passing through the MediaWiki parser.
For example the following code segment {{:Demo:SwitchStatement7}}
would render a a result like following:
{{#switch: {{#expr: 3+2*1}} | 1 = one | 2 = two | 3|4|5 = any of 3–5 | 6 = six | 7 = {{uc:sEveN}} <!--lowercase--> | #default = other }}
In fact, if one tries to transclude a MediaWiki page in its original textual form without having MediaWiki parser parsing and interpreting the wiki code. One can do the following:
{{#switch: {{#expr: 3+2*1}} | 1 = one | 2 = two | 3|4|5 = any of 3–5 | 6 = six | 7 = {{uc:sEveN}} <!--lowercase--> | #default = other }}
One may also use Lua to trim the textual content of the given input string:
. _ asd abcde fd _