Topic on Project:Support desk

Variables in included templates

2
Nanoukaplus (talkcontribs)

Hello,

how can I use a variable in an ask query of format = template, to use its value in the template defining the ask ?

Concretely, I've got this in my template A :

{{#vardefine:variabletest|{{{filename}}} }}

with file name a field in a form linked to my template A.

Plus, I've got this query :


{{#ask: [[Category:Objects]]
|?number
|format=template
|template=Template B
}}

And I want to inser the value of the variable variabletest to make conditions on it in my second template, the B

How to do that please ?

Nanoukaplus (talkcontribs)

Does anyone have an alternative solution please ?

Reply to "Variables in included templates"