I'm probably screwing it up, but my eyes can't see it!
On 24 Apr 2005, at 08:55, Rowan Collins wrote:
On 4/24/05, Jan Steinman <Jan(a)bytesmiths.com>
wrote:
Do templates force-close any opening tags?
I was under the impression that they don't get manipulated at all...
Here's "http://www.bytesmiths.com/wiki/Template:VVG_menu_top":
<div align="center"><font size="-3">|
'''[[Veggie Van Gogh]]''' |<br>
| [[VVG:Fuel system|Fuel system]] | [[VVG:Body, chassis,
driveline|Body, chassis, driveline]] | [[VVG:Electronics|Electronics]]
| [[VVG:Living quarters|Living quarters]] | [[VVG:FAQ|FAQ]] | [[Biofuel
links]] |
Here's "http://www.bytesmiths.com/wiki/Template:VVG_menu_fuel":
{{VVG menu top}}<br>'''''Fuel system:''''' |
[[VVG:Overview|Overview]]
| [[VVG:Common components|Common components]] | [[VVG:Filling|Filling]]
| [[VVG:Plumbing|Plumbing]] | [[VVG:Vegetable oil|Vegetable oil]] |
[[VVG:Electrical|Electrical]] |</font></div><br>
Here's what's produced, as seen in
"http://www.bytesmiths.com/wiki/VVG:Overview":
<div align="center"><font size="-3">| <b><a
href="/wiki/index.php/Veggie_Van_Gogh" title="Veggie Van
Gogh">Veggie
Van Gogh</a></b> |<br />
<p>| <a href="/wiki/index.php/VVG:Fuel_system" title="VVG:Fuel
system">Fuel system</a> | <a
href="/wiki/index.php/VVG:Body%2C_chassis%2C_driveline"
title="VVG:Body, chassis, driveline">Body, chassis, driveline</a> |
<a
href="/wiki/index.php?title=VVG:Electronics&action=edit"
class="new" title="VVG:Electronics">Electronics</a> | <a
href="/wiki/index.php/VVG:Living_quarters" title="VVG:Living
quarters">Living quarters</a> | <a
href="/wiki/index.php/VVG:FAQ"
title="VVG:FAQ">FAQ</a> | <a
href="/wiki/index.php/Biofuel_links"
title="Biofuel links">Biofuel links</a> |</font>
</p>
</div>
<p><br /><i><b>Fuel system:</b></i> | <a
href="/wiki/index.php/VVG:Overview"
title="VVG:Overview">Overview</a> |
<a href="/wiki/index.php/VVG:Common_components" title="VVG:Common
components">Common components</a> | <a
href="/wiki/index.php/VVG:Filling"
title="VVG:Filling">Filling</a> | <a
href="/wiki/index.php/VVG:Plumbing"
title="VVG:Plumbing">Plumbing</a> |
<a href="/wiki/index.php?title=VVG:Vegetable_oil&action=edit"
class="new" title="VVG:Vegetable oil">Vegetable oil</a> |
<a
href="/wiki/index.php?title=VVG:Electrical&action=edit"
class="new"
title="VVG:Electrical">Electrical</a>
|</font></div><br />
</p>
And if you can visualize HTML no better than I, the stuff from
"Template:VVG_menu_top" is centered and in a smaller font, but the
stuff after that is left-justified, in normal font, and the final
closing "</font></div>" show up literally. The HTML clearly contains
a
closing "</font></p></div>" after the first inclusion.
I made other changes that became visible, to convince myself this was
not some obscure caching problem.
This is 1.4.0. I've been putting off merging with later releases --
could that be the problem?
A nice simple example, similar to what you're
trying, is
http://en.wikipedia.org/wiki/Template:Vfd_top and
http://en.wikipedia.org/wiki/Template:Vfd_bottom - the first opens a
div, the second closes it.
Yea, I can see that happening, specifically on
Wikipedia:Deletion_process
But it looks
like the {{menu top}} is getting closed off with
"</font></p></div>", even though I did no such thing.
Are you looking at the source of just the template page on its own,
out of context?
In the case above, I'm including the first template from the second
that is supposed to close the open tags. I'm looking at both the second
template, and also a page that includes it. I have tried it with both
templates independent, and included independently on another page.
:::: Where a calculator on the ENIAC is equipped with 18,000 vacuum
tubes and weighs 30 tons, computers in the future may have only 1,000
vacuum tubes and weigh only 1 1/2 tons. -- Popular Mechanics, March
1949
:::: Jan Steinman <http://www.Bytesmiths.com/Item/99AP35>