Template talk:3.5e Skills

From Dungeons and Dragons Wiki
Jump to: navigation, search

Adding Homebrew Skills[edit]

Program was added to a bunch of classes and it always show as a red link, how do I fix this? --Leziad (talk) 18:11, 27 October 2015 (UTC)

As far as I can tell, it's because the 3.5e Skills template only works for SRD skills. If you take a look at the horrific wiki-markup, it builds the link so (the variable 'z' is the relevant skill):
{{Property Link|Skill|SRD:z Skill|z}} ({{3.5e Ability By Skill|z}})
The Template:3.5e Ability By Skill is just a switch statement over hard-coded skill values and will return nothing if your skill isn't in there. So, yeah, that's why. --TK-Squared (talk) 19:29, 27 October 2015 (UTC)
Okay, so how do we fix this? --Luigifan18 (talk) 01:04, 28 October 2015 (UTC)
¯\_(ツ)_/¯ Refactor Skill Pages to contain relevant properties (name, skill) and then attempt to use Semantic MediaWiki to ask for all skill pages with the correct name in order to output the skill into a formatted template? --TK-Squared (talk) 15:48, 28 October 2015 (UTC)
Is this still a problem Leziad? If so, can you give me an example of the red link in a page? - Tarkisflux Talk 18:25, 3 December 2016 (UTC)
Yes, here on the Technomancer. --Leziad (talk) 18:56, 3 December 2016 (UTC)
Ok. I could probably refactor this to use a bunch of calls to Template:3.5e Skill instead, but it's non-trivial and there are some weird edge cases I don't know how I'd want to code around right now. So I guess you can wait for me to figure it out / do it, or you could use the "|manualskill" parameter instead of "|skill" in the class simple template and fill in a bunch of manual {{3.5e Skill|<srd skill>}} entries with a {{3.5e Skill|Program||Int|Program (3.5e Skill)}} entry in the appropriate place. - Tarkisflux Talk 20:17, 3 December 2016 (UTC)