Übersicht Letzte Änderungen Letzte Änderungen in der Umgebung KurzAnleitung Blog

Matching Pages:

RSS

Eritrea: Unabhängigkeitstag

CommunityLocalNamesDiscussion

This page holds the discussion for CommunityLocalNames.

I’ve extended the local names extension so that we now have partial support for Lion’s LocalNames. On the page CommunityLocalNames, define a local name using [URL name]. Import namespace descriptions using [[ln:url]] or [[ln:url text]].

Currently, the code just imports LN entries pointing to a complete URL from the namespace description.

Bugs:

  • If the third column is not a full URL, it is ignored.
  • NS records are ignored.
  • X records are ignored.

Technical background: Requests to multiple namespaces are parallelized if possible, using LWP::Parallel:UserAgent. The data returned is cached on the server for 12 hours. Check out the ln cache.

Test: [[Lion Kimbro's Blog]] → [[Lion_Kimbro's_Blog?]].

In a way, CommunityLocalNames is just another representation of a namespace description:

    CommunityLocalNames          Namespace Description
    -------------------          ---------------------
    [url name]                   LN "name" "url"
    [[ln:url name]]              NS "name" "url"

To produce the wiki’s namespace description: Self:action=ln which has LN and NS records, and Self:action=ln;expand=1 expands all NS records into LN records for debugging.

You can also search for CommunityLocalNames on Self:action=version;links=1.

Wow!

  • I see how to use Self:action=ln ;
  • I’m not so clear on how to use the [[ln:foo]] notation.

Edits to localnames.txt:

  • I’ve edited http://ln.taoriver.net/localnames.txt and it now uses single space, as per the spec. (oops! That was definitely wrong: It should always be a single space separating columns.)
  • I’ve also gotten rid of the ^M’s, though I should mention: The spec says you can use whichever form of newline you like. “Accept 0D, 0A, or 0D0A as line breaks.”

Other thoughts:

  • I’m thinking about removing the “period” / “dot” feature of the language.
  • I’m thinking about removing the relative addressing feature of the LNNDS.

If you have any thoughts on those two, I’d appreciate it.

  • The period is an old idea, that was to ease hand-editing where you have a lot of names going to one URL.
  • The relative addressing is so that if you move a site, you don’t have to rebind all the names.

But both of these features complicate the system.

I think they should go! :) (Eventhough I implemented the dot thing.)

As for the newlines, I was carelessly reading the spec. Now that I reread it, however, it also says “ASCII NL, CR, FF” in the BNF. That looks like a single byte only, contradicting the comment later. Can you replace that by “the bytes 0D, 0A, or 0D0A”? (What’s the point of FF in the original list?)

Another question: Does the spec specify that the order is important? If so, is the order “as listed” or “all LN records as listed, then all NS records as listed”? Both might make sense. Right now I have a slight preference for variant 2, ie. all LN records are considered first before any lookups are made. In a way, you “know” the local stuff better.

In FireFox:

 Bookmarks | Manage bookmarks | New Bookmark
 
 Name: CommunityWiki Local Names lookup
 Location: http://ln.taoriver.net/redirect?namespace=http://www.communitywiki.org/cw?action=ln&path=%s
 Keyword: ln

Then, whenever you type “ln RecentChanges”, (for example,) it’ll jump you straight to RecentChanges.

Whatever names you put in there, it’ll jump straight to that page. If it’s on CommunityLocalNames, it’ll take you there, too!

That’s odd:

 LN "REST" ""http://www.xfront.com/REST-Web-Services.html""

It’s double-quotation-marking it..? (I think this only applies to names pulled in via ln.)

I introduced a bug. Should be fixed now. → [[REST?]]

By the way, I liked reading the spec, and I specially liked the glossary! Very well done.

Thank you!

KevinReid & BrianTempleton? provided a lot of help & advice, (on the spec,) as well.

Extension?

I’m confused – I’m looking at the code to the Oddmuse:Local Names Extension, and I don’t see anything in it that looks like CommunityLocalNames – where you manually specify the link for a given name, ..?

If you look at the config file, you’ll see the following: $LocalNamesPage = "CommunityLocalNames" – see Oddmuse:LocalNamesPage.

Define external redirect: BrianTempleton Lion Kimbro's Blog REST

Diese Seiten lokal erstellen: MeatballWiki WikiMatrix PatrickAnderson

Sprachen: