Template talk:Default layout

Latest comment: 2 years ago by Inductiveload in topic Sensible error messages

Sensible error messages edit

@Inductiveload: Reminder that you said that we should have some sort of error handling in case someone truly screws up their layout command. I put in some handling of starting with lower case first letter, nothing else. — billinghurst sDrewth 14:12, 25 September 2021 (UTC)Reply

@Billinghurst The JS itself has now been updated to do a case insensitive match and fall back to the user's configured layout (or Layout 1) if the requested default fails. Since that's a run-time this, if you want an edit-time thing, it's probably better to check the supplied string in this template and keep a list of "allowed" strings. Inductiveloadtalk/contribs 15:26, 28 September 2021 (UTC)Reply