Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

Formatting links according to the wikiproject

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


heldergeovane at gmail

Jul 6, 2009, 7:42 AM

Post #1 of 6 (635 views)
Permalink
Formatting links according to the wikiproject

Hi!

Is there any way of customize the formatting of links according to the
wikiproject that they are pointing to?
For example, if at Wikibooks we want to make the links to Wikipedia to be
green and the links to the Wiktionary to have and dotted grey underline (or
if some user wants to have a complete rainbow of colors and effects in his
links ;-)), or each of these links have an small icon corresponding to the
project, how could this be achieved? Is there any css classes for the links?

Thanks,
Helder
_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


ahmad.m.sherif at gmail

Jul 6, 2009, 10:19 AM

Post #2 of 6 (598 views)
Permalink
Re: Formatting links according to the wikiproject [In reply to]

Perhaps you're looking for something like this:

a.extiw[href *=".wikipedia"] { /* change "wikipedia" to the project you want */
/* */
}

Ahmad Sherif

On Mon, Jul 6, 2009 at 5:42 PM, Helder Geovane Gomes de
Lima<heldergeovane [at] gmail> wrote:
> Hi!
>
> Is there any way of customize the formatting of links according to the
> wikiproject that they are pointing to?
> For example, if at Wikibooks we want to make the links to Wikipedia to be
> green and the links to the Wiktionary to have and dotted grey underline (or
> if some user wants to have a complete rainbow of colors and effects in his
> links ;-)), or each of these links have an small icon corresponding to the
> project, how could this be achieved? Is there any css classes for the links?
>
> Thanks,
> Helder
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Simetrical+wikilist at gmail

Jul 6, 2009, 12:31 PM

Post #3 of 6 (602 views)
Permalink
Re: Formatting links according to the wikiproject [In reply to]

On Mon, Jul 6, 2009 at 1:19 PM, Ahmad Sherif<ahmad.m.sherif [at] gmail> wrote:
> Perhaps you're looking for something like this:
>
> a.extiw[href *=".wikipedia"] { /* change "wikipedia" to the project you want */
> /*  */
> }

It would be more reliable to do something like

a.extiw[href*=.wikipedia.org/w] { ... }

but that would still match any interwiki URL containing
".wikipedia.org/w", so theoretically false positives are possible.
And it doesn't work in IE6. Still, that's about the best you can do,
I think.

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


ahmad.m.sherif at gmail

Jul 6, 2009, 1:00 PM

Post #4 of 6 (600 views)
Permalink
Re: Formatting links according to the wikiproject [In reply to]

> but that would still match any interwiki URL containing
> ".wikipedia.org/w", so theoretically false positives are possible.
> And it doesn't work in IE6.  Still, that's about the best you can do,
> I think.

We make it strict to #bodyContent then :)

#bodyContent a.extiw[href*=.wikipedia.org/w] { ... }

On Mon, Jul 6, 2009 at 10:31 PM, Aryeh
Gregor<Simetrical+wikilist [at] gmail> wrote:
> On Mon, Jul 6, 2009 at 1:19 PM, Ahmad Sherif<ahmad.m.sherif [at] gmail> wrote:
>> Perhaps you're looking for something like this:
>>
>> a.extiw[href *=".wikipedia"] { /* change "wikipedia" to the project you want */
>> /*  */
>> }
>
> It would be more reliable to do something like
>
> a.extiw[href*=.wikipedia.org/w] { ... }
>
> but that would still match any interwiki URL containing
> ".wikipedia.org/w", so theoretically false positives are possible.
> And it doesn't work in IE6.  Still, that's about the best you can do,
> I think.
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Simetrical+wikilist at gmail

Jul 6, 2009, 1:44 PM

Post #5 of 6 (598 views)
Permalink
Re: Formatting links according to the wikiproject [In reply to]

On Mon, Jul 6, 2009 at 4:00 PM, Ahmad Sherif<ahmad.m.sherif [at] gmail> wrote:
> We make it strict to #bodyContent then :)
>
> #bodyContent a.extiw[href*=.wikipedia.org/w] { ... }

[.[.b:Look at this strange Wikibooks page name! .wikipedia.org/what a
strange name]]

I'm not saying it's likely, but false positives are possible, and that
should be kept in mind.

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


heldergeovane at gmail

Jul 17, 2009, 7:48 PM

Post #6 of 6 (551 views)
Permalink
Re: Formatting links according to the wikiproject [In reply to]

2009/7/6, Aryeh Gregor <Simetrical+wikilist [at] gmail>:
> On Mon, Jul 6, 2009 at 4:00 PM, Ahmad Sherif<ahmad.m.sherif [at] gmail>
> wrote:
>> We make it strict to #bodyContent then :)
>>
>> #bodyContent a.extiw[href*=.wikipedia.org/w] { ... }
>
> [.[.b:Look at this strange Wikibooks page name! .wikipedia.org/what a
> strange name]]
>
> I'm not saying it's likely, but false positives are possible, and that
> should be kept in mind.
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>

_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.