Template:FormatName

Revision as of 08:40, 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%d?) ", "%1 " )
 name = string.gsub( name, "^(%d%d?]) ", "%1 " )
 print(name)

|foo Delta-foo_21 fdol}}