Template:Str us2sp: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
m ("NoneBreakingSpace" to "Normal space")
m (upgrade to actually change the underscore to a real space in its output - (any special character-code like "<nowiki> <nowiki>" is actually passed on as such, only to be converted to a space in the last render-to-display part))
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#replace:{{{1}}}|_|&#160}}</includeonly><noinclude>{{documentation}}</noinclude>
<includeonly>{{#replace:{{#replace:{{{1}}}|_|• •}}|•|}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 00:51, 19 May 2018

Template documentation (for the template shown above, sometimes hidden or invisible)

Info

General template to change Underscores to Spaces.
Limited to around 600 characters. (might be 1000 Unicode bytes)
Uses "Normal Space" as replacement. (Instead of the "NonebreakingSpace" type.)
Used in conjunction with Str_sp2us template to easily maintain normal in-string spaces, when needed.

Usage

{{Str_us2sp|String}}

Example

{{Str_us2sp|Some_string_with_underscores}}
Output: Some string with underscores

Visit Template:Str us2sp/doc to edit this text! (How does this work?)