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.

Difference between revisions of "Dwarf Fortress Wiki talk:Diagram"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
Line 6: Line 6:
 
==== Problems ====
 
==== Problems ====
 
Since the syntax is not backwards compatible (in particular, [#f00] does something different now), the wholesale replacement of {{tl|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). [[User:VengefulDonut|VengefulDonut]] ([[User talk:VengefulDonut|talk]]) 12:13, 24 July 2014 (UTC)
 
Since the syntax is not backwards compatible (in particular, [#f00] does something different now), the wholesale replacement of {{tl|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). [[User:VengefulDonut|VengefulDonut]] ([[User talk:VengefulDonut|talk]]) 12:13, 24 July 2014 (UTC)
 +
:I've been planning to add an option to support the old color-code system (once I rewrite the parser so it's not a pain to do this :) ), which will allow {{tl|diagram}} to use &lt;diagram> internally. (Performance is a little slower with &lt;diagram>, from what I've noticed, so I'd also like to hold off on changing everything until I can improve that.) &mdash;[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 02:46, 27 July 2014 (UTC)
  
 
It is too complicated. The purpose of {{tl|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. [[User:VengefulDonut|VengefulDonut]] ([[User talk:VengefulDonut|talk]]) 12:13, 24 July 2014 (UTC)
 
It is too complicated. The purpose of {{tl|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. [[User:VengefulDonut|VengefulDonut]] ([[User talk:VengefulDonut|talk]]) 12:13, 24 July 2014 (UTC)
 +
:Z-levels and variables are optional - I find them helpful to avoid extra typing (with repeated rows, for example), but the old "one character per tile" method should still work. &mdash;[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 02:46, 27 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. [[User:VengefulDonut|VengefulDonut]] ([[User talk: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. [[User:VengefulDonut|VengefulDonut]] ([[User talk:VengefulDonut|talk]]) 12:13, 24 July 2014 (UTC)
 +
:True. I'll look into adding more controls to make it more obvious. (Keyboard controls are also problematic in mobile browsers, so an alternative method would be nice.) &mdash;[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 02:46, 27 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. [[User:VengefulDonut|VengefulDonut]] ([[User talk: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. [[User:VengefulDonut|VengefulDonut]] ([[User talk:VengefulDonut|talk]]) 12:13, 24 July 2014 (UTC)
 +
:If you're looking for a list of all pages using diagrams, automatically categorizing them should be fairly easy (possibly using a hidden category to avoid clutter). &mdash;[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 02:46, 27 July 2014 (UTC)
  
 
{{tl|RT}} still exists, and its use is still being encouraged. Nobody should have to go through that. ): [[User:VengefulDonut|VengefulDonut]] ([[User talk:VengefulDonut|talk]]) 12:13, 24 July 2014 (UTC)
 
{{tl|RT}} still exists, and its use is still being encouraged. Nobody should have to go through that. ): [[User:VengefulDonut|VengefulDonut]] ([[User talk:VengefulDonut|talk]]) 12:13, 24 July 2014 (UTC)
 +
:I'm assuming you're referring to [[DF:Community portal]] - I think it works well for single-tile diagrams, but feel free to change that part if you feel it's inaccurate. &mdash;[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 02:46, 27 July 2014 (UTC)
  
 
It seems your extension runs before the template substitution code. This prevents the use of &lt;diagram&gt; for infobox pictures. (ex: {{{1|a}}} <diagram>{{{1|a}}}</diagram>) [[User:VengefulDonut|VengefulDonut]] ([[User talk:VengefulDonut|talk]]) 19:36, 26 July 2014 (UTC)
 
It seems your extension runs before the template substitution code. This prevents the use of &lt;diagram&gt; for infobox pictures. (ex: {{{1|a}}} <diagram>{{{1|a}}}</diagram>) [[User:VengefulDonut|VengefulDonut]] ([[User talk:VengefulDonut|talk]]) 19:36, 26 July 2014 (UTC)
 +
:This is how all parser extension tags work - you can work around this with <nowiki>{{#tag:diagram| {{{1|a}}} }}</nowiki>. &mdash;[[User:Lethosor|<span style="color:#074">Lethosor</span>]] ([[User talk:Lethosor|<span style="color:#092">talk</span>]]) 02:46, 27 July 2014 (UTC)
  
 
==== A (slightly ambitious) feature wishlist ====
 
==== A (slightly ambitious) feature wishlist ====

Revision as of 02:46, 27 July 2014

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)

I've been planning to add an option to support the old color-code system (once I rewrite the parser so it's not a pain to do this :) ), which will allow {{diagram}} to use <diagram> internally. (Performance is a little slower with <diagram>, from what I've noticed, so I'd also like to hold off on changing everything until I can improve that.) —Lethosor (talk) 02:46, 27 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)

Z-levels and variables are optional - I find them helpful to avoid extra typing (with repeated rows, for example), but the old "one character per tile" method should still work. —Lethosor (talk) 02:46, 27 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)

True. I'll look into adding more controls to make it more obvious. (Keyboard controls are also problematic in mobile browsers, so an alternative method would be nice.) —Lethosor (talk) 02:46, 27 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)

If you're looking for a list of all pages using diagrams, automatically categorizing them should be fairly easy (possibly using a hidden category to avoid clutter). —Lethosor (talk) 02:46, 27 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)

I'm assuming you're referring to DF:Community portal - I think it works well for single-tile diagrams, but feel free to change that part if you feel it's inaccurate. —Lethosor (talk) 02:46, 27 July 2014 (UTC)

It seems your extension runs before the template substitution code. This prevents the use of <diagram> for infobox pictures. (ex: a

{{{1|a}}}

) VengefulDonut (talk) 19:36, 26 July 2014 (UTC)

This is how all parser extension tags work - you can work around this with {{#tag:diagram| {{{1|a}}} }}. —Lethosor (talk) 02:46, 27 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 (example). This one looks like low hanging fruit VengefulDonut (talk) 23:09, 25 July 2014 (UTC) )
Oh! It's possible to save them as pngs already, but some sort of text is capturing the right click and preventing it. VengefulDonut (talk) 19:39, 26 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.
  • 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)