Toggle menu
15
236
70
27.6K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 17:46, 22 February 2025 by Prd (talk | contribs) (Created page with "{{Documentation subpage}} {{lua|Module:Unstrip}} This function processes the content provided by {{Para|1}} using the mw.text.unstripNoWiki function. It extracts the text from any {{Tag|nowiki}} tags, so the nowiki text will not show as wiki text. Templates, parser functions, extension tags, etc. inside the {{Tag|nowiki}} tags will not be expanded (unless {{Tl|Expand wikitext}} is used). == Usage ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function processes the content provided by |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]

References

  1. Hello!
  2. Hello!
  3. Hello!

See also