View Single Post
Old 12-13-2021, 10:01 AM   #224
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,522
Karma: 8065528
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
I have a few iconsets that are identical for both emblems and column icons. Instead of maintaining two copies of them, I make a stored template and call that instead. Likely not the intended use for stored templates, but it works.
If I understand you correctly this is exactly the intended use for stored templates -- keeping common code in one place instead of duplicating it.

You might make the process easier if when you create the rule that uses the stored template you pass the icon name(s) as parameters to the template. That way you would use the ability in the rules editor to add icons and get their names. The stored template would get the file names from the parameter list. With this technique you can have the code in one place but have different icons depending on the context.
chaley is offline   Reply With Quote