Hakaku Posted June 12, 2008 Report Posted June 12, 2008 Alright, since I've been ignored elsewhere on this board a few times, I'd like to make three remarks about the wiki: The first is, although not exactly a pressing issue (or entirely necessary), it would be nice to incorporate Wikipedia-style reference tags into the SSWiki. This could help prevent certain inacuracies, or just add more professionalism into the written work. But more specifically, it would help deal with my third idea/request below.http://www.mediawiki.org/wiki/Extension:Cite/Cite.php Secondly, since uploads are disabled, I would like to request the ability to resize images in the same format as HTML tags. From my understanding, implementing such code should be relatively simple on IPB, and the result could look something like this:[resize height="100" width="200"]http://imageurl.com/img.gif[/resize]This in turn saves the trouble from having to upload two sets of images all the time, one resized so that the image doesn't cover 99% of the space, the other being the actual image linked to (As so.).* Three: Activity on the Wiki is relatively low, and at this point in time I don't understand why anonymous IPs should not be allowed to participate. As it stands, the Wiki feels as if only Wiki mods are suppose to edit it, since that's what they're "hired" to do. But in reality, putting the burden mostly on a few select people demands a lot of work, when they may not even have the knowledge to contribute to most articles. Even though this may mean that vandalism could increase**, contributions could increase as well. (And it adds a job for the wiki mods) *Images bring the article to life rather than keeping it dull, and I could see the benefit of adding things like screenshots beside a zone's description.**If it becomes such a problem, why not just disable it happens?
Samapico Posted June 13, 2008 Report Posted June 13, 2008 Any ssforum member is allowed to edit the wiki The other 2 items make sense just checked for a resize tag... it seems IPB custom tags only allow one option ( [tag=option]{content}[/tag] )
»Lynx Posted June 13, 2008 Report Posted June 13, 2008 I'm able to write some stuff, but I've got a lot of other pressing things that need to be done. I'm all up for allowing complete public access, it would allow us Wiki mods do something other than create monotonous posts (provided there is vandalism). -Lynx
Samapico Posted June 13, 2008 Report Posted June 13, 2008 By public access, you guys mean anyone, even unregistered people, right? Cause as I said, current ssforum members can edit anything they want (as far as I know)
Hakaku Posted June 13, 2008 Author Report Posted June 13, 2008 Any ssforum member is allowed to edit the wikiYes, but people from Trench Wars, or EG, or wherever else won't want to register an account on another forum just to contribute to a wiki. And I'm not sure if it still applies, but I also remember Polix mentioning a minimum amount of posts required before being able to edit the wiki as well. Edit: I'm referring to people not registered; anonymous IPs. just checked for a resize tag... it seems IPB custom tags only allow one option ( [tag=option]{content}[/tag] )Hmm, I would have thought IPB to be more versatile than PhpBB (at least for this), but I guess I was wrong. Then maybe a solution to this could be to have a static image size, maybe something around 150x150px...
Samapico Posted June 13, 2008 Report Posted June 13, 2008 a [thumbnail] tag could be useful I guess What if an image is , say, 400x200? If you use html to make it 150x150, will it really be resized to 150x150 and be distorted? Or will it resize to fit in a 150x150 frame, keeping the same ratio? What if you only only specify the 'width' parameter in the html tag? (or only the height) Does it resize by keeping the ratio? Please enlighten my poor HTML knowledge
Hakaku Posted June 13, 2008 Author Report Posted June 13, 2008 a [thumbnail] tag could be useful I guess What if an image is , say, 400x200? If you use html to make it 150x150, will it really be resized to 150x150 and be distorted? Or will it resize to fit in a 150x150 frame, keeping the same ratio? What if you only only specify the 'width' parameter in the html tag? (or only the height) Does it resize by keeping the ratio? Please enlighten my poor HTML knowledge No, you have the right idea. The only problem is, with just HTML, it's not exactly possible to do anything complicated (with just 1 option), so yes, the image would be distorted by resizing it. Without enabling uploads, maybe another solution could be to allow the html tag (I don't know if you can specify certain html codes or not on IPB). Unless someone has a better solution? :/
CRe Posted June 13, 2008 Report Posted June 13, 2008 First thing: I agree that we should add this extention. Second thing: I made a quick script to do this. It works like so: <resize>http://example.com/exampleimage.png|10px|90px</resize>http://example.com/exampleimage.png = Image Location10px = width90px = height For an admin who could install this just add this line to LocalSettings.php: require_once("$IP/extensions/Resize.php"); And save this following code as Resize.php and upload it to the extentions directory. <?php $wgExtensionFunctions[] = 'wfImageResizeSetup'; function wfImageResizeSetup() { global $wgParser; $wgParser->setHook("resize", "wfResizeImage"); } function wfResizeImage($input, $args, &$parser) { $input = explode("|", $input); $input[0] = htmlen!@#$%^&*ies($input[0]); $input[1] = htmlen!@#$%^&*ies($input[1]); $input[2] = htmlen!@#$%^&*ies($input[2]); $tag = "<a href='".$input[0]."'><img src='".$input[0]."' width='".$input[1]."' height='".$input[2]."' /></a>"; return $tag; } ?> I tested this code and it worked fine. It will only work with the wiki. 3rd thing I agree with aswell.
Samapico Posted June 13, 2008 Report Posted June 13, 2008 thing added (me and CRE> updated the code a bit, the above code is not exactly what we put up)
Samapico Posted June 13, 2008 Report Posted June 13, 2008 how about[resize=height,width]Yeah, but then you need to have some kind of html script that splits these two values... it's probably possible to include php code with some <?php tag or whatever, I don't know much about these things
Samapico Posted June 13, 2008 Report Posted June 13, 2008 After some tries and failures, we concluded: !@#$%^&* it.The wiki tag should be enough; for forum posts, images are already resized so they don,t stretch the screen, and we also have spoiler tags for huge images
Hakaku Posted June 13, 2008 Author Report Posted June 13, 2008 ^fancy work, I didn't expect this to be added so quickly.
CRe Posted June 30, 2008 Report Posted June 30, 2008 Sorry for the bump but I have allowed guest editing now and the rule that you must have 3 posts to edit the wiki is no longer in effect.
Aceflyer Posted June 30, 2008 Report Posted June 30, 2008 Sorry for the bump but I have allowed guest editing now and the rule that you must have 3 posts to edit the wiki is no longer in effect. Thanks, I think that will be a good move for the Wiki.
Recommended Posts