Category talk:Infobox Templates
Merge Location Infobox Templates?
All location infobox templates share many common parameters. Just a few parameters are unique to certain templates. To me that indicates all location infobox templates should be merged into one template and the value of its first parameter governs which page type it will render.
Using the composite pattern it is easy to handle the few unique elements there are. Each such unique case should be contained in its static template that will handle the differences. For example, a "landmark" template would handle the "type" parameter differently than a "settlement" template would, since only one of those would be brought in based on that first parameter. At Lotro-Wiki we already use the composite pattern, when we inside a template are using another template but only under certain conditions. So this is nothing new but maybe this is the next level, is it? ;-)
The drawback is that all the common parameters must be exposed upon creation, whether used or not. Uncommon parameters are handled as today, documented but not auto-included on page creation or at the template section of boilerplates.
I am asking for feedback, objections and thoughts, please. — Zimoon 17:32, 23 February 2022 (UTC)