Template:Quotedfrom/doc

Template page

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 (WIKI.org/w/index.php?title=User_talk:EVula&diff=prev&oldid=111045354 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 (WIKI.org/w/index.php?title=User_talk:EVula&diff=prev&oldid=111045354 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 WIKI.org/w/wiki.phtml?oldid=111045354 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)

Template:Userspace linking templates