Hello,
I'd like to have a small text in all the pages from the same namespace(Talk:). What I mean is like the "fund raising" text from mediawiki(not editable)... but only in for a distinct namespace pages. Is there a template somewhere for each namespace that I can hack?
Thanks François
On Sun, 06 Mar 2005 09:37:27 +0100, FxParlant f-x.p@laposte.net wrote:
I'd like to have a small text in all the pages from the same namespace(Talk:). What I mean is like the "fund raising" text from mediawiki(not editable)... but only in for a distinct namespace pages. Is there a template somewhere for each namespace that I can hack?
No, but you might be able to hack something up with CSS (or even JavaScript?), using the "ns-2" class (or ns-X, where X is the internal number of the namespace in question). I'm pretty sure you can actually have a CSS rule that adds text to a particular element (somebody was trying to implement it for the print-only URL-expansions on ext. links, but I can't remember the details), so with a bit of playing, that could be a way forward.
What would be the best approach to auto display data as simple graph images? For example, "population over time" (in years).
I assume the data would need to be in a mySQL table. Is the best solution to use an extension and then use php to generate the table? If so, does the standard php graphics addon provide the tools? (?Graphix? Magix?) If so, anyone have a link bookmarked for documentation?
James Birkholz admin, Posen-L mailing list and website http://www.Posen-L.com
The GD library (which is currently built in to PHP) is able to generate such graphs, but it does not have any specific features for that. See http://www.php.net/gd for information on these functions.
As for the data to import, I would think you could be more flexable than MySQL. But that's up to you.
On Sun, 06 Mar 2005 13:40:51 -0600, =James Birkholz= j.birchwood@verizon.net wrote:
What would be the best approach to auto display data as simple graph images? For example, "population over time" (in years).
I assume the data would need to be in a mySQL table. Is the best solution to use an extension and then use php to generate the table? If so, does the standard php graphics addon provide the tools? (?Graphix? Magix?) If so, anyone have a link bookmarked for documentation?
James Birkholz admin, Posen-L mailing list and website http://www.Posen-L.com
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Hi Rowan,
I never thought it could be achieved through css (at least not with Firefox1 or IE6 implementations of css). I guess that I could play with the "display:none" value of a specific div, or , ns-X. I'll have a look in the archive if I can find something dealing with css and ns_X.
Thanks for the hint François
Rowan Collins wrote:
On Sun, 06 Mar 2005 09:37:27 +0100, FxParlant f-x.p@laposte.net wrote:
I'd like to have a small text in all the pages from the same namespace(Talk:). What I mean is like the "fund raising" text from mediawiki(not editable)... but only in for a distinct namespace pages. Is there a template somewhere for each namespace that I can hack?
No, but you might be able to hack something up with CSS (or even JavaScript?), using the "ns-2" class (or ns-X, where X is the internal number of the namespace in question). I'm pretty sure you can actually have a CSS rule that adds text to a particular element (somebody was trying to implement it for the print-only URL-expansions on ext. links, but I can't remember the details), so with a bit of playing, that could be a way forward.
On Sun, 6 Mar 2005 19:27:06 +0000, Rowan Collins rowan.collins@gmail.com wrote:
On Sun, 06 Mar 2005 09:37:27 +0100, FxParlant f-x.p@laposte.net wrote: No, but you might be able to hack something up with CSS (or even JavaScript?), using the "ns-2" class (or ns-X, where X is the internal number of the namespace in question). I'm pretty sure you can actually have a CSS rule that adds text to a particular element...
There is something in CSS for this, in the psuedo-elements. :before and :after, coupled with the content property, would allow you to place a specific thing either just before or just after something. See http://www.w3schools.com/css/css_pseudo_elements.asp. (Unfortunately, it appears from their table that neither Netscape nor IE support it.)
-- Jamie ------------------------------------------------------------------- http://endeavour.zapto.org/astro73/ Thank you to JosephM for inviting me to Gmail! Has lots of invites.
mediawiki-l@lists.wikimedia.org