Help:Template reference: Difference between revisions

From MTG Wiki
Jump to navigation Jump to search
>@DeletedUser40283073
(first draft based on User_talk:Magic_Mage/Templates)
 
>Yandere-sliver
 
(36 intermediate revisions by 9 users not shown)
Line 1: Line 1:
This is a '''template reference''' that documents the templates used on this wiki. Each entry has consists of a short code example followed by the corresponding output. Usually there is more detailed information on the individual template pages.
This page '''lists common templates''' for producing standardized citations, flagging articles for maintenance, and other common wiki tasks. Their most common uses are listed here, and some have further functionality listed on their own pages.


Some frequently used templates that do not need parameters are listed in [[Help:Cheatsheet]].
Some frequently used templates that do not need parameters are listed in [[Help:Cheatsheet]].


{{TOCright}}
==Referencing templates==
Referencing and standardized referencing are important. As such, please use [[:Category:Referencing templates|these templates]].


==MTG product templates==
When using these templates, please ensure that the link to the article is faithful and correct; that all relevant parameters are filled-in; and the date is the date of publication, not the date of access. To avoid ambiguity between date formats, please write out the full year and the name of the month.
===[[Template:Cardlist|Cardlist]]===
<nowiki>{{Cardlist|SET URL|SET NAME}}</nowiki>
 
e.g. <nowiki>{{Cardlist|lorwyn|Lorwyn}}</nowiki><BR>
{{Cardlist|lorwyn|Lorwyn}}
 
===[[Template:Prodpage|Prodpage]]===
<nowiki>{{Prodpage|SET URL|SET NAME}}</nowiki>
 
e.g. <nowiki>{{Prodpage|lorwyn|Lorwyn}}</nowiki><BR>
{{Prodpage|lorwyn|Lorwyn}}
 
===[[Template:Deckpage|Deckpage]]===
<nowiki>{{Deckpage|MTG.com's code for the set (check URL)|Deck number (check URL)|Set name|Deck name}}</nowiki>
 
e.g. <nowiki>{{Deckpage|lorwyn|4|Lorwyn|Merrow Riverways}}</nowiki>


{{Deckpage|lorwyn|4|Lorwyn|Merrow Riverways}}
=== Official Wizards Website: DailyRef ===
{{tl|DailyRef}} should be used for articles on [https://magic.wizards.com/en/articles| magic.wizards.com] (previously known as dailymtg.com, or "The Mothership"). It should only be used for ''articles'': it will not produce a functional link for other pages (such as product pages or more obscure content).


===[[Template:Theme decks|Theme decks]]===
:<code><nowiki>{{DailyRef|The part of the URL following media.wizards.com/en/articles/archive/|Title|Author(s)|Date}}</nowiki></code>
see template page for detailed explanation


==[[:category:Referencing templates|Referencing templates]] and related==
=== Tumblr: TumblrRef ===
When using these templates, please make sure that:
{{tl|TumblrRef}} can handle links to any Tumblr blog. See also EzTumblr below
*The link to the article is correct;
*'''All''' parameters are filled-in;
*The date is the date that appears in the top-right corner of the article.


===[[Template:Cquote|Cquote]]===
:<code><nowiki>{{TumblrRef|author=...|url=http://...|title=title of the thread|tumblr=the title of the Tumblr|date=date of creation}}</nowiki></code>
<nowiki>{{Cquote|Insert the text of the quote here, without quotation marks.}}</nowiki>
{{Cquote|Insert the text of the quote here, without quotation marks.}}


===[[Template:Arcref|Arcref]]===
==== Short format: EzTumblr ====
''For Arcana articles '''only'''.''<BR>
For the most frequently cited Tumblrs, {{tl|EzTumblr}} can automatically fill the <code>author</code>, <code>tumblr</code>, and (optionally) <code>title</code> fields of TumblrRef. You still need to provide the full <code>URL</code> and <code>date</code>.
<nowiki>{{Arcref|THE_ARCANA_NUMBER_OR_END_BIT_OF_THE_URL,_E.G._1|ARTICLE'S TITLE|DATE}}</nowiki>


{{Arcref|THE_ARCANA_NUMBER_OR_END_BIT_OF_THE_URL,_E.G._1|ARTICLE'S TITLE|DATE}}
:<code><nowiki>{{EzTumblr|http://...|<date>|title=...}}</nowiki></code>


===[[Template:MTGref|Featref]]===
=== Drive to Work: DriveRef===
''For feature articles '''only'''.''<BR>
{{tl|DriveRef}} standardizes links to [[Mark Rosewater]]'s Drive to Work podcast. If available, it accepts a partial URL for a transcript as its final parameter.
<nowiki>{{Featref|THE_END_BIT_OF_THE_URL,_E.G._mr1|ARTICLE'S TITLE|AUTHOR OF ARTICLE|DATE}}</nowiki>


{{Featref|THE_END_BIT_OF_THE_URL,_E.G._mr1|ARTICLE'S TITLE|AUTHOR OF ARTICLE|DATE}}
:<code><nowiki>{{DriveRef|The part of the URL following media.wizards.com/podcasts/magic/|episode number|episode title|transcript URL following http://dtwtranscripts.blogspot.com/ (if available)}}</nowiki></code>


===[[Template:MTGref|MTGref]]===
=== General: WebRef ===
''For daily columns '''only'''.''<BR>
{{tl|WebRef}} standardizes links in general.
<nowiki>{{MTGref|THE_END_BIT_OF_THE_URL,_E.G._mr1|ARTICLE'S TITLE|AUTHOR OF ARTICLE|DATE}}</nowiki>


{{MTGref|THE_END_BIT_OF_THE_URL,_E.G._mr1|ARTICLE'S TITLE|AUTHOR OF ARTICLE|DATE}}
:<code><nowiki>{{WebRef|author=...|url=http://...|title=title of the webpage|date=date of creation|publisher=...}}</nowiki></code>
 
===[[Template:Askref|Askref]]===
''For Ask Wizard''<br/>
<nowiki>{{Askref|month|day|year}}</nowiki>
 
{{Askref|month|day|year}}
 
===[[Template:SCGref|SCGref]]===
''For StarCityGames.com articles''<br/>
<nowiki>{{SCGref|THE_END_BIT_OF_THE_URL|ARTICLE'S TITLE|AUTHOR OF ARTICLE|DATE}}</nowiki>


==Maintainance==
==Maintainance==
===[[Template:Cleanup|Cleanup]]===
===Cleanup===
<nowiki>{{cleanup|date=IN WORDS, DD MM, YYYY}}</nowiki>
{{tl|Cleanup}}  
{{cleanup|date=IN WORDS, DD MM, YYYY}}
{{Cleanup}}


===[[Template:Expand|Expand]]===
===Expand===
<nowiki>{{Expand}}</nowiki>
{{tl|Expand}}
{{Expand}}
{{Expand}}


===[[:Template:Fact|Fact]] — Fact, or "''Fact''"?===
===Fact — Fact, or "''Fact''"?===
<nowiki>{{fact}}</nowiki>
Use {{tl|fact}} if a certain fact need citation.


{{fact}}
===Delete — Proposed article for deletion===
{{tl|Delete}}
{{Delete|nocat=1}}


===[[Template:PROD|PROD]] — Proposed article for deletion===
===Rewrite===
<nowiki>{{PROD|TYPE REASON HERE}}</nowiki>
{{tl|Rewrite}}  
{{PROD|TYPE REASON HERE}}
{{Rewrite}}


===[[Template:Rewrite|Rewrite]]===
===Dead Link===
<nowiki>{{Template:Rewrite|REASON IF NECESSARY/DESIRED|DATE=IN WORDS, DD MM, YYYY}}</nowiki>
Use {{tl|dead link}} to denote a link that is dead, doesn't have an archived version (e.g. via http://archive.org), and needs replacement.
{{Template:Rewrite|REASON IF NECESSARY/DESIRED|DATE=IN WORDS, DD MM, YYYY}}


==Miscellaneous==
==Miscellaneous==
===[[Template:Test|Test]]===
===Cquote===
<nowiki>{{Test}}</nowiki>
{{tl|Cquote}} places the provided quote in an HTML <code><nowiki><blockquote></nowiki></code> element. This is for presentation only; it does not constitute a citation.
{{Test}}
<code><nowiki>{{Cquote|Insert the text of the quote here, without quotation marks.}}</nowiki></code>
{{Cquote|Insert the text of the quote here, without quotation marks.}}


===[[Template:TOCleft|TOCleft]] and [[Template:TOCright|TOCright]]===
===TOCleft and TOCright===
These templates "force" a table of contents (which can be "forced" by entering <nowiki>__TOC__</nowiki> anywhere in an article; it appear roughly in the same area as it is entered) to appear, aligned left and right respectively.
{{tl|TOCleft}} and {{tl|TOCright}} force a table of contents (which can be "forced" by entering <nowiki>__TOC__</nowiki> anywhere in an article; it appear roughly in the same area as it is entered) to appear, aligned left and right respectively.


===[[Template:Usertalkhead|Usertalk header bar]]===
==MTG product templates==
<nowiki>{{Usertalkhead}}</nowiki>
===Deckpage===
{{Usertalkhead}}
{{tl|Deckpage}} e.g. <nowiki>{{Deckpage|lorwyn|4|Lorwyn|Merrow Riverways}}</nowiki>
 
{{Deckpage|lorwyn|4|Lorwyn|Merrow Riverways}}


===[[Template:Wrongtitle|Wrong title]]===
===Decks===
<nowiki>{{Wrongtitle|CORRECT NAME HERE}}</nowiki>
{{tl|Decks}}, see template page for detailed explanation
{{Wrongtitle|CORRECT NAME HERE}}


{{SCGref|THE_END_BIT_OF_THE_URL|ARTICLE'S TITLE|AUTHOR OF ARTICLE|DATE}}
[[Category:MTG Wiki]]

Latest revision as of 22:31, 6 April 2019

This page lists common templates for producing standardized citations, flagging articles for maintenance, and other common wiki tasks. Their most common uses are listed here, and some have further functionality listed on their own pages.

Some frequently used templates that do not need parameters are listed in Help:Cheatsheet.

Referencing templates

Referencing and standardized referencing are important. As such, please use these templates.

When using these templates, please ensure that the link to the article is faithful and correct; that all relevant parameters are filled-in; and the date is the date of publication, not the date of access. To avoid ambiguity between date formats, please write out the full year and the name of the month.

Official Wizards Website: DailyRef

{{DailyRef}} should be used for articles on magic.wizards.com (previously known as dailymtg.com, or "The Mothership"). It should only be used for articles: it will not produce a functional link for other pages (such as product pages or more obscure content).

{{DailyRef|The part of the URL following media.wizards.com/en/articles/archive/|Title|Author(s)|Date}}

Tumblr: TumblrRef

{{TumblrRef}} can handle links to any Tumblr blog. See also EzTumblr below

{{TumblrRef|author=...|url=http://...|title=title of the thread|tumblr=the title of the Tumblr|date=date of creation}}

Short format: EzTumblr

For the most frequently cited Tumblrs, {{EzTumblr}} can automatically fill the author, tumblr, and (optionally) title fields of TumblrRef. You still need to provide the full URL and date.

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

Drive to Work: DriveRef

{{DriveRef}} standardizes links to Mark Rosewater's Drive to Work podcast. If available, it accepts a partial URL for a transcript as its final parameter.

{{DriveRef|The part of the URL following media.wizards.com/podcasts/magic/|episode number|episode title|transcript URL following http://dtwtranscripts.blogspot.com/ (if available)}}

General: WebRef

{{WebRef}} standardizes links in general.

{{WebRef|author=...|url=http://...|title=title of the webpage|date=date of creation|publisher=...}}

Maintainance

Cleanup

{{Cleanup}}


Expand

{{Expand}}


Fact — Fact, or "Fact"?

Use {{fact}} if a certain fact need citation.

Delete — Proposed article for deletion

{{Delete}}

Rewrite

{{Rewrite}}


Dead Link

Use {{dead link}} to denote a link that is dead, doesn't have an archived version (e.g. via http://archive.org), and needs replacement.

Miscellaneous

Cquote

{{Cquote}} places the provided quote in an HTML <blockquote> element. This is for presentation only; it does not constitute a citation. {{Cquote|Insert the text of the quote here, without quotation marks.}}

“  Insert the text of the quote here, without quotation marks.  ”

TOCleft and TOCright

{{TOCleft}} and {{TOCright}} force a table of contents (which can be "forced" by entering __TOC__ anywhere in an article; it appear roughly in the same area as it is entered) to appear, aligned left and right respectively.

MTG product templates

Deckpage

{{Deckpage}} e.g. {{Deckpage|lorwyn|4|Lorwyn|Merrow Riverways}}

Lorwyn Theme Deck: Merrow RiverwaysWizards of the Coast

Decks

{{Decks}}, see template page for detailed explanation