Template:Plain space/doc: Difference between revisions
Template page
More actions
Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> == Usage == {{tlx|1={{BASEPAGENAME}}|2=''string''}}<br /> {{tlx|1={{BASEPAGENAME}}|2=1=''string''}} Replaces a variety of whitespace characters and HTML entities representing whitespace characters in ''<code>string</code>'' with plain ordinary spaces. This template is designed to be used in template construction to..." |
(No difference)
|
Latest revision as of 23:14, 22 February 2025
This is a documentation subpage for Template:Plain space. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
{{Plain space|string}}
{{Plain space|1=string}}
Replaces a variety of whitespace characters and HTML entities representing whitespace characters in string
with plain ordinary spaces. This template is designed to be used in template construction to sanitize inputs to other templates or parser functions such as {{#time}}.
This template recognizes the following:
-  
-  
-  
-  
-
-  
- All ASCII space characters recognized by the Scribunto %s character class
Templates such as {{Template:Spaces}} or {{Sp}} will not be replaced by this template.
Note: this template uses the ¬
character as an internal marker. Any instances of ¬
in string
will be removed by this template.