Template:FormatName: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 37: | Line 37: | ||
name = string.gsub( name, "(%a)_{([%d.,%a]+)}", "%1<sub>%2</sub>" ) | name = string.gsub( name, "(%a)_{([%d.,%a]+)}", "%1<sub>%2</sub>" ) | ||
name = string.gsub( name, "(%a)^{([%d.,%a]+)}", "%1<sup>%2</sup>" ) | name = string.gsub( name, "(%a)^{([%d.,%a]+)}", "%1<sup>%2</sup>" ) | ||
name = string.gsub( name, "(%a)_([%d.]+)", "%1<sub>%2</sub>" ) | name = string.gsub( name, "([%a ])_([D%d.]+)", "%1<sub>%2</sub>" ) | ||
name = string.gsub( name, "^([%d.]+)", "<sup>% | name = string.gsub( name, "([%a ])^([%d.]+)", "%1<sup>%2</sup>" ) | ||
---GREEK LETTERS--- | ---GREEK LETTERS--- | ||
name = string.gsub (name, '([%a"]+)', | name = string.gsub (name, '([%a"]+)', |