Community Central
Community Central
Forums: Index Support Requests Table as a template parameter
Fandom's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Archive
Note: This topic has been unedited for 4952 days. It is considered archived - the discussion is over. Information in this thread may be out of date. Do not add to unless it really needs a response.


I made a simple template that creates a div box around a given parameter. Basically this:

<div>

{{{1|}}}

</div>

Now I'm trying to put a table as the parameter, and it doesn't let me. I assumed that using the ! template in the table would have solved it, but it doesn't.

The table works if I don't add any styling to it, but as soon as I start messing with borders or anything it breaks.

Why??? --IK Talk 13:45, December 21, 2011 (UTC)

Looks like I can't insert divs or spans with styling either. --IK Talk 14:55, December 21, 2011 (UTC)
External links break it too for some reason. --IK Talk 15:18, December 21, 2011 (UTC)
Looks like the problem is the = symbol. When there's a style= or a link with the symbol in it, something breaks. I wonder why... --IK Talk 15:34, December 21, 2011 (UTC)
Because = defines a templates named parameters. Replace all ='s with %3D. Rappy 16:51, December 21, 2011 (UTC)
Wikipedia has a template for that wikipedia:en:template:=, the version on the templates wiki is called w:c:templates:template:equalsign "equalsign". ForestMonthZero 06:05, December 22, 2011 (UTC)
Starter Wiki should probably add Wikipedia's "Template:=" -- ForestMonthZero 06:18, December 22, 2011 (UTC)
It seems that it's only an issue with unnamed parameters. If I use a named parameter instead of {{{1|}}}, it seems to be working fine (since I use "parameter=").
Is there a known downside to this workaround? --IK Talk 13:32, December 22, 2011 (UTC)
If you have an "=" sign in the template, the template call will think that you are assigning a named parameter a value. If you're using a named parameter, it ignores the rest of the "=" signs (iirc). If you're not, and you're simply using , then you have to substitute the "=" sign with %3D for every occurrence. Rappy 00:15, December 23, 2011 (UTC)