MediaWiki:Topic.js

if (mw.config.get("wgCanonicalNamespace") == "Thread") { tags = []; var title = $(".msg-title a").text.replace(/\[(.+?)\]/g, function($0, $1) { tags.push($1) }); var ptag = tags[0]; switch (ptag) { case "Discussion": addNotification("This is a discussion thread You are free to debate ideas and ask questions, but please keep on topic."); break; case "Vote": addNotification("This is a voting thread Please only leave one reply indicating whether you support, oppose, or are neutral to the proposal, and a reason why. Questions should be directed to the creator of the thread privately."); break; default: break; } }

function addNotification(text) { $('.replies').prepend(' \	 \		 \			 \				 \					 '+text+' \				 \			 \		 \	 \ '); }