Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Editing Template talk:Allopentasks

Discussion page of Template:Allopentasks
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 9: Line 9:
</pre> It's been rather a while since I used Perl, and I don't know what structure you're using to hold items, but you get the idea. Having it omit empty categories would be nice, too. Anyway, having every category of open task gathered in one place is great. --[[User:CalculatinAvatar|CalculatinAvatar]]<sup>([[Special:Contributions/CalculatinAvatar|C]]-[[User talk:CalculatinAvatar|T]])</sup> 12:32, 5 August 2006 (CDT)
</pre> It's been rather a while since I used Perl, and I don't know what structure you're using to hold items, but you get the idea. Having it omit empty categories would be nice, too. Anyway, having every category of open task gathered in one place is great. --[[User:CalculatinAvatar|CalculatinAvatar]]<sup>([[Special:Contributions/CalculatinAvatar|C]]-[[User talk:CalculatinAvatar|T]])</sup> 12:32, 5 August 2006 (CDT)
:This is great! --[[User:Gougef|FrankieG]] 12:40, 5 August 2006 (CDT)
:This is great! --[[User:Gougef|FrankieG]] 12:40, 5 August 2006 (CDT)
::CA, I'll post the code... up on the bot's page as a subpage as it stands right now so you can see it. I don't think there is a way to hide the empty ones though. If so, I would have done that a while ago. :) --[[User:Shane|Shane]] <sup>([[User_Talk:Shane|T]] - [[Special:Contributions/Shane|C]] - [[Special:Editcount/Shane|E]])</sup> 13:06, 5 August 2006 (CDT)
::code here [[User:Task Bot/Code]].
I think this is the line you are looking for:
<pre><nowiki>
    foreach $article (sort {$rank{$a} <=> $rank {$b}} (keys(%rank)))
    {
        if (length($article)+1 < $characterLimit - length($featuredString))
        {
            if ($categoryID == "IMAGE") {
$featuredString .= "[[:${article}]], ";
} else {
$featuredString .= "[[${article}]], ";
}
            $article =~ s/ /_/g;
            # Record how many times each article is featured.
            $::history{"${article}-${categoryID}"}++;
        }
    }
</nowiki></pre>
==Bot still working?==
Question: is a bot still handling the updating of these? They don't appear to have changed in quite some time. [[User:JubalHarshaw|JubalHarshaw]] 11:35, 15 April 2007 (CDT)

To edit this page, please enter the words that appear below in the box (more info):

Refresh
Cancel Editing help (opens in new window)

  [] · [[]] · [[|]] · {{}} · · “” ‘’ «» ‹› „“ ‚‘ · ~ | ° &nbsp; · ± × ÷ ² ³ ½ · §
     [[Category:]] · [[:File:]] · [[Special:MyLanguage/]] · <code></code> · <nowiki></nowiki> <code><nowiki></nowiki></code> · <syntaxhighlight></syntaxhighlight> · <includeonly></includeonly> · <noinclude></noinclude> · #REDIRECT[[]] · <translate></translate> · <languages/> · {{#translation:}} · <tvar|></> · {{DEFAULTSORT:}} · <categorytree></categorytree> · <div style="clear:both;"></div> <s></s>


Your changes will be visible immediately.
  • For testing, please use the sandbox instead.
  • On talk pages, please sign your comment by typing four tildes (~~~~).