Wikipedia talk:Requested templates/Archive 2

Latest comment: 4 years ago by Andrybak in topic Template
Archive 1Archive 2

Anybody up for a challenge?

I've been going around in circles trying to get an {{Overlay}} into a {{Diagnostic infobox}}, but I just can't seem to do it without generating expression errors. Testing suggests that it might be related to the legend1title parameter, but that could be a false start. Specifically, I tried substituting the main Overlay template, and when I removed legend1title altogether from the substituted version, the error stopped occurring, but just removing it or setting it to blank in the parent template does nothing. Similarly, substituting the sub-template also works, but that's definitely not the way I want to go in an article.

Can anybody provide any insight into what's going on and how to fix it? I'm at a loss.

See (and feel free to play in) my sandbox for a demonstration of the issue. RobinHood70 talk 23:18, 18 August 2011 (UTC)

The problem is the complexity of the "overlay" template. Currently, this works,
{{1x|{{1x|{{Overlay
|image=Rorschach blot 01.jpg
|width=200
|height=131
|float=right
|legend1title=Foo
|overlay1=29%|overlay1top=25|overlay1left=98
|overlay2=18%|overlay2top=44|overlay2left=132
|overlay3=6%|overlay3top=100|overlay3left=98
}}}}}}

but if I nest this template just 2 levels deep, it breaks

{{Overlay
|image=Rorschach blot 01.jpg
|width=200
|height=131
|float=right
|legend1title=Foo
|overlay1=29%|overlay1top=25|overlay1left=98
|overlay2=18%|overlay2top=44|overlay2left=132
|overlay3=6%|overlay3top=100|overlay3left=98
}}

Interestingly, if you remove the "legend1title" it works:

{{1x|{{1x|{{Overlay
|image=Rorschach blot 01.jpg
|width=200
|height=131
|float=right
|overlay1=29%|overlay1top=25|overlay1left=98
|overlay2=18%|overlay2top=44|overlay2left=132
|overlay3=6%|overlay3top=100|overlay3left=98
}}}}}}
I would suggest seeing if anyone can reduce the complexity of {{overlay}}. One option may be to use a different image overlay template, like {{location mark+}} or something. Frietjes (talk) 17:01, 19 August 2011 (UTC)
Did you get your examples backwards? Your first example seems to be nesting two levels deep, where your second is unaltered. In any event, you may have hit the nail on the head...it might not be the template itself that's wrong, I think it might well just be that we're surpassing the nesting limits. That would explain why either moving down a subtemplate or two, or substituting the subtemplates worked. Re-writing {{Overlay}} seems like a good idea...I agree, it's horrendously complex, and while I didn't really look at it in great detail, a lot of it seemed unnecessary at first glance. I didn't realize image overlay templates were popular enough that we had a choice...I'll have to look around and see if there are others that would work out well. RobinHood70 talk 19:28, 19 August 2011 (UTC)
Yes, my examples are swapped. Sorry about that. The {{location mark+}} template seems very new. I do like how automated {{overlay}} is, in that you don't have to specify the legend twice. But the complexity seems excessive. Frietjes (talk) 21:47, 19 August 2011 (UTC)
I added an example using {{superimpose2}}. It's not as nice, but it could work. Thanks! Frietjes (talk) 22:57, 26 August 2011 (UTC)
I noticed. Thanks for the example, I'll have a look at it tomorrow. I'm kind of toying with the idea of re-writing Overlay itself, but I haven't really had the time to really do anything with it yet. It's nice to know there are multiple options, though. RobinHood70 talk 07:30, 27 August 2011 (UTC)

How do we display the table of contents for this page?

How do we display the table of contents for this page? --Jax 0677 (talk) 13:12, 2 April 2015 (UTC)

The presence of four headings displays a table of contents. Reigen (talk) 13:31, 15 May 2015 (UTC)

Needing more volunteers

Seems to me that more volunteers are needed. Someone must respond to the requests. Meanwhile, I changed the bot configuration to archiving messages older than sixty days. --George Ho (talk) 20:41, 8 February 2017 (UTC)

Request for template

Hi, I need a template for my city, from where I hail. I see users having template abt their city that This user hails from Karachi, Mumbai, London, New York etc etc, so I want one for my city Abbottabad too... (UsamaAhmadKhan 08:01, 21 July 2018 (UTC)) — Preceding unsigned comment added by Saamikhan01 (talkcontribs)

Template