Template:FormatName: Difference between revisions

No edit summary
mNo 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%d.]+)", "%1<sub>%2</sub>" )
   name = string.gsub( name, "([%a%] ])_([D%d.]+)", "%1<sub>%2</sub>" )
   name = string.gsub( name, "([%a ])^([D%d.]+)", "%1<sup>%2</sup>" )
   name = string.gsub( name, "([%a%] ])^([D%d.]+)", "%1<sup>%2</sup>" )
---GREEK LETTERS---
---GREEK LETTERS---
   name = string.gsub (name, '([%a"]+)',  
   name = string.gsub (name, '([%a"]+)',  

Revision as of 08:49, 24 February 2010