Template:FormatName

Revision as of 08:11, 19 January 2010 by Editor (talk | contribs)

{{#lua:

 name = stdin:match("[^&]+")
 name = string.gsub( name, " alpha%-", " α-" )
 name = string.gsub( name, " beta%-", " β-" )
 name = string.gsub( name, " gamma%-", " γ-" )
 name = string.gsub( name, " delta%-", " δ-" )
 name = string.gsub( name, " Delta%-", " Δ-" )
 name = string.gsub( name, "_([%d]) ", "%1 " )
 print(name)

|foo Delta-foo_2 fdol}}