×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    Template talk:CategoryRSS: Difference between revisions

    Content added Content deleted
    imported>mutante
    mNo edit summary
    imported>mutante
    mNo edit summary
    Line 17: Line 17:


    [[User:mutante|mutante]] 00:03, 1 March 2007 (CET)
    [[User:mutante|mutante]] 00:03, 1 March 2007 (CET)

    P.S. took, those pages where you have already manually added the template are now currently showing it twice.

    Revision as of 23:05, 28 February 2007

    I have directly edited ./includes/CategoryPage.php and added code into function getCategoryTop():

    <HighlightSyntax lang=php> function getCategoryTop() { global $wgOut; ...

    # Add Feed link to all Category pages, hack by s23 for WikiFeeds
    $rsstemplate = " Feeds for page edits in Category:CategoryRSS  (atom, rss)
    

    see also CategoryTree

    \n";

    $rsstemplate = $wgOut->parse( $rsstemplate );
    $r .= $rsstemplate;
    return $r;
    

    } </HighlightSyntax>

    This inserts the contents of this template into every Category: page automatically. So even though all those edits would have been nice for our stats you dont have to do that work;) Also since we dont include the hardcoded link, but the template and parse it right in place, still all users can edit the template contents and it will affect all Category pages right away, also those created in the future. Just have to remember to add this again after every update, like all those other minor modifications..

    mutante 00:03, 1 March 2007 (CET)

    P.S. took, those pages where you have already manually added the template are now currently showing it twice.

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.