Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Difference between revisions of "Talk:Tunnel Rat (Contact)"

From Paragon Wiki Archive
Jump to: navigation, search
m
 
(One intermediate revision by one other user not shown)
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)
 +
::Ah! Much obliged. :) --[[User:Isawa koi|Isawa koi]] 17:59, 16 October 2010 (UTC)

Latest revision as of 17:59, 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)
Ah! Much obliged. :) --Isawa koi 17:59, 16 October 2010 (UTC)