User:Tizio/Tools and tricks
Appearance
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]My javascript file does the following:
- adds a bookmark selector between the preferences and the watchlist (the list of bookmarks has to included in the program itself)
- adds the text "WP:CSD" at the beginning of the "reason for delete" field
- adds an "edit section 0", similar to the other section edit links
- adds "purge" to the toolbox