- 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.
Dwarf Fortress Wiki talk:Diagram
Replacing {{diagram}}
I like what you're doing here
I agree that {{diagram}} needs a replacement, and I'm happy to see the work you've done on this. VengefulDonut (talk) 12:13, 24 July 2014 (UTC)
Improvements
The tiles display more evenly, the color system is cleaner, tileset support is really cool, getting away from regex is great, and character codes save needing to use a character table. I really like what I see here. VengefulDonut (talk) 12:13, 24 July 2014 (UTC)
Problems
Since the syntax is not backwards compatible (in particular, [#f00] does something different now), the wholesale replacement of {{diagram}} is difficult. If it is not replaced entirely then diagrams will continue to be created using the previous template (since people tend to copy what they see on a page). VengefulDonut (talk) 12:13, 24 July 2014 (UTC)
It is too complicated. The purpose of {{diagram}} is to have a diagramming system that's so easy anyone can use it without having to read documentation. Proper use should be clear from just seeing it used. The z-levels and variables are neat features, but they compromise this purpose. VengefulDonut (talk) 12:13, 24 July 2014 (UTC)
It has hotkeys. The only people that are going learn the hotkeys are people who read the documentation. The end product is something that looks like an image, so most visitors will interact with it as if it was an image. So multiple z-level diagrams effectively become systems for tricking editors into thinking they've delivered more information than they actually have. VengefulDonut (talk) 12:13, 24 July 2014 (UTC)
Since this is no longer a template, Special:WhatLinksHere can no longer be used to inspect (and possibly correct) the usage. Since the complexity has increased there is a greater need to be able to do this. VengefulDonut (talk) 12:13, 24 July 2014 (UTC)
{{RT}} still exists, and its use is still being encouraged. Nobody should have to go through that. ): VengefulDonut (talk) 12:13, 24 July 2014 (UTC)
A (slightly ambitious) feature wishlist
- It should enable the full-scale replacement of {{diagram}}.
- It should render as a single image. This makes it possible for people to download it and use it outside the wiki.
- (It seems it's possible to enable saving a canvas element as a png. This one looks like low hanging fruit VengefulDonut (talk) 23:01, 25 July 2014 (UTC))
- The image should be indistinguishable from a DF screenshot (it looks like you've already got a handle on this part).
- By default, the person viewing the diagram should have control over the tileset used to render it. There should be a tool by the diagram to allow people to change it.
- It should be possible to override this default in order to deliberately display differences between particular tilesets.
- It should be possible to make the choice of tileset persist across the wiki as an account setting, a user script, a cookie, or something else.
- This setting should also be transferable through URL variables, so that it is possible to link to a specific page displayed with a specific tileset.
- It should be possible for a tileset maker to upload their own tileset to the wiki and configure all diagrams to display in their tileset (by default) without editing any other pages.
- It should be possible to override the color scheme to match modded in-game color schemes by uploading a
colors.txt
file.
- With the same customizability and scope as tilesets.
- Graphics set support.
- [!CREATURE_TOKEN
[
:TEXTURE_TOKEN]
] (or some other syntax) should inspect the active graphics set to look for a graphic, and fall back on inspecting NS:CREATURENAME/raw to see what the correct character and color are. The {{CreatureInfo vxxx}} boxes (and all other diagrams) should be able to show people the same image they see in the game using their own configuration.
- [!CREATURE_TOKEN
- With the same customizability and scope as tilesets.
What do you think? VengefulDonut (talk) 12:13, 24 July 2014 (UTC), VengefulDonut (talk) 15:01, 24 July 2014 (UTC)
Basic tileset support
Has this arrived? The only call to Tileset.Font.loadFromURL seems to be here, using ../extensions/DFDiagram/resources/8x12.png
. VengefulDonut (talk) 22:53, 25 July 2014 (UTC)