Template:WebRef: Difference between revisions
Jump to navigation
Jump to search
>Yandere-sliver No edit summary |
>Yandere-sliver mNo edit summary |
||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{#if: {{#if:{{{url|}}}|{{#if:{{{title|}}}|1}}}} | | ||
#if: {{#if: {{{url|}}} | {{#if: {{{title|}}} |1}}}} | | Error on call to {{tl|WebRef}}: Parameters '''url''' and '''title''' must be specified | ||
}}{{#if: {{{archiveurl|}}}{{{archivedate|}}} | | |||
}}{{ | {{#if: {{#if:{{{archiveurl|}}}|{{#if:{{{archivedate|}}}|1}}}} | | ||
#if: {{{archiveurl|}}}{{{archivedate|}}} | | Error on call to {{tl|WebRef}}: Parameters '''archiveurl''' and '''archivedate''' must be both specified or both omitted | ||
}} | |||
}}{{#if:{{{author|}}} | {{{author|}}}{{#if:{{{date|}}}| ({{{date}}})}}. " | |||
}} | }}{{#if:{{{title|}}} | | ||
}}{{#if:{{{author|}}} | {{#if:{{{archiveurl|}}} | [{{{archiveurl}}} {{#replace:{{{title}}}|]|]}}] | ||
| {{#if:{{{url|}}} | [{{{url}}} {{#replace:{{{title}}}|]|]}}] }} | |||
}}{{#if: {{{ | }} | ||
}}{{#if:{{{language|}}} |  ({{{language}}}) | |||
}}}} | }}{{#if:{{{format|}}} |  ({{{format|}}}) | ||
}}{{#if:{{{work|}}} | {{#if:{{{author|}}}|"}}. ''{{{work}}}''{{#if:{{{pages|}}}|, pp. {{{pages}}}|{{#if:{{{page|}}}|, p. {{{page}}}}}}} | |||
| {{#if:{{{pages|}}}|, pp. {{{pages}}}|{{#if:{{{page|}}}|, p. {{{page}}}}}}}{{#if:{{{author|}}}|"}} | |||
}}{{#if:{{{publisher|}}} | . {{{publisher}}}{{#if:{{{author|}}}||{{#if:{{{date|}}}| ({{{date}}})}}}} | |||
| {{#if:{{{author|}}}||{{#if:{{{date|}}}| ({{{date}}})}}}} | |||
}}{{#if: {{{ | }}{{#if:{{{archivedate|}}} | . Archived from [{{{url}}} the original] on {{{archivedate}}} | ||
}}{{#if:{{{accessdate|}}} | . Retrieved on {{{accessdate}}} | |||
}}{{#if:{{{accessdate|}}}{{{archivedate|}}}{{{publisher|}}}{{{work|}}}|. | |||
}}</includeonly><noinclude>{{WebRef/doc}} | |||
}}{{#if: {{{publisher|}}} | |||
| . {{{publisher}}}{{#if: {{{author|}}}||{{#if:{{{date|}}}| | |||
}}{{#if:{{{author|}}}||{{#if: {{{date|}}}| ({{{date}}})}} | |||
}} | |||
}}{{#if: {{{accessdate|}}} | |||
}}</includeonly><noinclude>{{ | |||
[[Category:Referencing templates]]</noinclude> | [[Category:Referencing templates]]</noinclude> |
Latest revision as of 15:15, 14 November 2020
This is a template documentation subpage for Template:WebRef.
It contains usage information, categories, interlanguage links and other content that is not part of the original template page.
It contains usage information, categories, interlanguage links and other content that is not part of the original template page.
This template and documentation were adapted from English Wikipedia. The template is used to cite or reference sources on MTG Wiki on a standardized manner.
Usage
- Common form for cases where little is known about authorship of the page (with current date)
{{WebRef|url= |title= |accessdate=2024-12-03|format= |work= }}
- Using author (with current date)
{{WebRef|url= |title= |accessdate=2024-12-03|author= |date= |format= |work= |publisher= |pages= |language= |archiveurl= |archivedate= }}
- Using non-linked retrieved date, author
{{WebRef|url= |title= |author= |date= |work= |publisher= |pages= |language= |archiveurl= |archivedate= }}
- All parameters, horizontal format (delete the ones you don't need)
{{WebRef|url= |title= |accessdate= |author= |date= |format= |work= |publisher= |pages= |language= |archiveurl= |archivedate= }}
- All parameters, vertical format
{{WebRef | url = | title = | accessdate = | author = | date = | format = | work = | publisher = | pages = | page = | language = | archiveurl = | archivedate = }}
Required parameters
- url: URL of online item.
- title: Title of online item.
Optional parameters
- author: Author
- date: Full date of publication, preferably in ISO 8601 YYYY-MM-DD format, e.g. 2006-02-17.
- format: Format, e.g. PDF. HTML implied if not specified.
- work: If this item is part of a larger work, name of that work.
- publisher: Publisher, if any.
- pages: pp. 5–7: first page and optional last page. This is for listing the pages relevant to the citation, not the total number of pages in the book.
- page: p. 5: reference page. This parameter is mutually exclusive with pages. If both are specified, pages takes precedent.
- language: language of publication (don't specify "English" as this is the default).
- archiveurl: URL of the archive location of the item (requires archivedate)
- archivedate: Date when the item was archived (requires archiveurl), in ISO 8601 YYYY-MM-DD format, e.g. 2006-02-17.
- accessdate: Full date when item was accessed, in ISO 8601 YYYY-MM-DD format, for example "accessdate = 2024-12-03".
Examples
- Some standard use cases
- {{WebRef
| author=Doe, John
| title=My Favorite Things [Part II]
| publisher=Open Publishing
| date=2005-04-30
| work=Encyclopedia of Things
| url=http://www.example.org/
| accessdate=2005-07-06
}}
→ Doe, John (2005-04-30). "My Favorite Things [Part II]". Encyclopedia of Things. Open Publishing. Retrieved on 2005-07-06.
- {{WebRef
| author=Doe, John
| title=My Favorite Things [Part II]
| date=2005-04-30
| work=Encyclopedia of Things
| url=http://www.example.org/
| accessdate=2005-07-06
}}
→ Doe, John (2005-04-30). "My Favorite Things [Part II]". Encyclopedia of Things. Retrieved on 2005-07-06.
- {{WebRef
| author=Doe, John
| title=My Favorite Things [Part II]
| date=2005-04-30
| url=http://www.example.org/
| accessdate=2005-07-06
}}
→ Doe, John (2005-04-30). "My Favorite Things Part II". Retrieved on 2005-07-06.
- {{WebRef
| author=Doe, John
| title=My Favorite Things [Part II]
| url=http://www.example.org/
| accessdate=2005-07-06
}}
→ Doe, John. "My Favorite Things Part II". Retrieved on 2005-07-06.
- {{WebRef
| title=My Favorite Things [Part II]
| url=http://www.example.org/
| accessdate=2005-07-06
}}
→ My Favorite Things Part II. Retrieved on 2005-07-06.
- {{WebRef
| url=http://www.nfl.com/fans/
| title=Digest of Rules
| publisher= National Football League
| accessdate=2005-07-06
}}
→ Digest of Rules. National Football League. Retrieved on 2005-07-06.
- Using format
- {{WebRef
| title=List of psychotropic substances under international control
| publisher = International Narcotics Control Board
| url=http://www.indiapost.gov.in/Pdf/Customs/List_of_Psychotropic_Substances.pdf
| format = PDF
| accessdate=2014-02-05
}}
→ List of psychotropic substances under international control (PDF). International Narcotics Control Board. Retrieved on 2014-02-05.
- language
- {{WebRef
| author=Joliet, François
| title=Honnit soit qui mal y pense
| date=2005-04-30
| url=http://www.example.org/
| accessdate=2005-07-06
| language=French
}}
→ Joliet, François (2005-04-30). "Honnit soit qui mal y pense (French)". Retrieved on 2005-07-06.
- No author
- {{WebRef | title=My Favorite Things Part II | publisher=Open Publishing | date=2005-04-30 | work=Encyclopedia of Things | url=http://www.example.org/ | accessdate=2006-05-16
}}
→ My Favorite Things Part II. Encyclopedia of Things. Open Publishing (2005-04-30). Retrieved on 2006-05-16.
- No author, no publisher
- {{WebRef | title=My Favorite Things Part II | date=2005-04-30]] | work=Encyclopedia of Things | url=http://www.example.org/ | accessdate=2005-07-06
}}
→ My Favorite Things Part II. Encyclopedia of Things (2005-04-30). Retrieved on 2005-07-06.
- {{WebRef | title=My Favorite Things Part II | date=2005-04-30 | url=http://www.example.org/ | accessdate=2005-07-06 }}
→ My Favorite Things Part II (2005-04-30). Retrieved on 2005-07-06.
- {{WebRef
| title=List of psychotropic substances under international control
| date=2005-04-30
| url=http://www.incb.org/pdf/e/list/green.pdf
| format = PDF
| accessdate=2005-07-06
| language=Greek
}}
→ List of psychotropic substances under international control (Greek) (PDF) (2005-04-30). Retrieved on 2005-07-06.
- Using archiveurl and archivedate to refer to items that went away but are available from an archive site
- {{WebRef
| title=List of psychotropic substances under international control
| date=2005-04-30
| url=http://www.incb.org/pdf/e/list/green.pdf
| format = PDF
| accessdate=2005-07-06
| archiveurl=http://www.archive.org/2005-09-11/www.incb.org/pdf/e/list/green.pdf
| archivedate=2005-09-11
}}
→ List of psychotropic substances under international control (PDF) (2005-04-30). Archived from the original on 2005-09-11. Retrieved on 2005-07-06.
-
{{WebRef
|url=http://joanjettbadrep.com/cgi-bin/fullStory.cgi?archive=currnews&story=20060405-01shore.htm
|title=Interview with Maggie Downs
|date=2006-03-31
|publisher=The Desert Sun
|archiveurl=http://72.14.207.104/search?q=cache:JAxf4v-pQmgJ:joanjettbadrep.com/cgi-bin/fullStory.cgi%3Farchive%3Dcurrnews%26story%3D20060405-01shore.htm
|archivedate=2006-04-26
}}
→ Interview with Maggie Downs. The Desert Sun (2006-03-31). Archived from the original on 2006-04-26.
- No parameters (error)
- {{WebRef}}
→ Error on call to {{WebRef}}: Parameters url and title must be specified