Difference between revisions of "Template:Reddit ref"

From The Coppermind
Jump to navigation Jump to search
m
m (Text replacement - "category: sources [[" to "[[")
 
(11 intermediate revisions by 3 users not shown)
Line 2: Line 2:
   
 
TEXT
 
TEXT
 
-->|<!--
-->{{#if:{{{text|{{{1|{{{2|}}}|}}}|}}}|<!--
 
-->{{!}}<!--
 
   
 
-->{{#if:{{{broken|}}}|{{ref/broken}}|<!-- -->}}<!--
 
-->{{#if:{{{broken|}}}|{{ref/broken}}|<!-- -->}}<!--
   
-->{{{pre|}}}<!--
+
-->{{#if:{{{text|}}}<!--
  +
-->|{{#if:{{{date|}}}|<!-- -->|{{ref/broken|ref/date}}|<!-- -->}}<!--
 
-->{{#if:{{{short|}}}<!--
+
-->|<!--
-->|[http://redd.it/{{{short}}} {{{text|{{{1}}}|}}}]<!--
 
-->|[http://reddit.com/{{{1}}} {{{text|{{{2}}}|}}}]<!--
 
 
-->}}<!--
 
-->}}<!--
   
-->{{{post|}}}<!--
+
-->{{{pre|}}}<!-- -->{{#if:{{{pre|}}}|{{ref/uses-pre}}|}}<!--
  +
 
-->[http://reddit.com/{{{path|r/{{{1}}}/comments/{{{2}}}/-/{{{3|}}}?context={{{context|3}}}|}}} {{{text}}}]<!--
  +
  +
-->{{{post|}}}<!-- -->{{#if:{{{post|}}}|{{ref/uses-post}}|}}<!--
   
 
--><br><small> &mdash; Reddit - {{{date}}}</small><!--
 
--><br><small> &mdash; Reddit - {{{date}}}</small><!--
   
  +
-->{{tracking link|Cite: Reddit/{{{path|{{{1}}}/{{{2}}}{{#if:{{{3|}}}|/{{{3}}}|}}}}}|}}<!--
-->|<!-- no TEXT -->}}<!--
 
   
 
NAME
 
NAME
-->|name={{{name|reddit-{{{short|{{{1}}}|}}}|}}}<!--
+
-->|name={{{name|reddit-{{{1|board}}}-{{{2|topic}}}-{{{3|reply}}}|}}}<!--
   
 
GROUP
 
GROUP
Line 31: Line 32:
 
This template is used to refer to posts on [http://reddit.com Reddit].
 
This template is used to refer to posts on [http://reddit.com Reddit].
   
To use, include {{t|reddit ref|link|description}}
+
To use, include {{t|reddit ref|subreddit|post id|comment id|description}}
* {{{short}}} links via the redd.it url shortener
 
 
* {{{text}}} replaces the description
 
* {{{text}}} replaces the description
 
* {{{pre}}} is included before the link
 
* {{{pre}}} is included before the link
Line 40: Line 40:
 
* {{{date}}} is the facts publication date (yyyy-mm-dd)
 
* {{{date}}} is the facts publication date (yyyy-mm-dd)
   
 
[[category: reference templates]]
[[Category: Sources]]
 
  +
[[Category: Reference templates]]
 
  +
== Articles using Template ==
  +
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here}}
  +
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}

Latest revision as of 05:42, 22 May 2022

This template is used to refer to posts on Reddit.

To use, include {{reddit ref|subreddit|post id|comment id|description}}

  • {{{text}}} replaces the description
  • {{{pre}}} is included before the link
  • {{{post}}} is included after the link
  • {{{name}}} replaces the generated reference name
  • {{{group}}} sets the reference group
  • {{{date}}} is the facts publication date (yyyy-mm-dd)

Articles using Template[edit]