Hi Gamepedia users and contributors! Please complete this survey to help us learn how to better meet your needs in the future. We have one for editors and readers. This should only take about 7 minutes!

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)