Difference between revisions of "User:Harry/Sandbox"

From Birocapedia
Jump to navigationJump to search
Line 1: Line 1:
 
[[Image:Sound.ogg|thumb|noicon|One Too Many Mornings]]
 
[[Image:Sound.ogg|thumb|noicon|One Too Many Mornings]]
 
[[Image:Sound.ogg|thumb|One Too Many Mornings]]
 
[[Image:Sound.ogg|thumb|One Too Many Mornings]]
 
{{Cabin sign
 
|align=left
 
|content=<sgallery height="600" width="800" showinfopane="false">
 
Image:IMG_0350.JPG
 
Image:IMG_0351.JPG
 
Image:IMG_0353.JPG
 
Image:IMG_0354.JPG
 
Image:IMG_0356.JPG
 
Image:IMG_0358.JPG
 
Image:IMG_0361.JPG
 
Image:IMG_0363.JPG
 
Image:IMG_0366.JPG
 
Image:IMG_0367.JPG
 
Image:IMG_0369.JPG
 
Image:IMG_0370.JPG
 
Image:IMG_0371.JPG
 
Image:IMG_0372.JPG
 
Image:IMG_0373.JPG
 
Image:IMG_0374.JPG
 
Image:IMG_0375.JPG
 
Image:IMG_0376.JPG
 
Image:IMG_0377.JPG
 
Image:IMG_0379.JPG
 
Image:IMG_0381.JPG
 
Image:IMG_0382.JPG
 
Image:IMG_0384.JPG
 
Image:IMG_0385.JPG
 
Image:IMG_0386.JPG
 
Image:IMG_0387.JPG
 
Image:IMG_0388.JPG
 
Image:IMG_0389.JPG
 
Image:IMG_0393.JPG
 
Image:IMG_0394.JPG
 
Image:IMG_0395.JPG
 
Image:IMG_0396.JPG
 
Image:IMG_0397.JPG
 
Image:IMG_0398.JPG
 
Image:IMG_0399.JPG
 
Image:IMG_0401.JPG
 
Image:IMG_0402.JPG
 
Image:IMG_0405.JPG
 
Image:IMG_0406.JPG
 
Image:IMG_0407.JPG
 
Image:IMG_0408.JPG
 
Image:IMG_0410.JPG
 
Image:IMG_0413.JPG
 
Image:IMG_0414.JPG
 
Image:IMG_0416.JPG
 
Image:IMG_0418.JPG
 
Image:IMG_0419.JPG
 
Image:Stream crossing.JPG
 
Image:IMG_0422.JPG
 
Image:IMG_0424.JPG
 
Image:IMG_0426.JPG
 
Image:IMG_0431.JPG
 
Image:Spaulding Lean-to.JPG
 
Image:Lone Wolf.JPG
 
Image:IMG_0435.JPG
 
Image:IMG_0436.JPG
 
Image:IMG_0437.JPG
 
Image:Nolan and the fire.JPG
 
Image:IMG_0440.JPG
 
Image:IMG_0441.JPG
 
Image:IMG_0442.JPG
 
Image:IMG_0443.JPG
 
Image:IMG_0445.JPG
 
Image:IMG_0448.JPG
 
Image:IMG_0449.JPG
 
Image:IMG_0450.JPG
 
Image:Sullivans descending.JPG
 
Image:IMG_0452.JPG
 
Image:Sugarloaf Valley.JPG
 
Image:Ken descending.JPG
 
Image:Ken.JPG
 
Image:IMG_0456.JPG
 
Image:Sugarloaf shack.JPG
 
Image:IMG_0462.JPG
 
Image:IMG_0464.JPG
 
</sgallery>}}
 
  
 
== Installing ImageAnnotator on another Wiki ==
 
== Installing ImageAnnotator on another Wiki ==

Revision as of 22:34, 16 December 2009

File:Sound.ogg File:Sound.ogg

Installing ImageAnnotator on another Wiki

Image notes are only visible when the ImageAnnotator gadget is installed and activated (either by default for all users, or the viewing user has the gadget enabled). This means that notes added here at the Commons are not visible at other Wikis unless the gadget is installed there, too.

Installing from scratch

Note: if you want to upgrade an existing installation to the latest version, do not follow these steps. Follow the steps in the section "Upgrading an installation" below.

To install the gadget on another Wiki, follow these steps:

  1. Copy the following files from the Commons onto your own Wiki:
  2. Set up MediaWiki:Gadget-DisableImageAnnotator.js as a gadget on your Wiki: copy MediaWiki:Gadget-DisableImageAnnotator to your Wiki and add the line "DisableImageAnnotator|DisableImageAnnotator.js" to MediaWiki:Gadgets-definition on your Wiki.
  3. To set it up ImageAnnotator as a gadget, write a description of it at MediaWiki:Gadget-ImageAnnotator on your Wiki, and add the line "ImageAnnotator|ImageAnnotator.js" to MediaWiki:Gadgets-definition (also on your Wiki).
  4. To enable the gadget for everyone, you may skip step 3 and instead add the line "if (wgNamespaceNumber != -1) importScript ('MediaWiki:Gadget-ImageAnnotator.js');" to MediaWiki:Common.js on your Wiki. (Or take a look at our MediaWiki:Common.js to see how we do this and copy that code over to your Wiki.)
  5. Copy the templates Template:ImageNote, Template:ImageNoteEnd, and Template:ImageWithNotes to your Wiki and protect them. Don't forget to adapt the category and the namespace selector (replace "File" as appropriate) in Template:ImageNote.
  6. Copy the templates Template:ImageAnnotations, Template:InlineImageAnnotations, and Template:ImageNoteColors to your Wiki.
  7. Copy the templates MediaWiki:ImageAnnotatorTexts, MediaWiki:ImageAnnotatorUITexts, and MediaWiki:ImageAnnotatorEditSummaries to your Wiki.
  8. Modify MediaWiki:ImageAnnotatorTexts to adapt it to your Wiki's default language. Replace the string lang="en" (one occurrence) as appropriate; e.g. at the Arabic Wikipedia, use lang="ar".
  9. Translate the texts in the edit summaries into the content language of your wiki.
  10. If you want, also create user interface texts in your language in the MediaWiki-messages noted above. The messages in the default language of the Wiki always go into the pages without suffix. For other languages, use suffixes. On the Arabic Wikipedia, for instance, you'd put Arabic text at MediaWiki:ImageAnnotatorEditorLabel and the English text at MediaWiki:ImageAnnotatorEditorLabel/en.

The gadget will work for files uploaded locally on your Wiki exactly as it does for files here at the Commons. For non-local files (files hosted here at the Commons, but viewed on your Wiki), the script will enable viewing of the notes (if there are any), but will not allow modifying them. Modification of notes is possible only if the user views the file at the Wiki where the file actually resides.

Note: the above instructions assume that you want to install the gadget on another WMF project. If you are using a MediaWiki installation that does not serve wikibits.js, you are on your own. You will have to modify the scripts to use whatever environment your Wiki provides (in particular script loading and getElementsByClassName).