Template Feature Request
Open in chat • 9 posts (analysis)
• Page 1 of 1
-

Mercury - Storyteller
Is it possible to put a "bottom of page" entry in the templates? For example, I want to list the zones incorporated by a corporation on the corporation page, but I don't want to put it at the top of the page, but rather as a table at the bottom of the page. I can make the table universal for whatever corporation page it is on, but I can't make it appear at the bottom of the page below the regular page text. Is this possible or will it be in the future?
Edit: example: http://www.fwurg.net/dokuwiki/ic:conduc ... orporation
Edit: example: http://www.fwurg.net/dokuwiki/ic:conduc ... orporation
Unfortunately, that is not possible with the way the templates currently work. And it will probably stay impossible, as that is not how templates work within the framework of the wiki... There is a possibility that footer and header content can be templated, but that would require some work, and is not something I would undertake lightly, as the impact is rather large.
There is a workaround though: instead of fixing the corporation template, we could create a new template that does exactly what you want? (for example template:corporation_zone_details) or something like that? People could than include {{template>corporation zone details}} at the bottom of their corporation page. (I know a way to quickly get that working, without the need to pass variables around through the template syntax.)
The other option is adding the list of zones to the information box.
On an unrelated note: I would rather make a <list> than a full <table>... But that's just my opinion.
There is a workaround though: instead of fixing the corporation template, we could create a new template that does exactly what you want? (for example template:corporation_zone_details) or something like that? People could than include {{template>corporation zone details}} at the bottom of their corporation page. (I know a way to quickly get that working, without the need to pass variables around through the template syntax.)
The other option is adding the list of zones to the information box.
On an unrelated note: I would rather make a <list> than a full <table>... But that's just my opinion.
-

Mercury - Storyteller
I don't mind a list, but I want to see how much each corporation is producing. A table is much clearer in that. I'll create a page bottom template.
Do you want too see how much each corporation is producing, or do you want others to see this? Because you can easily create the required table in your user namespace without mucking about with templates... And it would allow you to modify the table should you want different information.
It sounds like you just want some stats. And those shouldn't be on the corporation page imho.
It sounds like you just want some stats. And those shouldn't be on the corporation page imho.
The template is exactly the way I would have written it ^_^
And seeing this on all corporations pages makes me less opposed to this as well. Though I'm still not really sure about the table; I do see the value of knowing which zones are where, but without other content on the page, the table looks very 'heavy'.
And seeing this on all corporations pages makes me less opposed to this as well. Though I'm still not really sure about the table; I do see the value of knowing which zones are where, but without other content on the page, the table looks very 'heavy'.
-

Mercury - Storyteller
I'm open to a lighter variation, but I'm not sure how to make it.
How about now?
-

Mercury - Storyteller
Works excellently for me!
On a completely and utterly unrelated note, I am having trouble with a query to get a planet I know the name of. For some reason, names aren't part of the datamodel, so now I'm having trouble. For example, say I know the world I want is Mirda, I can unify planets and moons, but I can't seem to be able to select the actual Mirda. I know this is possible, but I can't find it in the strata manual T_T
On a completely and utterly unrelated note, I am having trouble with a query to get a planet I know the name of. For some reason, names aren't part of the datamodel, so now I'm having trouble. For example, say I know the world I want is Mirda, I can unify planets and moons, but I can't seem to be able to select the actual Mirda. I know this is possible, but I can't find it in the strata manual T_T
Hehe. Internally, the wiki uses wiki ids as canonical names. (So what you know as 'Mirda' is actuall 'ic:mirda'), and selecting things based on name really shouldn't be necessary -- if you need to do that, there's one of two things going on: 1) you get user input (for things like 'search'), or 2) you are making a 'programmer error', and you should restructure your code.
If 1), you can use the 'entry title' field available for all things. If 2) (and I suspect it is) you should fix your code.
If 1), you can use the 'entry title' field available for all things. If 2) (and I suspect it is) you should fix your code.
9 posts (analysis)
• Page 1 of 1
