Template:UnstripNoWiki: Difference between revisions
m Protected "Template:UnstripNoWiki": High-risk template or module: 2810 transclusions (more info) ([Edit=Require extended confirmed access] (indefinite) [Move=Require extended confirmed access] (indefinite)) |
m 1 revision imported |
||
(No difference)
| |||
Latest revision as of 11:12, 22 September 2026
{{{1}}}
| File:Lua-Logo.svg | This template uses Lua: |
This function processes the content provided by <syntaxhighlight lang="wikitext" inline style="display: none;" />|1= using the mw.text.unstripNoWiki function. It extracts the text from any <nowiki>...</nowiki> tags, so the nowiki text will not show as wiki text. Templates, parser functions, extension tags, etc. inside the <nowiki>...</nowiki> tags will not be expanded (unless {{Expand wikitext}} is used).
Usage
{{UnstripNoWiki|Some <nowiki>''wikitext''</nowiki> here}} → Some wikitext here
Examples
Without this template: Regular sentence <nowiki>(some ''nowiki-text'' here {{convert|1|km|mi|abbr=on}})</nowiki>.<ref>Hello!</ref> → Regular sentence (some ''nowiki-text'' here {{convert|1|km|mi|abbr=on}}).[1]
With {{UnstripNoWiki}}: {{Unstrip|Regular sentence <nowiki>(some ''nowiki-text'' here {{convert|1|km|mi|abbr=on}})</nowiki>.<ref>Hello!</ref>}} → Regular sentence (some nowiki-text here {{convert|1|km|mi|abbr=on}}).[2]
With {{UnstripNoWiki}} and {{Expand wikitext}}: {{Expand wikitext|{{Unstrip|Regular sentence <nowiki>(some ''nowiki-text'' here {{convert|1|km|mi|abbr=on}})</nowiki>.<ref>Hello!</ref>}}}} → Regular sentence (some nowiki-text here 1 km (0.62 mi)).[3]