v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing Template talk:Diagram/sandbox

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.


The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 14: Line 14:
 
:Another option. If we can find out what the necessary parts are for writing a mediawiki extension,  perhaps we can convince Breiss to install the result. The PHP involved in taking a tile from a tileset map, recoloring it, and putting it into the page may turn out surprisingly accessible. Or better yet, we could try to find someone who knows PHP and has experience with writing wiki extensions. [[User:VengefulDonut|VengefulDonut]] 21:03, 3 December 2009 (UTC)
 
:Another option. If we can find out what the necessary parts are for writing a mediawiki extension,  perhaps we can convince Breiss to install the result. The PHP involved in taking a tile from a tileset map, recoloring it, and putting it into the page may turn out surprisingly accessible. Or better yet, we could try to find someone who knows PHP and has experience with writing wiki extensions. [[User:VengefulDonut|VengefulDonut]] 21:03, 3 December 2009 (UTC)
  
::An HTML trick is to have a single image for a bunch of tiles, then in the display code set a background origin to pick the tile you want to display out of the image. Not sure if something like that is possible with what tools we've got here. [[User:Cheepicus|Cheepicus]] 23:57, 3 December 2009 (UTC)
+
::An HTML trick is to have a single image for a bunch of files, then in the display code set a background origin to pick the tile you want to display out of the image. Not sure if something like that is possible with what tools we've got here. [[User:Cheepicus|Cheepicus]] 23:57, 3 December 2009 (UTC)
 
 
:::The HTML trick may work, if we set it up right; however, finding someone to write an extension (if that ends up the best option) will be a tough trick:  I'm terrible with PHP, and the mediawiki codebase is such a tangled mess of hack jobs and bad code that I'd want to steer clear of it if possible. --[[User:Briess|Briess]] 05:05, 4 December 2009 (UTC)
 
 
 
::Templates aren't very well suited to converting characters into the corresponding offsets. It's doable, but it would require a rather large template page to be loaded for each cell. That problem could be solved with javascript or php, but we're avoiding php, and javascript cuts out the people who don't have it enabled.
 
::And this hasn't come up much, but it's worth pointing out that any method we use that goes through the wiki will get <nowiki>~~~~</nowiki> and other magic words parsed first. Anything using parser functions has the limitation that = and | mean something special and can't be used in the diagram without some sort of special input method.
 
::Maybe rather than trying to make the diagrams from within the wiki, we could put up a separate page specifically for creating diagrams which users could then upload afterward. Over all, this is starting to seem like a sticky problem. [[User:VengefulDonut|VengefulDonut]] 14:16, 4 December 2009 (UTC)
 
 
 
:::Having a separate page to generate images for diagrams seems like the best solution available. Until that happens, is Diagram/sandbox good enough to replace Diagram? Since the last note, I've changed the color scheme to use DF default colors, encoded using a hexadecimal digit (see [[Template:C]]), and decided that treating spaces as part of the diagram is useful after all. (The diagrams already on the site use spaces. See the [[Template:Diagram/testcases|testcases]].) I've also fiddled with the formatting until I'm finally satisfied that it's going to look reasonably good in most browsers. If it looks good on more browsers than Diagram does, and the various other changes meet general approval, I'm ready to replace Diagram and change all the current uses of Diagram to the new version. [[User:Hussell|Hussell]] 16:09, 23 December 2009 (UTC)
 

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Please sign comments with ~~~~

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)