From: "Rob Church" robchur@gmail.com Date: January 2, 2007 6:33:39 AM EST To: "MediaWiki announcements and site admin list" <mediawiki- l@wikimedia.org> Subject: Re: [Mediawiki-l] Template to list 10 most recent created pages Reply-To: MediaWiki announcements and site admin list <mediawiki- l@Wikimedia.org>
On 02/01/07, Vernon Thommeret synotic@gmail.com wrote:
The extension works well enough for me, but I just have a minor quip: addHTML() seems to be ignoring any newlines I put in. Is there a way to get around this? I also can't figure out how to remove the
I'm not quite sure what you mean. Where are you adding newlines? A newline character is totally meaningless within HTML, remember - we have paragraph markup, and line breaks for that.
I'm just trying to present my markup a certain way. For instance, instead of "<ol><li>", I'd format my code as "<ol>\n\t<li>". Using $wgOut->addHTML, this generally works (and I've tested it in other extensions), but it seems to have a really curious behavior in the Newestpages extension. If I write "$wgOut->addHTML("coca\cola")" in the other extensions I've tried, I get the expected "coca" followed by a newline, followed by "cola". However, with Newestpages I get: "<p>coca</p>\ncola". It almost seems as if it is using addWikiText instead of addHTML, but in my tests, addWikiText adds simply "<p>cocacola</p>" given "coca\ncola".
All of this behavior is even stranger when I look at the only definition for the addHTML function:
function addHTML( $text ) { $this->mBodytext .= $text; }
There seems to be nothing that would cause it to do anything but append the text to the main text. Could the text be somehow filtered before it gets sent? Again, I realize that this is a minor point, but I like to keep clean, functional markup, and a lot of extraneous "<p></p>"s and confusing markup display defeats that.
Thanks.
On 02/01/07, Vernon Thommeret synotic@gmail.com wrote:
There seems to be nothing that would cause it to do anything but append the text to the main text. Could the text be somehow filtered before it gets sent? Again, I realize that this is a minor point, but I like to keep clean, functional markup, and a lot of extraneous "<p></p>"s and confusing markup display defeats that.
Yes. When an includable special page is included, it outputs in the same manner, but what it *doesn't* know is that $wgOut is a different instance of the OutputPage object, swapped in for that one use. Once the execution function returns, the content from that OutputPage is grabbed and poked into the parsed output.
This is probably not ideal, to be honest; we'd really like to keep the parser as atomic as possible. I would suggest, in the long term, we move to all includable special pages having a specific include() or similar member which returns raw HTML.
Rob Church
I would like the home page of my wiki to include the list of categories as well as other information. The special page Special:Categories generates a list of all the categories on the Wiki, however this is not a page that can be edited. If there a way to have the list of categories embeded into part of a normal page? For example, can I have as my home page:
MY TEXT HERE...BLA....BLA...BLA... BLA....BLA...BLA... (contents of Special:Categories here) MORE OF MY TEXT HERE...BLA....BLA...BLA... BLA....BLA...BLA...
Barring that, how do I edit the appearance of the Special:Categories page?
Thanks,
--Bruce
________________________________________________________________________ Check out the new AOL. Most comprehensive set of free safety and security tools, free access to millions of high-quality videos from across the web, free AOL Mail and more.
Hi all, ___________________________________________________________________
Can I disable RSS in my Mediawiki? How? Thanks, mauro.
___________________________________________________________________
Hi all, ________________________________________________________________________________
I was wondering if it is possible to use <pre> in a such way that it doesn't expand over the limit of the brouser 's window. I mean, that <pre> would have a similar effect as <blockquote> without the indent.
Thanks a lot, []'s mauro.
________________________________________________________________________________
|-----Original Message----- |From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l- |bounces@lists.wikimedia.org] On Behalf Of Mauro do Carmo |Sent: Friday, January 12, 2007 2:14 PM |To: 'MediaWiki announcements and site admin list' |Subject: [Mediawiki-l] RSS | |Hi all, |___________________________________________________________________ | | |Can I disable RSS in my Mediawiki? How? Thanks, mauro. | | |___________________________________________________________________ | |-- |Internal Virus Database is out-of-date. |Checked by AVG Free Edition. |Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 |PM | | |_______________________________________________ |MediaWiki-l mailing list |MediaWiki-l@lists.wikimedia.org |http://lists.wikimedia.org/mailman/listinfo/mediawiki-l | |-- |Internal Virus Database is out-of-date. |Checked by AVG Free Edition. |Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 |PM |
What i did in this case: indent with : indented
Or <code>formated text</code>
btw: Pleaase do NOT open new topics by replying to any message (e.g., with the answer-feature of your emailclient. Instead, create a new email to mediawiki-l@lists.wikimedia.org
Regards, Jan
Mauro do Carmo schrieb:
Hi all, ________________________________________________________________________________
I was wondering if it is possible to use <pre> in a such way that it doesn't expand over the limit of the brouser 's window. I mean, that <pre> would have a similar effect as <blockquote> without the indent.
Thanks a lot, []'s mauro.
Thanks for the tips, but I really would like the same effect of <pre> tag as the blue backgroundcolor, the border, and the rectangular format, all of that within the limit of the border of the browser's window.
Normally if you use the tag <pre> and type a long line within it, the line goes forever in the horizontal over the browser's window. I have even to scroll right the page in order to see the long line. I don't want that. I want the line break naturally when it reaches the vertical border of the browser's window.
Thanks you so much, []'s mauro.
|-----Original Message----- |From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l- |bounces@lists.wikimedia.org] On Behalf Of Jan |Sent: Saturday, January 13, 2007 4:32 PM |To: MediaWiki announcements and site admin list |Subject: Re: [Mediawiki-l] <pre> | |What i did in this case: |indent with |: indented | |Or |<code>formated text</code> | |btw: Pleaase do NOT open new topics by replying to any message (e.g., with the |answer-feature of your emailclient. Instead, create a new email to |mediawiki-l@lists.wikimedia.org | |Regards, |Jan | | |Mauro do Carmo schrieb: |> Hi all, |> |_______________________________________________________________________________ |_ |> |> I was wondering if it is possible to use <pre> in a such way that it doesn't |> expand over the limit of the brouser 's window. I mean, that <pre> would have |a |> similar effect as <blockquote> without the indent. |> |> |> |> Thanks a lot, []'s mauro. | | |_______________________________________________ |MediaWiki-l mailing list |MediaWiki-l@lists.wikimedia.org |http://lists.wikimedia.org/mailman/listinfo/mediawiki-l | |-- |No virus found in this incoming message. |Checked by AVG Free Edition. |Version: 7.5.432 / Virus Database: 268.16.10/624 - Release Date: 1/12/2007 2:04 |PM |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Moin,
On Sunday 14 January 2007 01:53, Mauro do Carmo wrote:
Thanks for the tips, but I really would like the same effect of <pre> tag as the blue backgroundcolor, the border, and the rectangular format, all of that within the limit of the border of the browser's window.
Normally if you use the tag <pre> and type a long line within it, the line goes forever in the horizontal over the browser's window. I have even to scroll right the page in order to see the long line. I don't want that. I want the line break naturally when it reaches the vertical border of the browser's window.
Thanks you so much, []'s mauro.
Normally, you could just use "style" with pre like so:
<pre style="max-width: 65em;"> </pre>
width=90% should work, too, but I haven't tested that.
At leats in former mediawiki releases that was the case, and it got broken somewhere along the line. I am not sure it still works in the latest release. As a workaround you might enable the use of "style" with the "pre" tag in the Sanitizer source code, which should be somewhere in Sanitizer.php or something like that.
When it works, you can just create a template called pre like so:
<pre style="...">{{{txt|enter text here}}}</pre>
Then use it like so:
{{pre|txt= my very very long long line here }}
Hope that helps,
Tels
- -- Signed on Sun Jan 14 10:10:17 2007 with key 0x93B84C15. View my photo gallery: http://bloodgate.com/photos PGP key on http://bloodgate.com/tels.asc or per email.
"Blogebrity: Wow, guess what this one stands for? Too easy. Hey, anyone can do it: take a blogger who's a chef, and you get: BLEF. A blogger who's a dentist? BENTIST. A female blogger with an itch? You guessed it: a BITCH." -- maddox from xmission
Thanks so much for the tips, but unfortunately it didn't work in y wiki version 1.6.8 :(
However, we are almost there: look the two examples we have below. The only thing I need now is to have the border of the tag <pre> into the tag <div>. So, I have to change this border: 1px dotted #aaa in some how, in order to get the appearance of the border of the tag <pre>.
Thanks a lot, []'s mauro.
----1----- <pre> long line long line long line long line long line long line long line long line long line long linelong line long line long line long line long linelong line long line long line long line long linelong line long line long line long line </pre>
----2-----
<div id="sandbox_warning" style="padding:5px; background: #f9f9f9; border: 1px dotted #aaa; border-bottom-width: 2px;"> long line long line long line long line long line long line long line long line long line long linelong line long line long line long line long linelong line long line long line long line long linelong line long line long line long line </div> ---------
|-----Original Message----- |From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l- |bounces@lists.wikimedia.org] On Behalf Of Tels |Sent: Sunday, January 14, 2007 1:13 AM |To: MediaWiki announcements and site admin list |Subject: Re: [Mediawiki-l] <pre> | |-----BEGIN PGP SIGNED MESSAGE----- |Hash: SHA1 | |Moin, | |On Sunday 14 January 2007 01:53, Mauro do Carmo wrote: |> Thanks for the tips, but I really would like the same effect of <pre> tag |> as the blue backgroundcolor, the border, and the rectangular format, all |> of that within the limit of the border of the browser's window. |> |> Normally if you use the tag <pre> and type a long line within it, the |> line goes forever in the horizontal over the browser's window. I have |> even to scroll right the page in order to see the long line. I don't want |> that. I want the line break naturally when it reaches the vertical border |> of the browser's window. |> |> Thanks you so much, []'s mauro. | |Normally, you could just use "style" with pre like so: | | <pre style="max-width: 65em;"> | </pre> | |width=90% should work, too, but I haven't tested that. | |At leats in former mediawiki releases that was the case, and it got broken |somewhere along the line. I am not sure it still works in the latest |release. As a workaround you might enable the use of "style" with the "pre" |tag in the Sanitizer source code, which should be somewhere in |Sanitizer.php or something like that. | |When it works, you can just create a template called pre like so: | | <pre style="...">{{{txt|enter text here}}}</pre> | |Then use it like so: | | {{pre|txt= | my very very long long line here | }} | |Hope that helps, | |Tels | |- -- | Signed on Sun Jan 14 10:10:17 2007 with key 0x93B84C15. | View my photo gallery: http://bloodgate.com/photos | PGP key on http://bloodgate.com/tels.asc or per email. | | "Blogebrity: Wow, guess what this one stands for? Too easy. Hey, anyone | can do it: take a blogger who's a chef, and you get: BLEF. A blogger | who's a dentist? BENTIST. A female blogger with an itch? You guessed it: | a BITCH." -- maddox from xmission | |-----BEGIN PGP SIGNATURE----- |Version: GnuPG v1.4.2 (GNU/Linux) | |iQEVAwUBRan0MXcLPEOTuEwVAQLk1wf/VMX1qztej20tZUlNTumxJDbg3zwB52yE |vVPA/9uH8yB6hm3WdniA9N/R7xFyVRHKs18o/0iX+miCedW8NEFU9wPtDWBNn2+i |q2LKmjNPzx7Xr925oH2sAuwYTPrhEbjElLX7HfmQO1NirFeiIyAHAXyL/okh65N1 |o4yL1JvUaA+7uOFGbY47abMnwHCj2OD2TIy/lTu1FYpdHNb/o5p27l+TsOYNby5U |QUepGdW+yUxBV/B9tqzJVWbf1SjH+zo7F3P2xwMPwswAPPnaMB8AFYb4KnDU7ua2 |cx29MzsEC1E7ezBnsLNFXjGdCd1gfjvv/djXVeZFQSWXlk+tZjBMtg== |=czEx |-----END PGP SIGNATURE----- | |_______________________________________________ |MediaWiki-l mailing list |MediaWiki-l@lists.wikimedia.org |http://lists.wikimedia.org/mailman/listinfo/mediawiki-l | |-- |No virus found in this incoming message. |Checked by AVG Free Edition. |Version: 7.5.432 / Virus Database: 268.16.10/624 - Release Date: 1/12/2007 2:04 |PM |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Moin,
On Sunday 14 January 2007 19:39, Mauro do Carmo wrote:
Thanks so much for the tips, but unfortunately it didn't work in y wiki version 1.6.8 :(
However, we are almost there: look the two examples we have below. The only thing I need now is to have the border of the tag <pre> into the tag
<div>. So, I have to change this border: 1px dotted #aaa in some how, in order to get the appearance of the border of the tag <pre>.
Thanks a lot, []'s mauro.
Did you try "dashed"? :)
best wishes,
tels
- -- Signed on Sun Jan 14 21:38:35 2007 with key 0x93B84C15. Get one of my photo posters: http://bloodgate.com/posters PGP key on http://bloodgate.com/tels.asc or per email.
"Now, _you_ behave!"
mediawiki-l@lists.wikimedia.org