Page MenuHomePhabricator

Make some kind of override on smart-to-dumb templates
Open, MediumPublic

Description

There are some templates in use that does "smart" things, often to reuse code. One example is the template at w:nn:Cockscomb Buttress, the template with the code

{{geoboks|fjell
 | namn = 
}}

This template should match to

{{Infoboks fjell
| navn = 
}}

at nowiki, but we have no mechanism to rewrite from one form to another.

Another way to describe this is that the target wiki import "weirdness" from the source wiki, making the template structure inconsistent.

One solution could be to somehow instruct the template-rewrite-engine to map the construct geoboks|fjell into Infoboks fjell, and from there on try to remap parameters.

This is somewhat similar to T187006: Avoid translating to shim-type templates, use the proper target templates