Legacy talk:Apple Tree
The following objects come from trees: {{#ask: [[requires::tree]]}}.
There are two ways of addressing the above line:
- Make a template for generic objects (in this case, trees) which is called independently of the infobox.
- Add a semantic tag referring specific objects to their generic variety. Then, if the tag is not blank, query for those things which require it. I.e.:
{{PAGENAME}} (in this case, 'Apple Tree') is tagged [[specific::Tree]]. In the infobox template, query the value of 'specific' for {{PAGENAME}} (this is the part I'm not certain about). This would be in the #if function. If not blank, then {{#ask: [[requires::<value of 'specific'>]]}}. This has the advantage of running completely inside the infobox so all the 'required by' information stays in one place. Erik the Blue 01:34, September 2, 2009 (UTC)
After some experimentation, the problem with the second method is with the line {{#ask: [[requires::<value of 'specific'>]]}}. Specifically, the semantic parameter doesn't seem to work if fed a value surrounded by {{}}, making it impossible to define these things dynamically. I'll try to ask around to see if there's a work around (templates won't work), but it looks like the first method will be what's implemented. Erik the Blue 06:07, September 2, 2009 (UTC)
Thanks to some help from Central Wikia, it looks like the second method will work after all. I'll get around to applying it to the tree pages when I next have a fair amount of time to work with. Erik the Blue 08:42, September 2, 2009 (UTC)
The changes to the infobox seem to be working. I'll migrate them into the working infoboxes later. Erik the Blue 22:16, September 2, 2009 (UTC)