Difference between revisions of "FormatSQL"

From Sega Retro

(Created page with "{{#replace:{{{1|}}}|"|:qm:}}<noinclude> The cargo extension has some trouble with the " character. Rather than fight it, this template converts it to ":qm" before storing, wit...")
 
Line 5: Line 5:
 
<pre>{{FormatSQL|James "Buster" Douglas Knockout Boxing}}</pre>
 
<pre>{{FormatSQL|James "Buster" Douglas Knockout Boxing}}</pre>
 
{{FormatSQL|James "Buster" Douglas Knockout Boxing}}
 
{{FormatSQL|James "Buster" Douglas Knockout Boxing}}
[[Category:Sega Retro templates]]</noinclude>
+
[[Category:Templates]]</noinclude>

Revision as of 14:00, 1 January 2022

The cargo extension has some trouble with the " character. Rather than fight it, this template converts it to ":qm" before storing, with the view of using Template:UnformatSQL after querying.

e.g.

{{FormatSQL|James "Buster" Douglas Knockout Boxing}}

James :qm:Buster:qm: Douglas Knockout Boxing