Template:Cite web: Difference between revisions

Administrator (talk | contribs)
No edit summary
Tag: Reverted
Administrator (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{url|}}} and {{{title|}}}|<ref>{{#if: {{{author|}}}|{{{author}}}, }}{{#if: {{{author2|}}}|{{{author2}}}, }}{{#if: {{{author3|}}}|{{{author3}}}, }}{{#if: {{{date|}}}|({{{date}}}). }}"{{{title}}}" {{#if: {{{website|}}}|'''{{{website}}}'''. }}{{#if: {{{publisher|}}}|{{{publisher}}}. }}{{#if: {{{url|}}}|URL: [{{{url}}} {{{url}}}] }}{{#if: {{{access-date|}}}|(accessed {{{access-date}}}). }}{{#if: {{{page|}}}|p. {{{page}}}. }}{{#if: {{{quote|}}}|"{{{quote}}}" }}{{#if: {{{language|}}}|[{{{language}}}] }}</ref>|<span style="color:red">Error: Both title and url parameters are required.</span>}}</includeonly><noinclude>
<includeonly><ref>{{#if: {{{author|}}}|{{{author}}}, }}{{#if: {{{author2|}}}|{{{author2}}}, }}{{#if: {{{author3|}}}|{{{author3}}}, }}{{#if: {{{date|}}}|({{{date}}}). }}"{{{title}}}" {{#if: {{{website|}}}|'''{{{website}}}'''. }}{{#if: {{{publisher|}}}|{{{publisher}}}. }}{{#if: {{{url|}}}|[{{{url}}} {{{url}}}] }}{{#if: {{{access-date|}}}|(accessed {{{access-date}}}). }}{{#if: {{{page|}}}|p. {{{page}}}. }}{{#if: {{{quote|}}}|"{{{quote}}}" }}{{#if: {{{language|}}}|[{{{language}}}] }}</ref></includeonly><noinclude>
== Cite Web Template ==
== Cite Web Template ==
This template creates standardized citations for web references.
This template creates standardized citations for web references.
Line 29: Line 29:


All other parameters are optional.
All other parameters are optional.
<templatedata>
{
    "description": "Creates a citation for a web source as a footnote",
    "params": {
        "title": {
            "label": "Title",
            "description": "The title of the webpage being cited",
            "type": "string",
            "required": true
        },
        "url": {
            "label": "URL",
            "description": "The URL (web address) of the source",
            "type": "string",
            "required": true
        },
        "author": {
            "label": "Author",
            "description": "The name of the primary author",
            "type": "string"
        },
        "author2": {
            "label": "Second Author",
            "description": "The name of the second author (if applicable)",
            "type": "string"
        },
        "author3": {
            "label": "Third Author",
            "description": "The name of the third author (if applicable)",
            "type": "string"
        },
        "date": {
            "label": "Publication Date",
            "description": "The date the source was published (YYYY-MM-DD format recommended)",
            "type": "string",
            "suggested": true
        },
        "website": {
            "label": "Website Name",
            "description": "The name of the website where the source was published",
            "type": "string",
            "suggested": true
        },
        "publisher": {
            "label": "Publisher",
            "description": "The organization that publishes the website (if different from the website name)",
            "type": "string"
        },
        "access-date": {
            "label": "Access Date",
            "description": "The date you accessed the source (YYYY-MM-DD format recommended)",
            "type": "string",
            "suggested": true
        },
        "archive-url": {
            "label": "Archive URL",
            "description": "The URL of an archived version of the page (e.g., from the Internet Archive)",
            "type": "string"
        },
        "archive-date": {
            "label": "Archive Date",
            "description": "The date the page was archived (YYYY-MM-DD format recommended)",
            "type": "string"
        },
        "quote": {
            "label": "Quote",
            "description": "A short relevant quote from the source",
            "type": "string"
        },
        "language": {
            "label": "Language",
            "description": "The language of the source if not English",
            "type": "string"
        },
        "page": {
            "label": "Page",
            "description": "The specific page number being referenced (if applicable)",
            "type": "string"
        },
        "format": {
            "label": "Format",
            "description": "The file format of the source if not HTML (e.g., PDF, DOCX)",
            "type": "string"
        }
    },
    "paramOrder": [
        "title",
        "url",
        "author",
        "author2",
        "author3",
        "date",
        "website",
        "publisher",
        "access-date",
        "archive-url",
        "archive-date",
        "quote",
        "language",
        "page",
        "format"
    ]
}
</templatedata>
</noinclude>
</noinclude>