v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

User:Lethosor/outdated warning.js

From Dwarf Fortress Wiki
< User:Lethosor
Revision as of 18:51, 5 May 2014 by Lethosor (talk | contribs) (size)
Jump to navigation Jump to search

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files
// Warning when visiting an outdated page from an external site (e.g. Google)
if(document.referrer && document.referrer.indexOf(document.domain) == -1 && 'v0.31 40d 23a'.split(' ').indexOf(wgCanonicalNamespace)!=-1){
  $('<div>').attr('class','usermessage').css({borderColor:'red', backgroundColor:'#fdb', fontWeight:'normal', fontSize: '120%'}).html('This page is about an <strong>older version</strong> of Dwarf Fortress. Click the v0.34.11 link in the box below to view the current version of this page.').prependTo('#bodyContent')
}