Jump to content

User:Tizio/Tools and tricks

From Wikipedia, the free encyclopedia

Parameters

[edit]

Actions in Wiki.php

  • &action=edit&wpPreview=true&live=true
    gives only the preview of the content; for example:
    curl ".../w/index.php?title=Whatever&action=edit&wpPreview=true&live=true" -F "wpTextbox1={{CURRENTTIMESTAMP}}"
    gives the current timestamp (works also for action=submit)
  • &title=Special:Export&pages=Whatever (MW:Parameters_to_Special:Export)
    • &offset=timestamp
      give revisions from timestamp on; use the last timestamp of the result of an export to get the next page of revisions
    • &limit=x
      gives x revision from timestamp on (max 100)
  • &action=raw
    • &templates=expand
      the raw page with templates already expanded
    • &oldid=20694244
      raw version for an old revision
    • &direction=next, &direction=prev, &direction=cur
      gives the revision preceeding or following the specified one, or the last version
    • &gen=css, &gen=js
      for css and js
  • &action=render
    rendering of the page in html, but without buttons, toolbox, etc.

BibTeX

[edit]

User:Paolo Liberatore/Bibtex is a script for converting BibTeX citations into wiki format; actually, it should convert into journal, conference, etc template, but currently does not

Javscript

[edit]
The bookmark selector and the section 0 edit link.

My javascript file does the following:

  1. adds a bookmark selector between the preferences and the watchlist (the list of bookmarks has to included in the program itself)
  2. adds the text "WP:CSD" at the beginning of the "reason for delete" field
  3. adds an "edit section 0", similar to the other section edit links
  4. adds "purge" to the toolbox