Template talk:5e Monster

From Dungeons and Dragons Wiki
Jump to: navigation, search

Forced Lower Case[edit]

I would like to removed the forced lower case on such properties as skills, resistances, etc. in order to facilitate links to the 5th ed. SRD.
Example: [[SRD5:Athletics|athletics]]. Currently, with the forced lower-case, it changes the link to [[Srd:athletics|athletics]] which does not link to the correct page. --Rlyehable (talk) 04:00, 19 October 2016 (UTC)

Because of semantic stuff and some defaulting related stuff, putting links in templates like this is almost always the wrong way to go. If they need links, they need to be auto-links based on the text along. I'll see if I can steal the linking stuff from the class template for this, if not it'll be a bit before I can do it properly. - Tarkisflux Talk 04:08, 21 October 2016 (UTC)
LC removed, new template {{5e Skill|<name>}} will handle links. I'll do more user friendly stuff later, probably.- Tarkisflux Talk 04:54, 21 October 2016 (UTC)
Please look at Template:SRD5 Monster and see if such would be acceptable for this template. It does not convert some entries to lowercase and does not access the type array. It does use a secondary template Template:SRD5 based on Template:Property Link. --Rlyehable (talk) 00:51, 24 October 2016 (UTC)
I don't really care which format you want to use. I did the lc stuff to match the formatting of the SRD and the published works, but if it's problematic and unhelpful it can go away.
Ideally we'd just have one template for use in either (or any really) namespace, and leave the categorization of the page as an exercise for the reader author. Or if that's thought to be too much work / open to error (unlikely give the static nature of SRD pages and the preloads for user pages, but maybe), you'd have wrapper templates that did the categorization and just called the primary template on the inside. So maybe the SRD one just calls this one with the parameters that got passed to it, and then appends categories to the results. But having two templates is just twice the number of places that you have to standardize and update, and it's not good for maintainability / scalability.
I have stronger opinions about putting links into templates as parameters when those parameters should be used to generate semantic annotations (in which links are really really annoying for searching), but that's more easily solved when there's just one template anyway. - Tarkisflux Talk 19:49, 27 October 2016 (UTC)
I agree about the two templates. My end goal was to merge the two (but did not want to break this template while working on what I wanted for the SRD entries. I can understand not wanting to put links into the templates if it causes trouble with searches. I will work on adjusting the SRD5 Monster template to accommodate your concerns.
Thank you for your constructive response! I have completed the merging of the templates. I have removed (marked for deletion) the Template:SRD5 Monster --Rlyehable (talk) 02:05, 29 October 2016 (UTC)