Template:Cite web: Difference between revisions
Jump to navigation
Jump to search
Red Leader (talk | contribs) mNo edit summary |
(+- error message: Using Template:Error for missing URL and/or title) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{#if: {{{url|}}} | {{#if: {{{title|}}} | no error }} }} | <includeonly>{{#if: {{#if: {{{url|}}} | {{#if: {{{title|}}} | no error }} }} | ||
| | | | |{{error|missing parameters '''url''' and/or '''title'''|cite web}} | ||
}}<!-- | }}<!-- | ||
Line 64: | Line 64: | ||
== Goal == | == Goal == | ||
This template is used to cite online sources in wiki articles. | This template is used to cite online sources in wiki articles. | ||
__TOC__ | |||
== Usage == | == Usage == | ||
<nowiki>{{</nowiki>'''cite web''' | <nowiki>{{</nowiki>'''cite web''' | ||
{{!}}url = | {{!}} url = | ||
{{!}}title = | {{!}} title = | ||
{{!}}''first'' = | {{!}} ''first'' = | ||
{{!}}''last'' = | {{!}} ''last'' = | ||
{{!}}''author'' = | {{!}} ''author'' = | ||
{{!}}''coauthors'' = | {{!}} ''coauthors'' = | ||
{{!}}''authorlink'' = | {{!}} ''authorlink'' = | ||
{{!}}''authorlink-wiki'' = | {{!}} ''authorlink-wiki'' = | ||
{{!}}''date'' = | {{!}} ''date'' = | ||
{{!}}''work'' = | {{!}} ''work'' = | ||
{{!}}''publisher'' = | {{!}} ''publisher'' = | ||
{{!}}''pages'' = | {{!}} ''pages'' = | ||
{{!}}''language'' = | {{!}} ''language'' = | ||
{{!}}''format'' = | {{!}} ''format'' = | ||
{{!}}''archiveurl'' = | {{!}} ''archiveurl'' = | ||
{{!}}''archivedate'' = | {{!}} ''archivedate'' = | ||
{{!}}''accessdate'' = | {{!}} ''accessdate'' = | ||
{{!}}''quote'' = | {{!}} ''quote'' = | ||
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||
Line 126: | Line 126: | ||
== Usage examples == | == Usage examples == | ||
<nowiki>{{ | <nowiki>* {{cite web | ||
| url = http://wiki.flightgear.org/Main_Page | |||
| title = FlightGear wiki - Main Page | |||
| author = Hellosimon | |||
| authorlink-wiki = User:Hellosimon | |||
| date = 18<sup>th</sup> April, 2006, 8:42 pm | |||
| publisher = [http://wiki.flightgear.org/Main_Page FlightGear wiki] | |||
| archiveurl = http://wiki.flightgear.org/index.php?title=Main_Page&oldid=1279 | |||
| archivedate = 18<sup>th</sup> April, 2006, 8:42 pm | |||
| accessdate = {{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}} | |||
| quote = Summary: Rough Outline | |||
}}</nowiki> | |||
{{cite web | * {{cite web | ||
|url = http://wiki.flightgear.org/Main_Page | | url = http://wiki.flightgear.org/Main_Page | ||
|title = Main Page | | title = FlightGear wiki - Main Page | ||
|author = Hellosimon | | author = Hellosimon | ||
|authorlink-wiki = User:Hellosimon | | authorlink-wiki = User:Hellosimon | ||
|date = 18<sup>th</sup> April, 2006, 8:42 pm | | date = 18<sup>th</sup> April, 2006, 8:42 pm | ||
|publisher = [http://wiki.flightgear.org/Main_Page FlightGear wiki] | | publisher = [http://wiki.flightgear.org/Main_Page FlightGear wiki] | ||
|archiveurl = http://wiki.flightgear.org/index.php?title=Main_Page&oldid=1279 | | archiveurl = http://wiki.flightgear.org/index.php?title=Main_Page&oldid=1279 | ||
|archivedate = 18<sup>th</sup> April, 2006, 8:42 pm | | archivedate = 18<sup>th</sup> April, 2006, 8:42 pm | ||
|accessdate = {{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}} | | accessdate = {{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}} | ||
|quote = Summary: Rough Outline | | quote = Summary: Rough Outline | ||
}} | }} | ||
<nowiki>{{ | <nowiki>* {{cite web | ||
| url = {{forum url|t=15267}} | |||
| title = How the project works | |||
| author = Thorsten | |||
| date = Feb 09, 2012 | |||
| accessdate = {{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}} | |||
}}</nowiki> | |||
{{cite web | * {{cite web | ||
|url = | | url = {{forum url|t=15267}} | ||
|title = How the project works | | title = How the project works | ||
|author = Thorsten | | author = Thorsten | ||
|date = Feb 09, 2012 | | date = Feb 09, 2012 | ||
|accessdate = {{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}} | | accessdate = {{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}} | ||
}} | }} | ||
== Copyable examples == | == Copyable examples == | ||
Line 172: | Line 172: | ||
==== Commonly used parameters (horizontal format) ==== | ==== Commonly used parameters (horizontal format) ==== | ||
<nowiki>{{</nowiki>'''cite web'''{{!}}url= {{!}}title= {{!}}''author''= {{!}}''date''= {{!}}''publisher''= {{!}}''accessdate''= <nowiki>}}</nowiki> | <nowiki>{{</nowiki>'''cite web''' {{!}}url= {{!}}title= {{!}}''author''= {{!}}''date''= {{!}}''publisher''= {{!}}''accessdate''= <nowiki>}}</nowiki> | ||
==== Commonly used parameters (vertical format) ==== | ==== Commonly used parameters (vertical format) ==== | ||
<nowiki>{{</nowiki>'''cite web''' | <nowiki>* {{</nowiki>'''cite web''' | ||
{{!}} url = | |||
{{!}} title = | |||
{{!}} ''author'' = | |||
{{!}} ''date'' = | |||
{{!}} ''publisher'' = | |||
{{!}} ''accessdate'' = | |||
<nowiki>}}</nowiki> | |||
==== All parameters (horizontal format) ==== | ==== All parameters (horizontal format) ==== | ||
<div class="mw-code" style="background-color: #ffffff;"> | <div class="mw-code" style="background-color: #ffffff;"> | ||
<nowiki>{{</nowiki>'''cite web'''{{!}}url= {{!}}title= {{!}}''first''= {{!}}''last''= {{!}}''author''= {{!}}''coauthors''= {{!}}''authorlink''= {{!}}''authorlink-wiki''= {{!}}''date''= {{!}}''work''= {{!}}''publisher''= {{!}}''pages''= {{!}}''language''= {{!}}''format''= {{!}}''archiveurl''= {{!}}''archivedate''= {{!}}''accessdate''= {{!}}''quote''= <nowiki>}}</nowiki> | <nowiki>{{</nowiki>'''cite web''' {{!}}url= {{!}}title= {{!}}''first''= {{!}}''last''= {{!}}''author''= {{!}}''coauthors''= {{!}}''authorlink''= {{!}}''authorlink-wiki''= {{!}}''date''= {{!}}''work''= {{!}}''publisher''= {{!}}''pages''= {{!}}''language''= {{!}}''format''= {{!}}''archiveurl''= {{!}}''archivedate''= {{!}}''accessdate''= {{!}}''quote''= <nowiki>}}</nowiki> | ||
</div> | </div> | ||
==== All parameters (vertical format) ==== | ==== All parameters (vertical format) ==== | ||
<nowiki>{{</nowiki>'''cite web''' | <nowiki>* {{</nowiki>'''cite web''' | ||
{{!}} url = | |||
{{!}} title = | |||
{{!}} ''first'' = | |||
{{!}} ''last'' = | |||
{{!}} ''author'' = | |||
{{!}} ''coauthors'' = | |||
{{!}} ''authorlink'' = | |||
{{!}} ''authorlink-wiki'' = | |||
{{!}} ''date'' = | |||
{{!}} ''work'' = | |||
{{!}} ''publisher'' = | |||
{{!}} ''pages'' = | |||
{{!}} ''language'' = | |||
{{!}} ''format'' = | |||
{{!}} ''archiveurl'' = | |||
{{!}} ''archivedate'' = | |||
{{!}} ''accessdate'' = | |||
{{!}} ''quote'' = | |||
<nowiki>}}</nowiki> | |||
== Related templates == | == Related templates == | ||
* {{tl|project infrastructure}} | |||
* {{tl|forum url}} | |||
* {{tl|forum link}} | |||
* {{tl|wikipedia}} | * {{tl|wikipedia}} | ||
Latest revision as of 14:23, 21 August 2019
The following template description is not displayed when the template is inserted in an article.
Goal
This template is used to cite online sources in wiki articles.
Usage
{{cite web | url = | title = | first = | last = | author = | coauthors = | authorlink = | authorlink-wiki = | date = | work = | publisher = | pages = | language = | format = | archiveurl = | archivedate = | accessdate = | quote = }}
The only mandatory parameters are url and title.
- url
- URL of the resource.
- title
- Title of the resource.
- first
- First name of the single author. Not needed if author is used instead.
- last
- Last name of the single author. Not needed if author is used instead.
- author
- Name of the (single) author. Alternatively, first and last can be used.
- authorlink
- URL to the author's home page, profile, etc..
- authorlink-wiki
- Wiki page name to the author's user name on the wiki. For example,
User:BotFlightGear
would link to BotFlightGear.
- coauthors
- Coauthors of the resource, links can be used. If there are two coauthors (three authors overall), separate with semicolons (;).
- date
- Date of resource, any format you wish.
- work
- Name of the work. Will override title. Will be formatted like this: "<work>".
- publisher
- The publisher of the resource. May include a link.
- pages
- The numbered pages in the resource that is relevant. Separate ranges with a dash (
–
) and non sequential pages with comma (,
).
- language
- The language of the resource if it is not English or the language of a translated page.
- format
- Format of the resource, such as PDF, DOC, etc..
- archiveurl
- Link to an archived copy of a web page. Will be used instead of url.
- archivedate
- Date when original URL was archived.
- accessdate
- The date the resource was found and added this page, or date it was updated. You can use any format you wish.
- quote
- A quote from the resource. Will be formatted like this: "<quote>"
Usage examples
* {{cite web | url = http://wiki.flightgear.org/Main_Page | title = FlightGear wiki - Main Page | author = Hellosimon | authorlink-wiki = User:Hellosimon | date = 18<sup>th</sup> April, 2006, 8:42 pm | publisher = [http://wiki.flightgear.org/Main_Page FlightGear wiki] | archiveurl = http://wiki.flightgear.org/index.php?title=Main_Page&oldid=1279 | archivedate = 18<sup>th</sup> April, 2006, 8:42 pm | accessdate = {{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}} | quote = Summary: Rough Outline }}
- Hellosimon (18th April, 2006, 8:42 pm). FlightGear wiki - Main Page. Published by FlightGear wiki. Archived from the original on 18th April, 2006, 8:42 pm. Retrieved March 29, 2024. "Summary: Rough Outline"
* {{cite web | url = {{forum url|t=15267}} | title = How the project works | author = Thorsten | date = Feb 09, 2012 | accessdate = {{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}} }}
- Thorsten (Feb 09, 2012). How the project works. Retrieved March 29, 2024.
Copyable examples
Citations within a page should use consistent formats. However, there is no consensus about which format is best. These examples show horizontal and vertical formats of all parameter and often-used ones.
Commonly used parameters (horizontal format)
{{cite web |url= |title= |author= |date= |publisher= |accessdate= }}
Commonly used parameters (vertical format)
* {{cite web | url = | title = | author = | date = | publisher = | accessdate = }}
All parameters (horizontal format)
{{cite web |url= |title= |first= |last= |author= |coauthors= |authorlink= |authorlink-wiki= |date= |work= |publisher= |pages= |language= |format= |archiveurl= |archivedate= |accessdate= |quote= }}
All parameters (vertical format)
* {{cite web | url = | title = | first = | last = | author = | coauthors = | authorlink = | authorlink-wiki = | date = | work = | publisher = | pages = | language = | format = | archiveurl = | archivedate = | accessdate = | quote = }}
Related templates
- {{project infrastructure}}
- {{forum url}}
- {{forum link}}
- {{wikipedia}}