Template talk:mn-verb form name

From Wiktionary, the free dictionary
Latest comment: 8 years ago by CodeCat in topic Error
Jump to navigation Jump to search

Error

[edit]

@Crom Daba Can you fix the error please? —CodeCat 21:26, 24 October 2016 (UTC)Reply

@CodeCat I couldn't figure it out before, but I think I got it now. Is this the proper way to do it? Crom daba (talk) 22:15, 24 October 2016 (UTC)Reply
You would probably want that to only be the default on the template page itself, not in actual entries. —CodeCat 22:22, 24 October 2016 (UTC)Reply
I indeed would, how do I achieve that? Crom daba (talk) 22:40, 24 October 2016 (UTC)Reply
I made some changes now, both to demonstrate this and some other minor formatting fixes. The trick may need some explanation. When a parameter is marked as required, there's an error when it's missing. However, this error is suppressed when the current page is a Template page. The default value is normally used when a value is missing, so it would also be the default value in regular pages. But because the parameter is also required, the default value is never used because an error is shown. Except on Template pages, where there's no error. So you have a default that applies only for the Template page. —CodeCat 22:50, 24 October 2016 (UTC)Reply