Template talk:Defof

Can we give this a second, optional argument, for alternative display text? (e.g. in case the definition is on a subpage) --barto (talk) 06:01, 28 July 2017 (EDT)


 * Standard practice is to give all definitions on subpages their own "clean" redirects. Thus we just need to provide that redirect instead.


 * The main reason for this "clean redirect" is so that it makes it easier to refactor, if the structure of pages with subpages changes radically (this has happened in the past). So for example if the location of Definition:Preimage/Mapping/Element were to change because we restructured this, all we need to do is change the contents of Definition:Preimage of Element under Mapping and the job is done.


 * The fact that the redirect is then a clean page name to use in the context of the Defof component is a bonus. Thus we don't need to overcomplicate the API. --prime mover (talk) 09:45, 28 July 2017 (EDT)


 * Thanks. Those are some good arguments. --barto (talk) 11:54, 28 July 2017 (EDT)