Wikia

Community Central

WatchlistRandom pageRecent changes

New Features, 27 Feb 2007

63,453pages on
this wiki

Forum page

Forums: Index Watercooler New Features, 27 Feb 2007
Wikia's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Note: This topic has been unedited for 1905 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.

Contents


New stuffs

An addendum to Forum:New Features, 23 Feb 2007:

Imagemap

The imagemap extension (info) should now be globally installed. Simple usage for example:

 <imagemap>
 Image:Wiki.png|132x|Wikia
 rect 37 100 117 124 [[Wikia]]
 desc bottom-left
 </imagemap>
WikiaWikia
About this image

More info should appear on Help:ImageMap when someone gets around to creating it.

Special:Giverollback

GiveRollback [1] should be working (Bureaucrats: you may have to log out and log back in to access it).

It allows Bureaucrats the ability to grant or revoke the rollback right to any user.

Help:GiveRollback

Other stuff

We also have some new tools for staff (such as Oversight). If you need an edit oversighted (until we set up a process for this), for now email community@wikia.com or see (when it exists) Help:Oversight.

--Splarka (talk) 00:30, 28 February 2007 (UTC)

Bugs

Bug reports here:

  • Give rollback: Maybe not a bug, but I can grant rollback to staff. Szoferka 03:39, 1 March 2007 (UTC)
  • ImageMap ignores anchors (#Foo) in page links like [[Page#Foo]] (confirmed on Wikimedia sites) --TOR 11:46, 1 March 2007 (UTC)
I'll confirm that here to. I can't move my Useful Links to using the imagemap instead of the clickthrough I modified from Essjay's 2 clickthrus, until I can have the image link to the #Contact section of my userpage. It makes the link on the userpage pointless. Dantman (Talk) 18:21, 3 March 2007 (UTC)
I'm thinking this would be the start for fixing that issue. I'm estimating that the issue is the Title::newFromText function stripping out the stuff after the #, so it never get's handled. I can't think of any mediawiki functions to make it handle it in the link. So the approach I'm thinking of would save the anchor so that it could be appended later (wherever that's done), bold sections are additions to the code: Dantman (Talk) 18:38, 3 March 2007 (UTC)
           # Find the link
           $link = trim( strstr( $line, '[[' ) );
           if ( preg_match( '/^ \[\[  ([^|\#]*+) (\#([^|]*+))?  \|  ([^\]]*+)  \]\] \w* $ /x', $link, $m ) ) {
               $title = Title::newFromText( $m[1] );
               $alt = trim( $m[2] );
               $anchor = trim( $m[4] );
           } elseif ( preg_match( '/^ \[\[  ([^\]\#]*+) (\#([^|]*+))? \]\] \w* $ /x', $link, $m ) ) {
               $title = Title::newFromText( $m[1] );
               $alt = $title->getFullText();
               $anchor = trim( $m[4] );
           } else {
               return self::error( 'imagemap_no_link', $lineNum );
           }
           if ( !$title ) {
               return self::error( 'imagemap_invalid_title', $lineNum );
           }
Scratch that, I found the variable used after a small bit of browsing, though I don't know if it's in the current code, its in 1.9 though, there's only 2 lines in that area, plus adding whatever handles the anchors: Dantman (Talk) 18:49, 3 March 2007 (UTC)
           # Find the link
           $link = trim( strstr( $line, '[[' ) );
           if ( preg_match( '/^ \[\[  ([^|]*+)  \|  ([^\]]*+)  \]\] \w* $ /x', $link, $m ) ) {
               $title = Title::newFromText( $m[1] );
               $alt = trim( $m[2] );
               $anchor = $title->mFragment;
           } elseif ( preg_match( '/^ \[\[  ([^\]]*+) \]\] \w* $ /x', $link, $m ) ) {
               $title = Title::newFromText( $m[1] );
               $alt = $title->getFullText();
               $anchor = $title->mFragment;
           } else {
               return self::error( 'imagemap_no_link', $lineNum );
           }
           if ( !$title ) {
               return self::error( 'imagemap_invalid_title', $lineNum );
           }
Ok, my final messy contribution (hope I didn't take up to much space. Feel free to small my text or clear some out. I can't test it in my current location, but my theory is that the above change, and this one should fix the anchor issue. Dantman (Talk) 18:52, 3 March 2007 (UTC)
           # Construct the area tag
           $attribs = array( 
               'href' => $title->escapeLocalURL() . ( $anchor != '' ? "#$anchor" : '' ),
           );
  • ImageMap crashes when a variable is inserted into link. Fortunately, it doesn't save the article when this happens. (confirmed on Wikimedia sites)
    Using this code:
    <imagemap>
    Image:Cosmology.jpg|thumb|right|430px|Realms Cosmology
    rect 5 345 89 414 [[Fudge Plane]]
    rect 280 412 366 458 [[{{PAGENAME}}]]
    </imagemap>
    gave me:
    Fatal error: Call to a member function getFullText() on a non-object in /usr/wikia/source/wiki16svn/extensions/ImageMap/ImageMap_body.php on line 114
    Happy coding. ;) --TOR 11:46, 1 March 2007 (UTC)
Foobar
About this image
A great
idea
MarkvAAdded by MarkvA
  • ImageMap ignores tags in image captions. (confirmed on Wikimedia sites) --TOR 12:19, 1 March 2007 (UTC)
    Using something like:
    <imagemap>
    Image:Wiki.png|thumb|A '''great''' idea
    rect 10 10 30 30 [[Foobar]]
    </imagemap>
    will give the image on the right
    Note that:
    <b> and <i>, as well as <div> work fine, while <br /> only works with the slash and not without one (crashes).

Comments

Oversight

Can we have oversight locally? Szoferka 00:50, 28 February 2007 (UTC)

No, this will be a staff only feature. Please talk to us if you need it. It will only be used in very particular circumstances anyway, for example if a vandal starts spamming real life addresses on a wiki. This will not be used for standard vandalism -- Sannse 07:45, 28 February 2007 (UTC)

ImageMap

Thank you Wikia so much for implementing this feature! --LordTBT Talk! 02:45, 28 February 2007 (UTC)

I'm confused - what are the advantages of having just the little i clickable? Is having the whole thing clickable a disadvantage in some cases, or am I missing something? Scottch 05:17, 28 February 2007 (UTC)
Click the "(info)" link in the image map section, this might explain it better. Seems like the basic function of it is to allow different parts of an image to link to different places. John Reaves (talk) 05:34, 28 February 2007 (UTC)
Ok, didn't see that. It's actually pretty cool then. Scottch 06:10, 28 February 2007 (UTC)
Cool! Does anybody made a clickable worldmap alredy?--Rataube 13:33, 28 February 2007 (UTC)\]
You can actually remove the "i" from the image if you so desire. Just use "desc none" =) --LordTBT Talk! 18:19, 28 February 2007 (UTC)
The advantage of the "i" is to give information on the image - such as who uploaded it and what license it is under. Angela talk 20:26, 28 February 2007 (UTC)

Bug with imagemap

When the imagemap is placed in a frame, it inproperly shrinks. See w:c:alicesoft:Map_of_JAPAN

The top image is normal framed image placed in a div. The bottom is framed imagemap placed in a div. Both Div are of identical sizes. Text overlay labels use coordinates relative to the div, and have identical coordinates. It looks like the imagemap when placed in a frame will shrink to be smaller than the frame, horizontally-aligned on the right margin of the frame, and vertically center-aligned. -Afker 14:20, 28 February 2007 (UTC)

Revoking giverollback

Can bureaucrats do this? John Reaves (talk) 05:34, 28 February 2007 (UTC)

Yes. G.He(Talk!) 05:44, 28 February 2007 (UTC)
Another question, how would this be requested here? I'd like to have it for vandal fighting and whatnot (if anyone approves that is). John Reaves (talk) 05:56, 28 February 2007 (UTC)
You could probably request full adminship at Wikia:Administrators, it's not like there's a lot of "judgement calls" that sysops are required to make, it seems - the deletion/protection/bocking here seems straight-forward. I'd support it anyway. Scottch 06:09, 28 February 2007 (UTC)
  • GiveRollback works for now. I logged out and then in. Thanks for adding that, it's a cool feature to be added since sometimes all admins can be asleep or eating or just simply offline. :)

And do you mind if I write some of those help pages? I could use general info from MediaWiki.org (reminds me again that I'd need to write Extension:GiveRollback there).

Anyway, thanks! =D --Jack Phoenix (Contact) 12:19, 28 February 2007 (UTC)

Feel free to start on them (although the one for Oversight won't be so much a help page for using it but for requesting its use, so more of a policy page). ^_^. --Splarka (talk) 01:46, 1 March 2007 (UTC)

Rollback text in MediaWiki namespace

Special:Allmessages dosen't list pages for the rollback class text. I'm talking about rollback information on messages equivilant to MediaWiki:group-bureaucrat MediaWiki:group-sysop-member and MediaWiki:grouppage-bureaucrat. The community at the Narutopedia reacted very positively to using ranks from the series to refer to different MediaWiki tags (e.g. It was decided to refer to Bureaucrats as Kages), and those pages were used to change what the system displayed to go by what the community liked. I notified the community that a new tag was up and they're voting on a new order of what tag means what right now. But it would be nice to be able to use the system messages for this tag in the same way it was done for bureaucrat and sysop. It's also something which may be needed in wiki in other languages. Dantman (Talk) 09:03, 1 March 2007 (UTC)

See GiveRollback.i18n.php for a list of the messages used by this extension. --Splarka (talk) 09:21, 1 March 2007 (UTC)
I see those, but what I'm meaning is we need a MediaWiki:group-rollback MediaWiki:group-rollback-member and MediaWiki:grouppage-rollback to allow us to change what the rollback tag links to, and the name as shown on listusers, just like how it's done for bureaucrat and sysop. Dantman (Talk) 16:43, 1 March 2007 (UTC)

Latest Photos

Add a Photo
7,436photos on this wiki
See more >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki