Difference between revisions of "Template:Reddit ref"

From The Coppermind
Jump to navigation Jump to search
m (fix ref/date usage)
m (Text replacement - "category: sources [[" to "[[")
 
(7 intermediate revisions by 3 users not shown)
Line 11: Line 11:
 
-->}}<!--
 
-->}}<!--
   
-->{{{pre|}}}<!--
+
-->{{{pre|}}}<!-- -->{{#if:{{{pre|}}}|{{ref/uses-pre}}|}}<!--
   
 
-->[http://reddit.com/{{{path|r/{{{1}}}/comments/{{{2}}}/-/{{{3|}}}?context={{{context|3}}}|}}} {{{text}}}]<!--
 
-->[http://reddit.com/{{{path|r/{{{1}}}/comments/{{{2}}}/-/{{{3|}}}?context={{{context|3}}}|}}} {{{text}}}]<!--
   
-->{{{post|}}}<!--
+
-->{{{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}}}|}}}}}|}}<!--
   
 
NAME
 
NAME
Line 30: 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|board|topic|reply|text=description}}
+
To use, include {{t|reddit ref|subreddit|post id|comment id|description}}
 
* {{{text}}} replaces the description
 
* {{{text}}} replaces the description
 
* {{{pre}}} is included before the link
 
* {{{pre}}} is included before the link
Line 38: 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]