Template:EzTumblr: Difference between revisions

From MTG Wiki
Jump to navigation Jump to search
>Yandere-sliver
No edit summary
>RivalRowan
No edit summary
 
(9 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>__NOTOC__
<noinclude>{{Lua|EzTumblr}}
This template is an abbreviated version of {{tl|TumblrRef}}. It stores information about commonly referenced Tumblr accounts, and attaches that information to the transcluded citation based on the URL provided.
This template is an abbreviated version of {{tl|TumblrRef}}. It stores information about commonly referenced Tumblr accounts, and attaches that information to the transcluded citation based on the URL provided.


Line 5: Line 5:
It currently supports the following blogs. If you often cite a blog not listed, feel free to edit the list at the top of [[Module:EzTumblr]].
It currently supports the following blogs. If you often cite a blog not listed, feel free to edit the list at the top of [[Module:EzTumblr]].
{{#invoke:EzTumblr|getSupportedBlogs}}
{{#invoke:EzTumblr|getSupportedBlogs}}
''Admin Note: ''tabakrules.tumblr.com'' and ''multiverseinreview.tumblr.com'' no longer exist. If you see these references anywhere, please replace them with the appropriate Internet Archive {{tl|WebRef}}s.''
==Usage==
==Usage==
As with {{tl|TumblrRef}}, but the <code>tumblr-title</code> and <code>author</code> fields should be omitted.
As with {{tl|TumblrRef}}, but the <code>tumblr-title</code> and <code>author</code> fields should be omitted.
Line 21: Line 22:
=== Examples ===  
=== Examples ===  
* Using TumblrRef alone, without this template:
* Using TumblrRef alone, without this template:
** <code><nowiki>{{TumblrRef|author=[[Mark Rosewater]]|url=http://markrosewater.tumblr.com/post/150013980598/what-is-the-significance-of-the-watermark-on|title=What is the significance of the watermark on Inventors' Fair?|tumblr-title=Blogatog|date=September 5, 2016}}</nowiki></code>
** <code><nowiki>{{TumblrRef|author=[[Mark Rosewater]]|url=http://markrosewater.tumblr.com/post/150013980598/what-is-the-significance-of-the-watermark-on|title=What is the significance of the watermark on Inventors' Fair?|tumblr=Blogatog|date=September 5, 2016}}</nowiki></code>
** {{TumblrRef|author=[[Mark Rosewater]]|url=http://markrosewater.tumblr.com/post/150013980598/what-is-the-significance-of-the-watermark-on|title=What is the significance of the watermark on Inventors' Fair?|tumblr-title=Blogatog|date=September 5, 2016}}
** {{TumblrRef|author=[[Mark Rosewater]]|url=http://markrosewater.tumblr.com/post/150013980598/what-is-the-significance-of-the-watermark-on|title=What is the significance of the watermark on Inventors' Fair?|tumblr=Blogatog|date=September 5, 2016}}
* The slug can be omitted from the URL as long as <code>title</code> is provided:
* The slug can be omitted from the URL as long as <code>title</code> is provided:
** <code><nowiki>{{EzTumblr|http://markrosewater.tumblr.com/post/150013980598/|title=What is the significance of the watermark on Inventors' Fair?|date=September 5, 2016}}</nowiki></code>
** <code><nowiki>{{EzTumblr|http://markrosewater.tumblr.com/post/150013980598/|title=What is the significance of the watermark on Inventors' Fair?|date=September 5, 2016}}</nowiki></code>
Line 35: Line 36:


[[Category:Referencing templates]]
[[Category:Referencing templates]]
</noinclude><includeonly>{{TumblrRef|url={{{1|{{{url}}}}}}|title={{{title|{{#invoke:EzTumblr|createPostTitle|{{{1|{{{url}}}}}}}}}}}|date={{{2|{{{date}}}}}}|tumblr-title={{#invoke:EzTumblr|getTitle|{{{1|{{{url}}}}}}}}|author=[[{{#invoke:EzTumblr|getAuthor|{{{1|{{{url}}}}}}}}]]}}{{#if:{{{url|}}}|[[Category:In Use]]}}</includeonly>
</noinclude><includeonly>{{TumblrRef|url={{{1}}}|title={{{title|{{#invoke:EzTumblr|createPostTitle|{{{1}}}}}}}}|date={{{2|}}}|tumblr={{#invoke:EzTumblr|getTitle|{{{1}}}}}|author=[[{{#invoke:EzTumblr|getAuthor|{{{1}}}}}]]}}</includeonly>

Latest revision as of 07:08, 9 April 2024

This template is an abbreviated version of {{TumblrRef}}. It stores information about commonly referenced Tumblr accounts, and attaches that information to the transcluded citation based on the URL provided.

Support

It currently supports the following blogs. If you often cite a blog not listed, feel free to edit the list at the top of Module:EzTumblr.

  • dougbeyermtg.tumblr.com
  • markrosewater.tumblr.com
  • multiverseinreview.tumblr.com
  • tabakrules.tumblr.com
  • vorthosjay.tumblr.com
  • wizardsmagic.tumblr.com

Admin Note: tabakrules.tumblr.com and multiverseinreview.tumblr.com no longer exist. If you see these references anywhere, please replace them with the appropriate Internet Archive {{WebRef}}s.

Usage

As with {{TumblrRef}}, but the tumblr-title and author fields should be omitted.

The title field is optional if the URL contains the slug, the additional text beyond the numeric post identifier.

url and date are always mandatory.

{{EzTumblr|http://...|<date>|title=...}}

Parameters

  • {{{1}}}: The entire URL, including http(s)://.
  • {{{2}}}: The date of creation.
  • {{{title}}}: The title of the post.

Examples

  • Without a title, the URL must contain a slug, and a title will be generated: