Thanks for that.
What we found is that IF the template has a <br/> or 2 carriage returns
(one gets stripped automatically) then the template works correctly. If
not .. not.
If we put the <br/> or 2 blank lines in the caller the template still
did not work ..
So .. the template has to be set up right with a blank line at the
beginning.
This is *specific* to inuse and underconstruction which are primarily a
table (from wikipedia)
DSig
David Tod Sigafoos | SANMAR Corporation
PICK Guy
206-770-5585
davesigafoos(a)sanmar.com
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jim Wilson
Sent: Monday, June 04, 2007 12:58
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Understanding Templates - inuse
MediaWiki only recognizes the "{|" table mneumonic when it's the first
thing
on a line.
So if your template starts out with "{|" - that's fine, but the caller
also
has to align things in such a way that the result starts a line. So
this
should work:
{{inuse}}
While this probably wouldn't:
Some text {{inuse}}
You can get around this by inserting a leading return character
(newline) at
the beginning of your Template:Inuse article. (unless MW strips leading
whitespace, but I don't think it does).
-- Jim R. Wilson (jimbojw)
On 6/4/07, Dave Sigafoos <davesigafoos(a)sanmar.com> wrote:
We are moving into templates and so using the 'inuse' template that
was
suggested to me last week ..
I exported and imported
I saved/uploaded image
After a little fitzing (technical term for not sure what's happening
:)
when preview/view Template:inuse it looks really
nice.
Now I put it in a page and before the image I get
{| class="messagebox plainlinks" id="inuse" style="border: 1px
solid
#5A8261; background-color: #CCFFCC;" |-
| style="width: 70px" |
Then the image and then the text
Ideas on why it would look different when viewing the template direct
than it does when you {{inuse}}
Thanks
DSig
David Tod Sigafoos | SANMAR Corporation
PICK Guy
206-770-5585
davesigafoos(a)sanmar.com
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l