Template talk:MapleStory/Quest: Difference between revisions

From StrategyWiki, the video game walkthrough and strategy guide wiki
→‎Notes: if statement
(→‎Notes: if statement)
 
(One intermediate revision by one other user not shown)
Line 10: Line 10:
finally solved it ^^ [[User:FlyXwing|FlyXwing]] 09:07, 25 June 2009 (UTC)
finally solved it ^^ [[User:FlyXwing|FlyXwing]] 09:07, 25 June 2009 (UTC)
:Finally? 21 minutes is a pretty good turn around at 2:00AM. You're lucky anyone was even on who a) saw your post, b) cared about this template, and c) could fix it for you. :/ — [[User:Najzere|<span style="color:#909090">najzere</span>]]<sup>[[User talk:Najzere|<span style="color:#993300">T</span>]]</sup> 09:24, 25 June 2009 (UTC)
:Finally? 21 minutes is a pretty good turn around at 2:00AM. You're lucky anyone was even on who a) saw your post, b) cared about this template, and c) could fix it for you. :/ — [[User:Najzere|<span style="color:#909090">najzere</span>]]<sup>[[User talk:Najzere|<span style="color:#993300">T</span>]]</sup> 09:24, 25 June 2009 (UTC)
Can anyone explain how the if viable works? I looked through the guide but it leaves me more confused.[[User:FlyXwing|FlyXwing]] 11:13, 25 June 2009 (UTC)
:The if variable tests whether the user has put anything in that variable. <code><nowiki>{{#if:{{{1|}}}</nowiki>|''variable exists''|''variable doesn't exist''}}</code> tests the first parameter (<nowiki>{{{1}}}</nowiki>) and if it exists, ''variable exists'' is given, otherwise ''variable doesn't exist'' is given. This is used the MapleStory/Quest template for the notes. Notes to the template is the seventh parameter, and if it a note is passed in the template, it will print the last row of the table. Otherwise it prints nothing, and the table ends with completion requirements. If you want to experiment with templates, you can use [[StrategyWiki:Sandbox|the sandbox]] or pages in your userspace. If I can see exactly what you're working on, I can help you more easily. — [[User:Najzere|<span style="color:#909090">najzere</span>]]<sup>[[User talk:Najzere|<span style="color:#993300">T</span>]]</sup> 15:18, 25 June 2009 (UTC)