Hello,
I created a template called "Box Blue" as follows...
{|style="border-spacing:8px;margin: 1em auto 1em .5em; width: auto;" | style="width:100%;border:1px solid #cedff2;background-color:#f5faff;vertical-align:top;color:#000"| {| width="100%" cellpadding="2" cellspacing="5" style="vertical-align:top;background-color:#f5faff;color:#000" ! <div style="margin:0;background-color:#cedff2;border:1px solid #a3b1bf;text-align:left;color:#000;padding:0.2em 0.4em;"> {{{1}}} </div> |- |style="color:#000"| {{{2}}} |- |} |}
... But I can't figure out a way to use it with headings. I want to do something like this...
{{Box Blue| === Some Heading === | * Some ** Stuff }}
I can get most wiki markup inside there except for the === headings ===.
The thing is, if I don't use a template and were to paste "=== Some Heading ===" in place of {{{1}}} it would work fine and make its way into the table of contents and everything.
Is this a bug, not supported, or supported in a later version than I am running?
I am using MediaWiki 1.7.1
Thanks, ~Eric
I am trying to include within an import (using Special:Import) some text for editors, below:
<!-- list your name below this line -->
It is guidance to help users know where to input their names into a 3 column table. Unfortunately although everything else imports fine this text disappears. I am assuming Mediawiki ignores it?
Is there a way to present text for editors that does not appear on the page but can be imported?
My only other idea which is a bit of a band aid is to create a template called "Put your name of the next line down"! I would put only a single space character into the page.
It would appear as {{Put your name of the next line down}} in the markup but nothing would appear on the page itself.
Paul
You need to escape the XML like characters. Use:
<!-- list your name below this line -->
In the content section of the XML you're trying to import.
joe
in the actual page content
On Feb 26, 2007, at 3:07 PM, Paul Coghlan wrote:
I am trying to include within an import (using Special:Import) some text for editors, below:
<!-- list your name below this line -->
It is guidance to help users know where to input their names into a 3 column table. Unfortunately although everything else imports fine this text disappears. I am assuming Mediawiki ignores it?
Is there a way to present text for editors that does not appear on the page but can be imported?
My only other idea which is a bit of a band aid is to create a template called "Put your name of the next line down"! I would put only a single space character into the page.
It would appear as {{Put your name of the next line down}} in the markup but nothing would appear on the page itself.
Paul
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Thanks Joe, that worked like a dream. I just needed to tweak it slightly.
In case anyone else uses this you need to insert a semi-colon after the first character as demonstrated below.
<!;-- your text -->
Thanks again. Paul
On 2/26/07 7:01 PM, "Joe Keenan" jkeenan@apple.com wrote:
You need to escape the XML like characters. Use:
<!-- list your name below this line -->
In the content section of the XML you're trying to import.
joe
in the actual page content
On Feb 26, 2007, at 3:07 PM, Paul Coghlan wrote:
I am trying to include within an import (using Special:Import) some text for editors, below:
<!-- list your name below this line -->
It is guidance to help users know where to input their names into a 3 column table. Unfortunately although everything else imports fine this text disappears. I am assuming Mediawiki ignores it?
Is there a way to present text for editors that does not appear on the page but can be imported?
My only other idea which is a bit of a band aid is to create a template called "Put your name of the next line down"! I would put only a single space character into the page.
It would appear as {{Put your name of the next line down}} in the markup but nothing would appear on the page itself.
Paul
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
Oops. Cut & Paste error. :)
joe
On Feb 27, 2007, at 6:20 AM, Paul Coghlan wrote:
Thanks Joe, that worked like a dream. I just needed to tweak it slightly.
In case anyone else uses this you need to insert a semi-colon after the first character as demonstrated below.
<!;-- your text -->
Thanks again. Paul
On 2/26/07 7:01 PM, "Joe Keenan" jkeenan@apple.com wrote:
You need to escape the XML like characters. Use:
<!-- list your name below this line -->
In the content section of the XML you're trying to import.
joe
in the actual page content
On Feb 26, 2007, at 3:07 PM, Paul Coghlan wrote:
I am trying to include within an import (using Special:Import) some text for editors, below:
<!-- list your name below this line -->
It is guidance to help users know where to input their names into a 3 column table. Unfortunately although everything else imports fine this text disappears. I am assuming Mediawiki ignores it?
Is there a way to present text for editors that does not appear on the page but can be imported?
My only other idea which is a bit of a band aid is to create a template called "Put your name of the next line down"! I would put only a single space character into the page.
It would appear as {{Put your name of the next line down}} in the markup but nothing would appear on the page itself.
Paul
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
Anybody?
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Frederich, Eric P21322 Sent: Monday, February 26, 2007 5:18 PM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] wiki markup in templates
Hello,
I created a template called "Box Blue" as follows...
{|style="border-spacing:8px;margin: 1em auto 1em .5em; width: auto;" | style="width:100%;border:1px solid #cedff2;background-color:#f5faff;vertical-align:top;color:#000"| {| width="100%" cellpadding="2" cellspacing="5" style="vertical-align:top;background-color:#f5faff;color:#000" ! <div style="margin:0;background-color:#cedff2;border:1px solid #a3b1bf;text-align:left;color:#000;padding:0.2em 0.4em;"> {{{1}}} </div> |- |style="color:#000"| {{{2}}} |- |} |}
... But I can't figure out a way to use it with headings. I want to do something like this...
{{Box Blue| === Some Heading === | * Some ** Stuff }}
I can get most wiki markup inside there except for the === headings ===.
The thing is, if I don't use a template and were to paste "=== Some Heading ===" in place of {{{1}}} it would work fine and make its way into the table of contents and everything.
Is this a bug, not supported, or supported in a later version than I am running?
I am using MediaWiki 1.7.1
Thanks, ~Eric
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Is your wiki exposed to the public where we can confirm, tweak and test?
On 2/28/07, Frederich, Eric P21322 eric.frederich@siemens.com wrote:
Anybody?
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Frederich, Eric P21322 Sent: Monday, February 26, 2007 5:18 PM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] wiki markup in templates
Hello,
I created a template called "Box Blue" as follows...
{|style="border-spacing:8px;margin: 1em auto 1em .5em; width: auto;" | style="width:100%;border:1px solid #cedff2;background-color:#f5faff;vertical-align:top;color:#000"| {| width="100%" cellpadding="2" cellspacing="5" style="vertical-align:top;background-color:#f5faff;color:#000" ! <div style="margin:0;background-color:#cedff2;border:1px solid #a3b1bf;text-align:left;color:#000;padding:0.2em 0.4em;"> {{{1}}}
</div> |- |style="color:#000"| {{{2}}} |- |} |}
... But I can't figure out a way to use it with headings. I want to do something like this...
{{Box Blue| === Some Heading === |
- Some
** Stuff }}
I can get most wiki markup inside there except for the === headings ===.
The thing is, if I don't use a template and were to paste "=== Some Heading ===" in place of {{{1}}} it would work fine and make its way into the table of contents and everything.
Is this a bug, not supported, or supported in a later version than I am running?
I am using MediaWiki 1.7.1
Thanks, ~Eric
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
Use {{Box Blue|1====Some Heading===|2=* Some ** Stuff }}
ie. you are providing '===Some Heading===' as the parameter of name '1'. The presence of '=' on the value confuses the parser, so you need to tell it the name parameter name. It also fails with urls like www.example.org?id=1
Altenatively, you can use use {{Box Blue|<h3>Some Heading</h3>|* Some ** Stuff}} which doesn't use '='s
Thanks, that seems to have worked. Although it seems that if you use 1=, you must also use 2=. Is that true?
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Platonides Sent: Wednesday, February 28, 2007 1:49 PM To: mediawiki-l@lists.wikimedia.org Subject: Re: [Mediawiki-l] wiki markup in templates
Use {{Box Blue|1====Some Heading===|2=* Some ** Stuff }}
ie. you are providing '===Some Heading===' as the parameter of name '1'.
The presence of '=' on the value confuses the parser, so you need to tell it the name parameter name. It also fails with urls like www.example.org?id=1
Altenatively, you can use use {{Box Blue|<h3>Some Heading</h3>|* Some ** Stuff}} which doesn't use '='s
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Frederich, Eric P21322 wrote:
Thanks, that seems to have worked. Although it seems that if you use 1=, you must also use 2=. Is that true?
Yes, if you use the number, then seems to get confused on the order of the other elements. It probably will be fixed someday.
Sorry, it is not. It is on our intranet. There should be enough information in my original post to test (A single template and an example of using it).
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jim Wilson Sent: Wednesday, February 28, 2007 1:33 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] wiki markup in templates
Is your wiki exposed to the public where we can confirm, tweak and test?
On 2/28/07, Frederich, Eric P21322 eric.frederich@siemens.com wrote:
Anybody?
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of
Frederich,
Eric P21322 Sent: Monday, February 26, 2007 5:18 PM To: MediaWiki announcements and site admin list Subject: [Mediawiki-l] wiki markup in templates
Hello,
I created a template called "Box Blue" as follows...
{|style="border-spacing:8px;margin: 1em auto 1em .5em; width: auto;" | style="width:100%;border:1px solid #cedff2;background-color:#f5faff;vertical-align:top;color:#000"| {| width="100%" cellpadding="2" cellspacing="5" style="vertical-align:top;background-color:#f5faff;color:#000" ! <div style="margin:0;background-color:#cedff2;border:1px solid #a3b1bf;text-align:left;color:#000;padding:0.2em 0.4em;"> {{{1}}}
</div> |- |style="color:#000"| {{{2}}} |- |} |}
... But I can't figure out a way to use it with headings. I want to do something like this...
{{Box Blue| === Some Heading === |
- Some
** Stuff }}
I can get most wiki markup inside there except for the === headings
===.
The thing is, if I don't use a template and were to paste "=== Some Heading ===" in place of {{{1}}} it would work fine and make its way into the table of contents and everything.
Is this a bug, not supported, or supported in a later version than I
am
running?
I am using MediaWiki 1.7.1
Thanks, ~Eric
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