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@sanmar.com
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@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@sanmar.com
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
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@sanmar.com
-----Original Message----- From: mediawiki-l-bounces@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@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@sanmar.com
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Just as further follow-up ..
1) if you use actual HTML table then the blank line is not necessary. Problem only exists using Wiki format table 2) if you use <br/> the template works but there is also a blank line. So instead put a comment on the first line, then a blank line then the table starts on line 3.
Example:
---------------------------- top of editpage ---------------------- <!-- comment line 1 -->
{| Some stuff Some stuff ....
)
Hope this helps someone else ..
Thanks
DSig David Tod Sigafoos | SANMAR Corporation PICK Guy 206-770-5585 davesigafoos@sanmar.com
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Dave Sigafoos Sent: Tuesday, June 05, 2007 6:47 To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Understanding Templates - inuse
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@sanmar.com
-----Original Message----- From: mediawiki-l-bounces@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@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@sanmar.com
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org