Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

Talk:Writing templates

From Gamepedia Help Wiki
Jump to: navigation, search

if-else[edit source]

How do you do an if-else? Nixinova (talk) 04:50, 15 June 2017 (UTC)

Go to mw:Help:Extension:ParserFunctions ^^ -Xbony2, TriMaster (talk) 11:41, 15 June 2017 (UTC)
In essence {{#if:{{{template parameter|}}}|<if stuff>|<else stuff>}}Game widow (talk) 11:57, 15 June 2017 (UTC)

Documentation[edit source]

There should be a short section here describing how to write template documentation. TheSatanicSanta (talk) 18:04, 11 July 2019 (UTC)

done TheSatanicSanta (talk) 21:43, 29 July 2019 (UTC)

Limit on number of parameters[edit source]

Is there a limit on the number of parameters I can define? Barky5 (talk) 14:56, 19 August 2019 (UTC)

I don't believe there is a parameter limit. There is a limit to a template's size, but that's so large that if you're reaching it you probably broke something.
--Mr Pie 5 (talk) 20:15, 19 August 2019 (UTC)