auto linking to sensei's library

Is something wrong? Do you have any suggestions? Let us know.
Post Reply
willemien
Lives in gote
Posts: 350
Joined: Fri Apr 23, 2010 7:28 am
Rank: EGF 12kyu
GD Posts: 0
DGS: willemien
Location: London UK
Has thanked: 19 times
Been thanked: 19 times

auto linking to sensei's library

Post by willemien »

Is maybe far fetched and impossible, but what i would like is that (as on sensei's library we can link to other pages (in sensei's library ) by putting them in [brackets] without haveing to use to typ thewhole http link.

(I am rather lazy :lazy:)
Promotor and Librarian of Sensei's Library
User avatar
Harleqin
Lives in sente
Posts: 921
Joined: Sat Mar 06, 2010 10:31 am
Rank: German 2 dan
GD Posts: 0
Has thanked: 401 times
Been thanked: 164 times

Re: auto linking to sensei's library

Post by Harleqin »

That would be difficult to do without interfering with the BBCode parsing. Some alternate syntax would need to be devised, e.g.:

Code: Select all

[sl]takabasami[/sl]
[sl=niken tobi]
A good system naturally covers all corner cases without further effort.
User avatar
schultz
Lives in gote
Posts: 505
Joined: Tue Apr 20, 2010 5:31 pm
GD Posts: 0
Location: Montana
Has thanked: 80 times
Been thanked: 62 times

Re: auto linking to sensei's library

Post by schultz »

It should be doable just with the bbcode, at least as much as I know about it. Not sure how much work it would actually be, though, so I'll leave it up to an actual admin to say that.

Maybe I'll take a look at it and see if I can come up with anything.
KGS: schultz [?].
User avatar
fwiffo
Gosei
Posts: 1435
Joined: Tue Apr 20, 2010 6:22 am
Rank: Out of practice
GD Posts: 1104
KGS: fwiffo
Location: California
Has thanked: 49 times
Been thanked: 168 times

Re: auto linking to sensei's library

Post by fwiffo »

Added. You can use two syntaxes:

Code: Select all

[sl=TanukiNoHaraTsuzumi]Cool Tesuji[/sl]
[sl]TanukiNoHaraTsuzumi[/sl]

[sl=TanukiNoHaraTsuzumi]Cool Tesuji[/sl]
TanukiNoHaraTsuzumi
User avatar
schultz
Lives in gote
Posts: 505
Joined: Tue Apr 20, 2010 5:31 pm
GD Posts: 0
Location: Montana
Has thanked: 80 times
Been thanked: 62 times

Re: auto linking to sensei's library

Post by schultz »

fwiffo wrote:Added. You can use two syntaxes:

Code: Select all

[sl=TanukiNoHaraTsuzumi]Cool Tesuji[/sl]
[sl]TanukiNoHaraTsuzumi[/sl]

[sl=TanukiNoHaraTsuzumi]Cool Tesuji[/sl]
TanukiNoHaraTsuzumi

Or I could just wait a few minutes and watch fwiffo get it done. ;)
KGS: schultz [?].
User avatar
fwiffo
Gosei
Posts: 1435
Joined: Tue Apr 20, 2010 6:22 am
Rank: Out of practice
GD Posts: 1104
KGS: fwiffo
Location: California
Has thanked: 49 times
Been thanked: 168 times

Re: auto linking to sensei's library

Post by fwiffo »

Well, it's the exact kind of thing that BBCode is good at. One technical limitation of BBCode though - it (probably) won't work to link to SL subpages; you'll have to use the [url] tag for that.
User avatar
schultz
Lives in gote
Posts: 505
Joined: Tue Apr 20, 2010 5:31 pm
GD Posts: 0
Location: Montana
Has thanked: 80 times
Been thanked: 62 times

Re: auto linking to sensei's library

Post by schultz »

fwiffo wrote:Well, it's the exact kind of thing that BBCode is good at. One technical limitation of BBCode though - it (probably) won't work to link to SL subpages; you'll have to use the [url] tag for that.

Yeah, I was pretty sure this was the case, but didn't want to say "Oh this is super easy" and then get everyone's hopes up and have one of you guys mumbling under your breath at me.
KGS: schultz [?].
willemien
Lives in gote
Posts: 350
Joined: Fri Apr 23, 2010 7:28 am
Rank: EGF 12kyu
GD Posts: 0
DGS: willemien
Location: London UK
Has thanked: 19 times
Been thanked: 19 times

Re: auto linking to sensei's library

Post by willemien »

Thanks

another problem

i see al those nice go related bbc codes but how do they work?

(They are not explained on the faq)
Promotor and Librarian of Sensei's Library
User avatar
fwiffo
Gosei
Posts: 1435
Joined: Tue Apr 20, 2010 6:22 am
Rank: Out of practice
GD Posts: 1104
KGS: fwiffo
Location: California
Has thanked: 49 times
Been thanked: 168 times

Re: auto linking to sensei's library

Post by fwiffo »

willemien
Lives in gote
Posts: 350
Joined: Fri Apr 23, 2010 7:28 am
Rank: EGF 12kyu
GD Posts: 0
DGS: willemien
Location: London UK
Has thanked: 19 times
Been thanked: 19 times

Re: auto linking to sensei's library

Post by willemien »

That is good but maybe better as announcement (above the bar)

also plost something about the nice sl tag
Promotor and Librarian of Sensei's Library
User avatar
fwiffo
Gosei
Posts: 1435
Joined: Tue Apr 20, 2010 6:22 am
Rank: Out of practice
GD Posts: 1104
KGS: fwiffo
Location: California
Has thanked: 49 times
Been thanked: 168 times

Re: auto linking to sensei's library

Post by fwiffo »

Alright, I've made the SGF and Diagram explanations global announcements, and I've added another describing the misc. other features like the sl tag and smilies. They're above the line everywhere, so nobody should have any trouble finding them.
xed_over
Oza
Posts: 2264
Joined: Mon Apr 19, 2010 11:51 am
Has thanked: 1179 times
Been thanked: 553 times

Re: auto linking to sensei's library

Post by xed_over »

then the other two announcement threads are no longer necessary, right?
Post Reply