Currently, for civ specific techs like phasing, we have to add all of them in the ProductionQueue templates. That is quite heavy and not mod friendly: two mods adding new civs with specific phasing would not work simultaneously as expected.
This patch proposes another approach: templates contain only "tech_{civ}", and the code will replace {civ} by the corresponding civ (as is done for units) or fallback to "tech" if the civ one is not found in the data/technologies folder.
An existing use case is phasing (phase_town and phase_city are done), but this would also work for any tech.
Changes for the structree and the ai are also done in the patch.