Template:Unstrip/doc

Revision as of 17:22, 18 October 2020 by Caleb Cooper (talk | contribs) (Created page with "{{Documentation subpage}} {{lua|Module:Unstrip}} {{Commons Import}} Processes the input using mw.text.unstrip f...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This content is in the Template Namespace. Used for page-templates that can be re-used across the wiki.

Processes the input using mw.text.unstrip function.

Removes any <nowiki>...</nowiki> tag, so the nowiki-text will not show as wiki-text. Templates inside the tags will not be expanded (see examples below).

{{Unstrip|Some text <nowiki>wikitext</nowiki> and more some text.}}

Usage

Example:

Regular sentence (some ''nowiki-text'' here {{convert|1|km|mi|abbr=on}}).

Usually (no template):

  • Regular sentence <nowiki>(some ''nowiki-text'' here {{convert|1|km|mi|abbr=on}})</nowiki>.
Regular sentence (some ''nowiki-text'' here {{convert|1|km|mi|abbr=on}}).


Use {{Unstrip}}:

  • {{unstrip|Regular sentence <nowiki>(some ''nowiki-text'' here {{convert|1|km|mi|abbr=on}})</nowiki>.}}
Regular sentence (some nowiki-text here {{convert|1|km|mi|abbr=on}}).

See also