Template:Quotedfrom/doc

From MOASSpedia
Jump to navigation Jump to search

Usage

This template adds a line below a quoted text to list: the original location; original posting user; original posting time-and-date; and/or the diff of the original posting.

{{subst:quotedfrom|location|user|time|oldid}}

Parameters

This template takes four expected parameters (not required, but expected either in sequence or by named variable):

  1. location=   The page where this text was originally posted (without double-brackets).
  2. user=   The username who posted it (without the "User:" prefix);
  3. time=   The UTC time-and-date of the original posting (as seen first in the entries on, for instance, this user's talkpage history);
  4. oldid=   The "oldid=" number of the post's diff (as seen in the URLs of the entry's "(cur)", "(last)", and time-and-date links).

Examples

For the least typing, just provide the values in location - user - time - oldid sequence:

Code: {{subst:quotedfrom|User talk:EVula|Ben|09:47, 26 February 2007|111045354}}

Result: — Preceding text originally posted on User talk:EVula (diff) by Ben (talkcontribs) 09:47, 26 February 2007 (UTC)

If the named variables are used, these don't need to be kept in the same sequence:

Code: {{subst:quotedfrom|user=Ben|time=09:47, 26 February 2007|oldid=111045354|location=User talk:EVula}}

Result:— Preceding text originally posted on User talk:EVula (diff) by Ben (talkcontribs) 09:47, 26 February 2007 (UTC)

As long as the correct "oldid" is provided, the location is not really necessary:

Code:{{subst:quotedfrom||Ben|09:47, 26 February 2007|111045354}}

Result:— Preceding text originally posted here by Ben (talkcontribs) 09:47, 26 February 2007 (UTC)

If other values are left out, the template will simply bypass them:

Code:{{subst:quotedfrom|WP:APBB}}

Result:— Preceding text originally posted on WP:APBB

Code:{{subst:quotedfrom||Jimbo Wales}}

Result:— Preceding text originally posted by Jimbo Wales (talkcontribs)


User information templates provide informational links for a user; they are similar to signatures, but often provide additional information, and may be used by other users. List:

Demo user used is User:Example