Talk:Tunnel Rat (Contact): Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia (historical)
No edit summary
imported>Sekoia (historical)
No edit summary
Line 2: Line 2:


: The problem for the heading is the equal sign =. There's two ways to call templates, with named values or position values. Named values look like <nowiki>{{example|name=Tunnel Rat}}</nowiki> whereas position values look like <nowiki>{{example|Tunnel Rat}}</nowiki>. Unfortunately, the equal sign tells the wiki that you're using a named parameter, so <nowiki>{{UL|Part one: ATK=True}}</nowiki> was interpreted as having a named parameter of "Part one: ATK" with a value of "True". The fix is to give is the name of the positional parameter, which is 1 in this case. So this works: <nowiki>{{UL|1=Part one: ATK=True}}</nowiki>. This doesn't happen too often, fortunately; and many templates are written to use named parameters to avoid the issue entirely. -- [[User:Sekoia|Sekoia]] 14:52, 16 October 2010 (UTC)
: The problem for the heading is the equal sign =. There's two ways to call templates, with named values or position values. Named values look like <nowiki>{{example|name=Tunnel Rat}}</nowiki> whereas position values look like <nowiki>{{example|Tunnel Rat}}</nowiki>. Unfortunately, the equal sign tells the wiki that you're using a named parameter, so <nowiki>{{UL|Part one: ATK=True}}</nowiki> was interpreted as having a named parameter of "Part one: ATK" with a value of "True". The fix is to give is the name of the positional parameter, which is 1 in this case. So this works: <nowiki>{{UL|1=Part one: ATK=True}}</nowiki>. This doesn't happen too often, fortunately; and many templates are written to use named parameters to avoid the issue entirely. -- [[User:Sekoia|Sekoia]] 14:52, 16 October 2010 (UTC)
: The problem with the Provost Marchand dialog is that it was using the wrong named parameter. The hidden template uses "content=", not "text=", so it couldn't find anything to display and fell back on its default value (which was <nowiki>{{{2}}}</nowiki>). -- [[User:Sekoia|Sekoia]] 14:56, 16 October 2010 (UTC)

Revision as of 14:56, 16 October 2010

Okay, as a wikinoob, I'm not sure what I'm doing wrong concerning the headers for the first mission (which is currently showing {{{1}}} as a title) and for the hidden text box I made for the Provost Marchand dialog (currently showing {{{2}}} in the box, which makes me think the problems are related. This is what I get for just copy-pasting things from other pages, but can anyone explain how I can fix this? -Isawa koi 11:52, 16 October 2010 (UTC)

The problem for the heading is the equal sign =. There's two ways to call templates, with named values or position values. Named values look like {{example|name=Tunnel Rat}} whereas position values look like {{example|Tunnel Rat}}. Unfortunately, the equal sign tells the wiki that you're using a named parameter, so {{UL|Part one: ATK=True}} was interpreted as having a named parameter of "Part one: ATK" with a value of "True". The fix is to give is the name of the positional parameter, which is 1 in this case. So this works: {{UL|1=Part one: ATK=True}}. This doesn't happen too often, fortunately; and many templates are written to use named parameters to avoid the issue entirely. -- Sekoia 14:52, 16 October 2010 (UTC)
The problem with the Provost Marchand dialog is that it was using the wrong named parameter. The hidden template uses "content=", not "text=", so it couldn't find anything to display and fell back on its default value (which was {{{2}}}). -- Sekoia 14:56, 16 October 2010 (UTC)