Difference between revisions of "Bliki 1.0"
m |
|||
| Line 28: | Line 28: | ||
| + | == CSS rules == | ||
The following CSS rules placed into [[MediaWiki:Common.css]] make the news items look nicer: | The following CSS rules placed into [[MediaWiki:Common.css]] make the news items look nicer: | ||
{{code|<css> | {{code|<css> | ||
Revision as of 20:12, 5 January 2012
I've needed to set up blog-like functionality on a few wikis now, so I want to get the common features into one place so it's easier to implement in future.
Blog roll
Comments
Adding this code to the ArticleSave hook makes sure that signatures are consistent and CSS addressable in any new sections that are added to talk pages. And also wraps the whole comment that was just added into a CSS addressable div element.
Adding this code to the ArticleUpdateBeforeRedirect hook allows a returnto parameter to be added to the link for adding a comment (which is actually a new-section-edit link to a talk page) so that it returns back to the news page or the news item being commented on.
CSS rules
The following CSS rules placed into MediaWiki:Common.css make the news items look nicer:
Here's a screenshot of the news page with the applied CSS and hooks:




