Template talk:Recentchangestraining

From ECApedia
Revision as of 14:27, 6 June 2012 by A.aerden@nvao.net (talk | contribs) (Created page with "==Changing the output of this template== The following strings (options and parameters) can be used to change this template. Axel Aerden === Options ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Changing the output of this template

The following strings (options and parameters) can be used to change this template. Axel Aerden

Options

The following options (tag attributes) can be used to controll the output of the <news> tags:

unique
show only the most recent change to each page
limit
the maximum number of entries to show
categories
limit results to the given categories. Multiple categories can be given separated by "|"; Intersections of categories are not supported. Recursion into subcategories is not supported.
namespaces
limit results to the given namespaces. Multiple namespaces can be given separated by "|"; you can use "0", "-" or "main" to refer to the default namespace.
notalk
ignore all "talk" namespaces. Not used if the namespaces option is given.
nominor
hide minor edits ("true" or "false", default is "false"). *
nobot
hide bot edits ("true" or "false", default is "false"). *
noanon
hide anonymous edits ("true" or "false", default is "false"). *
onlypatrolled
show only patrolled edits ("true" or "false", default is "false"). *
onlynew
show only page creations ("true" or "false", default is "false"). *
trigger
show only edits with the given trigger in the edit comment. Used primarily to explicitly "publish" pages to a news box or feed. If used, the resulting feed will also look slightly different, focusing less on a single edit and more on the page. Most importantly, the edit comment will not be show in the feed, and a generic link to the page will be used, instead of a permalink to a specific version (unless the permalink option is also set).
permalinks
force the use of permalinks in feeds, even if a trigger is used to publish pages. Per default, feeds that use a trigger use generic page links instead of permalinks to specific versions. Feeds not using a trigger always use permalinks.
prefix
wikitext to be inserted before the wikitext generated from the template text is parsed. Can be used to make tables from news.
postfix
wikitext to be inserted after the wikitext generated from the template text is parsed. Can be used to make tables from news.
silent (for <newsfeed> only)
generate no inline output, only attach RSS/Atom feeds to the page (since rev:25798, 2007-09-11).

* if some edits are filtered out, the edit shown by in the news list may not refer to the current revision. To avoid people clicking the link and seeing a later, possible undesiarable version, use {{{permalink}}} in your custom pattern to link to the exact revision. See the "parameters" section below.

Parameters

When giving a template text between the <news> tags, the following template-parameters are available (use them as {{{xxx}}}):

rawtime
raw timestamp - can be formated using the parser function "time", e.g. {{#time:j. M.|{{{rawtime}}}}}
date
date of the edit, formated per user preference
time
time of the edit, formated per user preference
timeanddate
time and date of the edit, formated per user preference
namespace
numeric namespace id, can be used with {{ns:{{{namespace}}}}}
title
canonical title (without namespace prefix)
pagename
full title, with namespace prefix
type
numerical change type (0 = edit, 1 = new, 2 = move, 3 = log, 4 = move-over)
minor
"true" for minor changes, blank otherwise
user
user name who made the entry
comment
edit summary (escaped wikitext, safe to use)
new_rev
revision id associated with this entry (or zero)
old_rev
revision id associated with the entry before this one (or zero)
diff
full diff link for the edit (or blank)
permalink
full url to the revision created by the edit (may not be the current revision)
bot
"true" for bot edits, blank otherwise
new
"true" for newly created pages, blank otherwise
patrolled
"true" if the edit was patrolled, blank otherwise
old_len
page length before the edit
new_len
page length after the edit
content
the full content of the page
head
the page's content up to about 2KB of text, with smart cut-off.