Template:StripFormatting: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#invoke: HTMLParse | strip_formatting | html={{{1}}}}}</includeonly><noinclude> Strips html formatting from a string, such as Qud text string. Example: <code>...")
 
mNo edit summary
 
Line 1: Line 1:
<includeonly>{{#invoke: HTMLParse | strip_formatting | html={{{1}}}}}</includeonly><noinclude>
<includeonly>{{#invoke: HTMLParse | strip_formatting | html={{{1}}}}}</includeonly><noinclude>
Strips html formatting from a string, such as Qud text string.


Strips html formatting from a string, such as Qud text string.
Example: <code><nowiki>{{StripFormatting |1=<span style="color:red;">help!</span>}}</nowiki></code>
 
Result: {{StripFormatting |1=<span style="color:red;">help!</span>}}


Example: <code><nowiki>{{StripFormatting | <span style="color:red;">help!</span>}}</nowiki></code>


Result: {{StripFormatting | <span style="color:red;">help!</span>}}
==Notes==
You must precede your template argument with <code>1=</code> if there is an equals within the argument itself.


[[Category:Formatting templates]]</noinclude>
[[Category:Formatting templates]]</noinclude>

Latest revision as of 20:18, 4 September 2019

Strips html formatting from a string, such as Qud text string.

Example: {{StripFormatting |1=<span style="color:red;">help!</span>}}

Result: help!


Notes

You must precede your template argument with 1= if there is an equals within the argument itself.