[Mediawiki-l] Div-Tags in {{Templates}}

MHart wiki at matthart.com
Tue Oct 18 17:23:52 UTC 2005


Why don't you just use:

{{divtag|
all your content
}}

?  That's the standard-ish way. The close part of the div tag can be dozens 
of lines long if you want, as can the start.

Otherwise use an extension with <tag>content</tag>

- MHart


----- Original Message ----- 
From: "Rob Church" <robchur at gmail.com>
To: "MediaWiki announcements and site admin list" 
<mediawiki-l at wikimedia.org>
Sent: Tuesday, October 18, 2005 6:58 AM
Subject: Re: [Mediawiki-l] Div-Tags in {{Templates}}


I believe it's part of the sanitising parser, which cleans up all your
nasty HTML and makes it XHTML compliant. In short, not to my
knowledge, but perhaps Brion knows a trick he's keeping locked up...:P


Rob Church

On 17/10/05, Campino <campi at daocpedia.de> wrote:
> Hi,
> i want to make two templates. The first starts some "complicated" <div>
> Tags. The second should close all these tags. Between the two Tags is
> the content. An example:
> {{BoxStart}}
> Content
> {{BoxEnde}}
>
> My Problem: All the <div> Tags get closed automaticly from the MediaWiki
> Software after the first template endes (that means: before the Content
> starts). Is there a way, to prevent the MediaWiki to do this?
>
> Mfg
> Campino aka Stefan
> --
> http://www.daocpedia.de
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l 





More information about the MediaWiki-l mailing list