Wikipedia:WikiProject Pharmacology/ImageIndex
#
# IMAGE logid index for [[User:CheMoBot]] # # Syntax is as follows: # * EVERY line with a "#" character is disregarded # * Every non-blank line is in the format "filename=logid" # To get the logid of a page: # * Find the name of the image as is used here # * e.g. on [[Demeclocycline]] there is 'image = Demeclocycline.png -> remember the 'Demeclocycline.png' # * copy paste the following url in a new browser window: # http://commons.wikimedia.org/w/api.php?action=query&list=logevents&letype=upload&letitle=File: # and APPEND the filename you want to find, 'Demeclocycline.png' (replace ALL spaces with an underscore '_') # your URL will look now like: # http://commons.wikimedia.org/w/api.php?action=query&list=logevents&letype=upload&letitle=File:Demeclocycline.png # * press enter, go, whatever, so that the results load. You will see something like: # <?xml version="1.0"?> # <api> # <query> # <logevents> # <item logid="9968101" pageid="9387666" ns="6" title="File:Demeclocycline.png" type="upload" action="upload" user="Edgar181" timestamp="2010-02-03T21:26:36Z" comment="{{Information |Description={{en|Chemical structure of demeclocycline}} |Source={{Own}} |Date=05:58, 17 April 2017 (UTC) |Author=<b>[[User:DexDor|DexDor]]</b><sup> [[User talk:DexDor|(talk)]]</sup> |Permission={{PD-self}} |Other_versions= }} [[:Category:Tetracycline antibiotics]]" /> # </logevents> # </query> # </api> # * From the FIRST line that starts with '<item' (here '<item logid="9968101" pageid="9387666" ...') you take the number after logid # Here that is 9968101 # Next, you need the page that the image is used on, and add that ''after'' the index, separated by a '@' # (again, replace spaces with an underscore ('_')) # * Edit this page, and add: # Demeclocycline.png=9968101@Demeclocycline # NOTE: list ONLY images hosted on Commons used in a 'drugbox' here