Module:Ustring/doc: Difference between revisions

Content deleted Content added
Document s1, s2, etc, parameters
+Cat
 
(7 intermediate revisions by 4 users not shown)
Line 1:
{{used in system}}
{{cascade-protected template|page=module}}
{{Module rating |release<!-- Values: pre-alpha • alpha • beta • release • protected -- If a rating not needed/relevant, delete this template call -->}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
Line 15 ⟶ 17:
|-
| <code>"0123"</code> || {{para|s1|0123}} || If you don't need to preserve whitespace use {{para|s1}} etc.
|-
| <code>"0123"</code> || {{para|1|\0123}} || If you don't need to preserve whitespace explicitly use {{para|1}} etc.
|-
| In another template, to pass its parameter <code>{{{1}}}</code>, preserving whitespace || {{para||\{{{1}}}}} || Must provide the <code>\</code> with unknown string input.
|-
| In another template, to pass its parameter <code>{{{1}}}</code>, stripping whitespace || {{para|s1|{{{1}}}}} ||
|-
| In another template, to pass its parameter <code>{{{1}}}</code>, stripping whitespace || {{para|1|<nowiki>\{{#if:1|{{{1}}}}}</nowiki>}} ||
|}
 
You can also wrap results in tags. All non-numberother indexedunused arguments will be passed to {{luaref|frame:extensionTag}}
 
== Usage ==
Line 99 ⟶ 105:
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Modules that manipulate strings|*]]
[[Category:Template metamodules|*]]
}}</includeonly>