Jump to content

Template:Ping/doc

From Wikinews, the free news source you can write!

Usage

[edit]

Given one or more unnamed parameters, this template pings the named users;

{{ping|foo|bar|quux}}

would produce

@Foo, Bar, Quux:

For purely historical reasons, if this template is called without unnamed parameters, it produces a link (believed to have been useless for many years now) related to a long-ago use of Technorati. (It was easier to keep the legacy behavior in the template than to eliminate all its uses from old pages.)

Internals

[edit]

When presented with at least one unnamed parameter, this template handles the first one itself, with the prefixed @ and suffixed :, and uses Module:TScope#shiftLeft to pass the rest of the unnamed parameters to subtemplate {{ping/rest}}.