On 1/6/09 7:39 PM, Tim Starling wrote:
Remember the dot wrote:
Hello,
The discussion about nstab-main and the main page has flared up again: http://en.wikipedia.org/wiki/MediaWiki_talk:Common.js#Main_Page_tab
It was suggested in bug 14267 that the contents of nstab-main could be cached with the page title, so that we could include a ParserFunctions workaround in it without having the parser function execute on every page load. What are your opinions on this?
I think a parser function that sets tab text directly would be better, e.g. {{#settab:nstab|Main Page}}{{#settab:talk|Main Page discussion}}
Hmm, this would require either parsing the page when you're on 'edit', 'history', 'watch' or other tabs, or storing that info elsewhere. Further requiring it to set both the article and the talk tabs means they can be inconsistent between the subject and talk pages.
-- brion