Difference between revisions of "FormatCommas"

From Sega Retro

Line 9: Line 9:
 
|#default={{#vardefine:return|{{#var:return}}{{#var:currentchar}}}}
 
|#default={{#vardefine:return|{{#var:return}}{{#var:currentchar}}}}
 
}}{{incvar|i}}
 
}}{{incvar|i}}
}}{{#replace:{{#replace:{{#var:return}}|_|<nowiki/> <nowiki/>}}|,,|_}}{{clearvar|i|input|return}}</includeonly><noinclude>When storing names, [[Template:Company]] splits by commas. But some companies have commas in their names.
+
}}{{#replace:{{#replace:{{#var:return}}|_|<nowiki/> <nowiki/>}}|,,|_}}{{clearvar|i|input|return|currentchar}}</includeonly><noinclude>When storing names, [[Template:Company]] splits by commas. But some companies have commas in their names.
  
 
This template turns those commas into a placeholder character (_) to be swapped later.
 
This template turns those commas into a placeholder character (_) to be swapped later.

Revision as of 03:28, 13 September 2024

When storing names, Template:Company splits by commas. But some companies have commas in their names.

This template turns those commas into a placeholder character (_) to be swapped later.

{{FormatCommas|[[Club Specialty Overseas, Inc.]], [[Sega Inc.]]}}

Club Specialty Overseas_ Inc., Sega Inc.