Admin Forum:DPL table use in templates

How do you make a certain part of the table as default in a template? There is a template on the wiki I'm working on that haves on the first part, the name of the item, and on the second part, the level, but the default is always to organize by alphabetical order of the names, I wanted to make it sort the level instead, without needing to sort by level manually, is there a way to do so?

Also, how to make an image that was taken from another template appear in a DPL table?

I was testing with it, but only the name of the image would appear, and on the wrong place, as I tried to put it before everything else, but it was being the second line. (The said table template can be found here )

And sorry if those questions seem noobish, but I looked help pages for templates and DPL table but still don't have any idea how to do, if I can do, those things.

Yechnagoth 06:53, October 3, 2011 (UTC)


 * For manuals see the almighty DPL Manual. As for the first question, I don't fully understand what you mean. The problem might be with the table not the DPL, since it's the table that applies the sorting order, depending on the contents of the cells.


 * As for the second question, you do as any other template parameter. For your dpl template, the beginning of the tablerow param syntax should be  if the image parameter in the ItemWrap template is added as IMAGENAME.EXTENSION. Also, there's a lot of stuff, emm.. "not optimized" in your template so it might be working badly or not working at all. — Sovq 07:27, October 3, 2011 (UTC)