Template talk:CategoryRSS

From S23Wiki
Jump to: navigation, search

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 = "Feed-icon-16x16.png 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.

Sure, took CategoryTree was a good idea. Why not. Btw: If you also wondered before whether Atom or RSS is better, the author of WikiFeeds says Atom is the future and he will not spend time anymore to make RSS support perfect. One should prefer Atom. I tend to believe him on that and will also use Atom, we can expect better results from that. Mutante 10:57, 3 March 2007 (CET)

Fixed feed links with whitespaces in category name

Needed fix for Category pages with whitespace in names. Done now for real. Needed
{{PAGENAME}}
,
{{PAGENAMEE}}
and
{{urlencode:{{PAGENAME}}}}
.