Template:Cite web: Difference between revisions
m (+-cat: Templates → Link templates) |
Red Leader (talk | contribs) (Integrate + doc) |
||
Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{#if: {{#if: {{{url|}}} | {{#if: {{{title|}}} | no error }} }} | ||
#if: {{#if: {{{url|}}} | {{#if: | | |<span style="color: red">Cannot use {{tl|Cite web}}, due to missing parameters '''url''' and/or '''title'''.</span> | ||
}}<!-- | |||
}} | |||
-->{{#if: {{{author|}}}{{{last|}}} | |||
| {{#if: {{{authorlink|}}}{{{authorlink-wiki|}}} | |||
| {{User:Red Leader/Sandbox/Template:Cite web/link | |||
|type = {{#if: {{{authorlink-wiki|}}} | wiki | ext}} | |||
|link = {{{authorlink|}}}{{{authorlink-wiki|}}} | |||
|label = {{#if: {{{last|}}} | {{{last}}}{{#if: {{{first|}}} |, {{{first}}}}} | {{{author}}} }} | |||
| | |||
| {{#if: {{{last|}}} | |||
}} | }} | ||
| {{#if: {{{last|}}} | |||
|{{{last}}}{{#if: {{{first|}}} |, {{{first}}}}} | |||
| {{#if: | |{{{author}}} | ||
| | |||
}} | }} | ||
}}<!-- | |||
-->{{#if: {{{coauthors|}}} |<nowiki>;</nowiki> {{{coauthors}}}}}<!-- | |||
-->{{#if: {{{date|}}} | |||
}}{{#if: {{{ | | ({{{date}}}) | ||
| {{#if: {{{year|}}} | |||
| {{#if: {{{month|}}} | |||
| ({{{month}}} {{{year}}}) | |||
| ({{{year}}}) | |||
}} | |||
}}{{#if: {{{ | }} | ||
}}. | |||
}}<!-- | |||
-->{{#if: {{{archiveurl|}}} | |||
}} | | {{#if: {{{work|}}} | ''[{{{archiveurl}}} "{{{work}}}"]'' | {{#if: {{{title|}}} | [{{{archiveurl}}} {{{title}}}] }} }} | ||
| {{#if: {{{url|}}} | {{#if: {{{work|}}} | ''[{{{url}}} "{{{work}}}"]'' | {{#if: {{{title|}}} | [{{{url}}} {{{title}}}] }} }} }} | |||
}}<!-- | |||
-->{{#if: {{{language|}}} | |||
| (in {{{language}}}) | |||
}}<!-- | |||
-->{{#if: {{{format|}}} | |||
| ({{{format}}}) | |||
}}<!-- | |||
}}{{#if: {{{ | -->{{#if: {{{pages|}}} | ||
|, pages {{{pages}}} | |||
}}{{#if: {{{ | }}.<!-- | ||
-->{{#if: {{{publisher|}}} | |||
| Published by {{{publisher|}}}. | |||
}}<!-- | |||
-->{{#if: {{{archiveurl|}}} | |||
| Archived from [{{{url}}} the original]{{#if: {{{archivedate|}}} | on {{{archivedate}}}}}. | |||
}}<!-- | |||
-->{{#if: {{{accessdate|}}} | |||
| Retrieved {{{accessdate|}}}. | |||
}}<!-- | |||
-->{{#if: {{{quote|}}} | |||
| ''"{{{quote}}}"'' | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{Informative template|1= | {{Informative template|1= | ||
Line 72: | Line 65: | ||
This template is used to cite online sources in wiki articles. | This template is used to cite online sources in wiki articles. | ||
== Usage == | == Usage == | ||
=== | <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> | |||
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, <code>User:BotFlightGear</code> would link to {{usr|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 (<code><nowiki>–</nowiki></code>) and non sequaential pages with comma (<code>,</code>). | ||
; | ; 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 == | |||
<nowiki>{{</nowiki>'''cite web''' | |||
{{!}}url = <nowiki>http://wiki.flightgear.org/Main_Page</nowiki> | |||
{{!}}title = FlightGear wiki - Main Page | |||
{{!}}''author'' = Hellosimon | |||
{{!}}''authorlink-wiki'' = User:Hellosimon | |||
{{!}}''date'' = 18<nowiki><sup>th</sup></nowiki> April, 2006, 8:42 p.m. | |||
{{!}}''publisher'' = <nowiki>[http://wiki.flightgear.org/Main_Page FlightGear wiki]</nowiki> | |||
{{!}}''archiveurl'' = <nowiki>http://wiki.flightgear.org/index.php?title=Main_Page&oldid=1279</nowiki> | |||
{{!}}''archivedate'' = 18<nowiki><sup>th</sup></nowiki> April, 2006, 8:42 p.m. | |||
{{!}}''accessdate'' = <nowiki>{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}</nowiki> | |||
{{!}}''quote'' = Summary: Rough Outline | |||
<nowiki>}}</nowiki> | |||
{{cite web | |||
|url = http://wiki.flightgear.org/Main_Page | |||
|title = Main Page after first edit | |||
|author = Hellosimon | |||
|authorlink-wiki = User:Hellosimon | |||
|date = 18<sup>th</sup> April, 2006, 8:42 p.m. | |||
|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 p.m. | |||
|accessdate = {{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}} | |||
|quote = Summary: Rough Outline | |||
}} | |||
<nowiki>{{</nowiki>'''cite web''' | |||
{{!}}url = <nowiki>http://forum.flightgear.org/viewtopic.php?f=42&t=15267</nowiki> | |||
{{!}}title = How the project works | |||
{{!}}''author'' = Thorsten | |||
{{!}}''date'' = Feb 09, 2012 | |||
{{!}}''accessdate'' = <nowiki>{{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}}</nowiki>> | |||
<nowiki>}}</nowiki> | |||
{{cite web | |||
|url = http://forum.flightgear.org/viewtopic.php?f=42&t=15267 | |||
|title = How the project works | |||
|author = Thorsten | |||
|date = Feb 09, 2012 | |||
|accessdate = {{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}} | |||
}} | |||
== 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) ==== | |||
<nowiki>{{</nowiki>'''cite web'''{{!}}url= {{!}}title= {{!}}''author''= {{!}}''date''= {{!}}''publisher''= {{!}}''accessdate''= <nowiki>}}</nowiki> | |||
==== Commonly used parameters (vertical format) ==== | |||
<nowiki>{{</nowiki>'''cite web''' | |||
{{!}}url = | |||
{{!}}title = | |||
{{!}}''author'' = | |||
{{!}}''date'' = | |||
{{!}}''publisher'' = | |||
{{!}}''accessdate'' = | |||
<nowiki>}}</nowiki> | |||
; | ==== All parameters (horizontal format) ==== | ||
<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> | |||
</div> | |||
==== All parameters (vertical format) ==== | |||
<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 == |
Revision as of 17:44, 17 February 2015
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 sequaential 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 p.m. |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 p.m. |accessdate = {{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}} |quote = Summary: Rough Outline }}
User:Red Leader/Sandbox/Template:Cite web/link (18th April, 2006, 8:42 p.m.). Main Page after first edit. Published by FlightGear wiki. Archived from the original on 18th April, 2006, 8:42 p.m.. Retrieved April 19, 2024. "Summary: Rough Outline"
{{cite web |url = http://forum.flightgear.org/viewtopic.php?f=42&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 April 19, 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
- {{wikipedia}}