in reply to Easteregg: Activate links to Nodelet documentation (update: patch)

I love this. Unfortunately, not all nodelets have documentation (e.g. About the Chatterbox).

Update: It seems the Chatterbox nodelet is documented under About the Chatterbox Nodelet. Similarly, "Information", "Find Nodes", and "Leftovers" need the "Nodelet" appended to get the actual title. "What Links Here", on the other hand, has no documentation I could find.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: Easteregg: Activate links to Nodelet documentation (bug)
by LanX (Saint) on Jan 06, 2025 at 16:40 UTC
    The problem is in the code here Nodelet Container combined with inconsistent naming convention.

    All docs have the form "About the $NODE_NAME Nodelet" but the code doesn't append " Nodelet".

    24:   my $about = qq(<a href="?node=About the $title" class="nodelethead-annot"><sup>?</sup></a>);

    But if the Nodelet's name contains a " Nodelet" at the end it works again ...

    so

    LOL to cite harangzsolt33!!!

    @gods: That's not easy to patch ...

    • renaming some sitefaqlet nodes consistent to nodelet name? (the right thing)
    • cryptic code which adds "Nodelet" only when missing? (the practical thing)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery

        Provided a patch for the "quick&dirty" solution...

        Thank you! Applied.

Re^2: Easteregg: Activate links to Nodelet documentation
by LanX (Saint) on Jan 06, 2025 at 16:23 UTC