Last modified: 2011-03-13 18:05:21 UTC
In the software, some system messages use the magic word {{SITENAME}}, though in cases of widely used messages, like for example [[MediaWiki:Tagline]] or [[MediaWiki:Tooltip-search]], it is generally recommended to replace the magic word locally with the actual sitename because the parsing is quite difficult. Now I'm wondering, since {{SITENAME}} generally always displays the value of global $wgSiteName, if it might not be easier to directly give the $wgSiteName variable to the wfMsg() functions in the software, instead of having to get the message through the parser, where the call to $wgSiteName will have to happen anyway. So, for example, a message like "From {{SITENAME}}" would b changed to "From $1", looking in the software like that (correct me if I'm wrong): wfMsgExt( 'tagline', 'parse') -> wfMsg('tagline', $wgSiteName).
I wouldn't bother. It is only very few wikis where it makes any difference.