Category talk:Standardization Templates

From Twilight Heroes Wiki
Jump to navigation Jump to search

I can't figure out how to template-ize Intermission, and other noncombat / choice adventures. See, the 'Choice' and 'Noncombat' templates are for use on the Zone pages (as stated already), and as such don't have room for the actual event text. As far as I can tell, this precludes template-ization of these pages. --JazzTap 00:33, 24 November 2008 (MST)

Looks like we also need one for effects. --JazzTap 01:15, 25 November 2008 (MST)

I agree we need to standardize mutli-choice adventures. Some are done in a single page, such as Intermission while some take separate pages for each choice such as Pick Yer Poison. Some use a mishmash such as Forgot to Mention the Crystal Skulls. Personally I'd go with a single page setup as I think it's more convenient. As for effects, the skills template works well for me, any reason why you think we need another? --Muhandes 01:29, 27 November 2008 (MST)

Oh, use the skill template for effects? Ack, didn't see that. As for the choice noncombats, I agree that a single page would be more convenient. Although, redirects for the choice outcomes might be a good idea? --JazzTap 22:58, 30 November 2008 (MST)

Old Discussion

How does one create a template? --Livia 21:29, 1 March 2008 (MST)

Do a search for template:template name here, no space before or after the colon. That'll bring up a page you can edit. Use the <includeonly> and </includeonly> tags to surround your template code. Variables are inserted by {{{variable name here}}} or, alternatively, just put a 1, 2, 3, etc. where variable name is. That will allow you to not have to define what the variable is, in this way: {{template name here|x|y|z}}. In that example, x would go to the first variable, y would go to the second, z to the third, etc. You can use {{#if: {{{variable name here|}}}|do this}} which will put whatever is after the second | into that place in the code only if the variable is defined on the page you call the template on. You can use {{#switch: {{{variable name here|}}}|x=1|y=2|z=3|(and so on)}} to make the template insert 1 if the variable is defined as x, 2 if defined as y, 3 if defined z. In case it needs to be stated, you can make x, y, and z anything you want, and you can make 1, 2, and 3 anything you want. There's also a #ifeq command, but I'm not 100% sure what it does. If you need help with anything else, Valera can probably help you more. - Satan

Thanks! I'm making templates for assembling and welding and other such things. --Livia 14:58, 10 March 2008 (MST)

It might be wise to add in a location template with "Prerequisite" "Combat Adventures" "Rare Adventures" "Non combat Adventures" & "One-time Adventures" would be a good start.--Reaper 14:25, 10 July 2008 (MST)