A Surrogate template, passing in parameters? (advice/help) #280
Unanswered
ChickenMobile
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to create a DPL query which generates a table for a series of items.
The problem I am facing: is that
SpellTemplateis generic (including all class spells) and I need to know what class I am querying to generate class-specific data within the surrogate templateSpellRowTemplate.Usually to insert parameters to a template, it would look something like:
{SpellRowTemplate|class=bard}but I don't see a way to do this within examples included in the documentation. e.g.| include = {SpellTemplate¦SpellRowTemplate¦class=bard}(will not work).I tried defining variables outside the DPL query - e.g.
{{#vardefine:class|bard}}and accessing it within the surrogate by{{#var:class}}but they were always blank/null (as if never set).Is there be any viable way to do this?
Any alternate suggestions/help welcome.
Thanks,
Mel
Beta Was this translation helpful? Give feedback.
All reactions