Community Central
Register
Community Central
This Forum has been archived
Forums: Admin Central Index Technical Help HTML links (a href)
Central'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 4021 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.



Maybe I'm stupid (very possible). Is it impossible to add links via simple HTML code (a href...)? I wanted to do something rather complex (the intended result looks like the second row, but with a link on the external image, obviously), but the wiki refuses to render the link properly. It's not my code; it doesn't render <a href="http://www.disregardthisitsjustademo.com">links</a> at all unless they're done in wikicode. A bug? A feature? Any way around it? --Tulipclaymore 15:51, March 5, 2012 (UTC)

a href doesn't work on Wikia (incidentally, it should be blocked, as it's a good way of filtering out spam bots that are designed to spam links) - you can make an image link to a page by adding |link=pagename to the image code. So [[File:Example.png|link=Community Central]] will link to Community Central -- RandomTime 16:16, March 5, 2012 (UTC)
I can't really do that in this case, though; the file is located on another wiki, and I want to embed it without uploading it (the "why" is complicated, but the upshot is that the eventual template that's supposed to result from that code will hopefully be easier to use and less error-prone than the normal way). [[w:c:mlp:File:Example.png|50px]] doesn't work, which is why I resorted to HTML in the first place. --Tulipclaymore 16:20, March 5, 2012 (UTC)
[URL IMAGEURL]
Example: 20px-Score_Thumb.JPG
[http://mlp.wikia.com/wiki/List_of_ponies#Score http://images3.wikia.nocookie.net/__cb20110220214046/mlp/images/thumb/3/35/Score_Thumb.JPG/20px-Score_Thumb.JPG]
 Ariistuujj »Talk Page« 22:17, 3/5/2012 
Thank you, but I don't think I can stuff that into a template, and users who can get that customised resized image don't need a template. I managed to do some of what I wanted with some horribly inelegant coding, but now users can't right-click on the image anymore to make it bigger. *sigh* --Tulipclaymore 14:27, March 6, 2012 (UTC)
So, why do you want to do this? -- Fandyllic (talk · contr) 6 Mar 2012 5:41 PM Pacific
It seems easier to me to say "go to the big list, note the name and copy the image URL, insert those into this template, and you're done" versus "go to the big list, note the name and insert it into the template, download the image to your hard drive, upload the image on our wiki, open the image page, copy its filename, insert it into the template". --Tulipclaymore 17:59, March 8, 2012 (UTC)

(Reset indent) Maybe I'm stupid (very possible), but I've read this entire thread twice and I can't figure out what you're trying to do. Your template is even more mysterious. I can't tell if you've answered Fandyllic's question either. Maybe you should start over and describe your problem as simply as possible... -- Pecoes 19:14, March 8, 2012 (UTC)

There's this big list of several hundred ponies. Most of them have several names now, but will lose all but one name each over the course of the next few months. The currently still quite short other list aims to be a reference for some of those discarded names, so they aren't lost. The two lists happen to technically be on two different wikis.
I would like an easy way for users to add new names to the short list, including a (small) image to make it more reader-friendly. Wikia's visual editor isn't the best when it comes to accurately adding a picture to a page, it gets even more messy when tables are involved, and in any case I thought it would be silly to upload the same image twice. Creating a template for that purpose seemed like the easiest way. That template would have to be able to a) embed an external image, b) resize it, and c) make it link to a specific external page. The list in its current state pretty much already reflects that (but did not when I started the thread), even though I came about it in a probably needlessly complicated way, and it's not perfectly the way I imagined it. --Tulipclaymore 20:04, March 8, 2012 (UTC)
Er. Why are the pages on different wikis? Or to put it differently: Wouldn't it be easier to extend the original list? Maybe you could simply hide the discarded names... -- Pecoes 20:32, March 8, 2012 (UTC)
There's wide community consensus to keep official information and fandom expansions separate. One way of doing that is to have two separate, but connected wikis. It has its advantages and disadvantages; the template/image issue is a disadvantage, obviously. --Tulipclaymore 14:25, March 9, 2012 (UTC)
Is there maybe a way you can obtain the images in advance and upload them to your wiki? Keep the two wikis in synch - imagewise?

-- Pecoes 17:21, March 9, 2012 (UTC)

Several wikis, on request, may share the same File repository. For example, images uploaded to one wiki will be available on the other wiki as if it were uploaded on that wiki. I'm sure Wikia have done that with several wikis, although I don't remember any example now. You may ask staff about that possibility. I don't know what would happen to the already uploaded images of the second wiki tough. --Category:Ciencia Al Poder (talk) -WikiDex 10:41, March 10, 2012 (UTC)
That's actually a very interesting idea. Thank you, I'm going to look into that. --Tulipclaymore 02:36, March 12, 2012 (UTC)

(Reset indent) Just find the URL of the image, then create MediaWiki:Foo (obviously renaming Foo to something else) with <a href="http://example.com/examplepage"><img src="http://example.com/examplepic.jpg" /></a> and put <verbatim>Foo</verbatim> (or whatever you named the MediaWiki page) where you want the image to go. Another way to do this is to upload the pics to Community Central and that way you can embed pics from other wikis. (Only allowed from Community Central due to security reasons) Iggyvolz 23:26, March 12, 2012 (UTC)

Wikia would almost certainly not allow uploading of images to Community Central for use on a wiki that is not Community Central. So, that is not a viable option. -- Fandyllic (talk · contr) 13 Mar 2012 11:35 AM Pacific