Thread:AnimePerson1/@comment-24931587-20190606173727/@comment-24931587-20190627173849

After some experiments, we've concluded that it's not possible. DPL variables do get passed to the phantom templates, but the problem is that #if and #switch are processed before the DPL variables, so they compare the names of the DPL variables instead of their values.

The only alternative would be to use Lua instead of DPL, but that would require moving all the data from the templates into one big data page, and would make it more difficult for the average person to make corrections or add new locomotives, offers, etc.