Jump to content

Wikipedia:Meetup/ArtAndFeminism/Outcomes/Tools

From Wikipedia, the free encyclopedia

Code to add barnstars

[edit]

POST to /w/api.php:

{'action':'wikilove','subject': ['Hi bar'], 'text': ['{| style="background-color: #fdffe7; border: 1px solid #fceb92;"\n|rowspan="2" style="vertical-align: middle; padding: 5px;" | [[File:Art+Feminism Barnstar.svg|100px]]\n|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | \'\'\'The Red Barnstar v0.3\'\'\'\n|-\n|style="vertical-align: middle; padding: 3px;" | thanks for coming!! ~~~~\n|}'], 'assert': ['user'], 'message': ['thanks for coming!!'], 'title': ['User:theredproject'], 'type': ['barnstar-artplusfeminism1992'], 'token': ['']}

see also API Sandbox

Code to pull usernames from account creators

[edit]

Code to pull new and improved pages from account names

[edit]