User talk:Danwe

Hi Danwe -- saw your question in IRC but by the time I saw it you had left. I think this is what you're looking for: http://www.mediawiki.org/wiki/Manual:Tag_extensions#How_do_I_render_wikitext_in_my_extension.3F -- openbip


 * Thank you. But for some reason this won't work always. For example I try to execute a template with it and after adding/removing parameters or perhaps depending on the result it returns a void string instead of the templates value. Exactly the same template call above or after the function call returns the expected value... --Danwe 20:28, 28 January 2010 (UTC)

Subpage Fun feedback
Hi Daniel,

Subpage Fun is a very useful extension as I'm using lots of subpages in part of my wiki. I've been using Extension:SubPageList but its features are quite limited. And DPL is of no use when dealing with subpages. I would like to see some features of Extension:SubPageFunctions in your extension, though, especially a feature to trim path names. Cheers, Frank --Nakohdo 20:02, 26 January 2011 (UTC)


 * You already have half the functionality of that function in Subpage Fun:  will return you the last 4 parts of the path for example. If you want some middle parts you could use #sub and #pos functions of Extension:StringFunctions and then #replace   with  . I don't like overloading the extension with all kind of parser functions for each possible use case. You can do a lot with other parser functions. Also RegexParserFunctions or Extension:ArrayExtension would do the trick very easily. Best you define a template for it. On the other hand, another parameter length and the possibility of a negative offset for   wouldn't harm either. If I have some time I might realize it. --Danwe 02:25, 27 January 2011 (UTC)
 * ^^ no, sorry, this doesn't really work. So I will think of something else, perhaps a  function. On the other hand, ArrayExtension would still do it. You would have to walk trough the array in the end and output it with:   --Danwe 02:44, 27 January 2011 (UTC)


 * Ok, see Extension talk:Subpage Fun for a final solution. --Danwe 03:38, 27 January 2011 (UTC)

Slowness using HashTables
Hi! I'm experiencing slowness using HashTables extension to produce a manual index.

My aim is to use a certain user-editable index page as a base for a navtree, a frontpage and for another template to get to know the pages position in the index. Please see Chapter, Section, Index and NavTree (currently commented out for poor performances).

From my current experience, mediawiki doesn't cache the result of the hash table after the first time I see the result of a certain template, hence each time I visit the index and pages where I have the navtree (which is built using hash tables), the index or the navtree are re-calculated :/

Is there a way to tell the parser to cache the results of templates using this extension?

Can you help me to shed some light on this? Thanks in advance! --Mindrones 20:21, 10 July 2011 (UTC)


 * Template results are normally getting cached when the template is called without any params like  but as soon as you have one param it won't get cached anymore:   is enough for not getting cached. Actually, it's dangerous to cache a template which uses hashes, arrays or simple variables (Extension:VariablesExtension). This is because all variables are global, so when you change variables outside the template and then call the template again, you wouldn't get the expected output considering you just changed the variable. So be careful. If you don't intend to modify variables from outside the template caching the result would be fine so create a template which doesn't require any parameters and as long as you don't change your wikis default caching behavior it should get cached. --Danwe 23:35, 11 July 2011 (UTC)


 * Many thanks for the reply! Do you have any suggestions to speed up this system I have made? I wasn't expecting that managing that amount of links would have been so slow :( I'm currently experimenting with but it makes my templates overly complicated to maintain. Thanks, Mindrones 11:14, 16 July 2011 (UTC)

SRF and Array Result Format
Since the code of Array Result Format is shipping out now with SRF, maybe you could make a documentation about how to used it and give some examples. If you have trouble getting the documentation updated, contact. --MWJames 17:14, 9 November 2011 (UTC)


 * Actually, I wrote a documentation a while ago. I put a description of the formats on the SRF main page as well. I'll look into putting the documentation on semantic-mediawiki.org as well. --Danwe 16:02, 10 November 2011 (UTC)


 * Heiya, I just moved the documentation over to semantic-mediawiki.org. Thus I would like to invite you over too. I will provide you with the contributor rights as soon as you arrived. Cheers and see you there --&#91;&#91;kgh&#93;&#93; 22:03, 11 November 2011 (UTC)

Extra download packages for your extensions
Hi Daniel, it would perhaps be advisabel to provide an extra download for each version you create like it is done for most of the SMW extensions. The extension distributor is not very good then it comes to strictly versionised software. Users have otherwise no chance to retrieve the exact revision of the software. Cheers --&#91;&#91;kgh&#93;&#93; 15:31, 22 November 2011 (UTC)


 * I've been thinking about this for some time, just haven't had the time to set it up by now. I just wonder whether there will be a better extension distributor after we switch from svn to git? In that case I would probably keep waiting. --Danwe 19:13, 24 November 2011 (UTC)


 * Well, I do not know but I do not really believe it will be better then. Anyway the switch to git will probably take more time than expected so we should not hold our breath until this is done. ;) However, one advantage of an extra download is, that you get a better idea of how often an extension gets downloaded and is used. Cheers --&#91;&#91;kgh&#93;&#93; 19:28, 24 November 2011 (UTC)


 * Alright, I guess I am convinced, I'll look into it soon. --Danwe 19:38, 24 November 2011 (UTC)

hello danwe
I noticed you did some editing on extension:Variables you really seem to know what you are talking about, as I wrote to Nad, User_talk:Nad, I am at wits end trying to reverse engineer a really incredible map using Extension:Variables. I have spent so many hours trying to get this to work. Could I request your significant expertise?

Here are the full details with pictures!

If you are busy, could you recommend someone else i can talk to, or somewhere else I can post asking for help? You are welcome to edit the wiki pages.

Have a great week. thank you :) Igottheconch 09:03, 28 November 2011 (UTC)


 * Ummm, I have solved the thing, look into the forum for details. Took quite some time though, normally I don't do this, consider it my obsession with complex templates and the extensive use of evil extensions which made me feel like I couldn't resist giving it a try. There won't be a second time though, can't afford working for free on all kinds of projects really, of course one could hire me for all kind of wiki works to be done. Have a nice week as well! --Danwe 15:36, 28 November 2011 (UTC)
 * you do wiki work? I need some help with some large error files which crash my wiki. Do you do work by the project or by the hour. You are welcome to answer here or email me. We really need to talk!
 * Would you like a paypal donation for your time? Igottheconch 17:09, 28 November 2011 (UTC)
 * RE: Template:Overlay2 I removed a hell of a lot from the template, including the legend, etc. Down to "only" 11 pages. The customimages popups are not displaying the same thing -- i have some ideas why and I will work on it, thank you so much for your time! Igottheconch 22:52, 28 November 2011 (UTC)

Map text move when map resized but icons don't
Hello, hope you are enjoying your weekend!

I got everything to work with the map! Thank you for your help! Could you direct me in the right direction on how to fix a newer problem that has come up? The map text you helped me create moves when the map is resized, but the icons don't move, they stay in the same place....

On that page I added html differences, etc. Any help would be most appreciated! I really have no idea why the icons stay in the same place but the text does not. Igottheconch 17:47, 10 December 2011 (UTC)
 * THANK YOU so much. you are always so helpful :) what is quick easy for you, the expert in coding takes days for me. you are a godsend. Igottheconch 21:21, 10 December 2011 (UTC)
 * HA thanks! i just fixed it, appreciate it very much! Igottheconch 02:36, 11 December 2011 (UTC)

if you are bored
moved to User:Igottheconch/Map :) Igottheconch 22:57, 14 December 2011 (UTC)
 * good idea to move this, my talk page got rather full with that map stuff ;) I think you are on the best way of becoming a good template programmer! I'll just add that page to my watch-list as well. --Danwe 00:49, 15 December 2011 (UTC)
 * your too kind, I tend to update incisively my posts, so if you are online, it would drive you crazy!
 * I attempted to contact the creator of Extension:Balloons as I believe that the issue can be solved there.
 * I am slowly learning your variables extension, I have made some minor edits to the page, and will continue to add more. thank you again, Igottheconch 00:29, 16 December 2011 (UTC)
 * after days i just edited the .php extension file, add was able to change the font color of internal links :) thanks for listening! Now onto the next project. Igottheconch 04:15, 16 December 2011 (UTC)