Template:WebRef: Difference between revisions

From MTG Wiki
Jump to navigation Jump to search
>Yandere-sliver
No edit summary
>Yandere-sliver
No edit summary
Line 7: Line 7:
}}{{#if:{{{author|}}}      | {{{author|}}}{{#if:{{{date|}}}| ({{{date}}})}}. "
}}{{#if:{{{author|}}}      | {{{author|}}}{{#if:{{{date|}}}| ({{{date}}})}}. "
}}{{#if:{{{title|}}}      |  
}}{{#if:{{{title|}}}      |  
   {{#if:{{{archiveurl|}}}  | [{{{archiveurl}}} {{{title}}}]  
   {{#if:{{{archiveurl|}}}  | [{{{archiveurl}}} {{#replace:{{#replace:{{{title}}}|[|[|]|]}}}}]  
     | {{#if:{{{url|}}}    | [{{{url}}} {{{title}}}] }}
     | {{#if:{{{url|}}}    | [{{{url}}} {{#replace:{{#replace:{{{title}}}|[|[|]|]}}}}] }}
   }}
   }}
}}{{#if:{{{language|}}}    |  ({{{language}}})
}}{{#if:{{{language|}}}    |  ({{{language}}})

Revision as of 06:21, 20 April 2019

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.

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-11-24|format= |work= }}

Using author (with current date)

{{WebRef|url= |title= |accessdate=2024-11-24|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-11-24".

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). "MyFavoriteThings[PartII]". 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). "MyFavoriteThings[PartII]". 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). "MyFavoriteThingsPartII". 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. "MyFavoriteThingsPartII". Retrieved on 2005-07-06.
  • {{WebRef | title=My Favorite Things [Part II] | url=http://www.example.org/ | accessdate=2005-07-06 }}
    MyFavoriteThingsPartII. Retrieved on 2005-07-06.
  • {{WebRef | url=http://www.nfl.com/fans/ | title=Digest of Rules | publisher= National Football League | accessdate=2005-07-06 }}
    DigestofRules. 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 }}
    Listofpsychotropicsubstancesunderinternationalcontrol (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). "Honnitsoitquimalypense (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 }}
    MyFavoriteThingsPartII. 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 }}
    MyFavoriteThingsPartII. 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 }}
    MyFavoriteThingsPartII (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 }}
    Listofpsychotropicsubstancesunderinternationalcontrol (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 }}
    Listofpsychotropicsubstancesunderinternationalcontrol (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 }}
    InterviewwithMaggieDowns. 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