Template:EzTumblr: Difference between revisions
>Yandere-sliver No edit summary |
>RivalRowan No edit summary |
||
(9 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <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 | ** <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 | ** {{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 | </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 uses Lua. Its code can be found under Module:EzTumblr. |
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, includinghttp(s)://
.{{{2}}}
: The date of creation.{{{title}}}
: The title of the post.
Examples
- Using TumblrRef alone, without this template:
{{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}}
- Mark Rosewater (September 5, 2016). "What is the significance of the watermark on Inventors' Fair?". Blogatog. Tumblr.
- The slug can be omitted from the URL as long as
title
is provided:{{EzTumblr|http://markrosewater.tumblr.com/post/150013980598/|title=What is the significance of the watermark on Inventors' Fair?|date=September 5, 2016}}
- Mark Rosewater (September 5, 2016). "What is the significance of the watermark on Inventors' Fair?". Blogatog. Tumblr.
- If the
title
is provided, the slug will be ignored:{{EzTumblr|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?|September 5, 2016}}
- Mark Rosewater (September 5, 2016). "What is the significance of the watermark on Inventors' Fair?". Blogatog. Tumblr.
- Without a
title
, the URL must contain a slug, and a title will be generated:{{EzTumblr|http://markrosewater.tumblr.com/post/150013980598/what-is-the-significance-of-the-watermark-on|September 5, 2016}}
- Mark Rosewater (September 5, 2016). "What is the significance of the watermark on...". Blogatog. Tumblr.