Jump to content

Template:Cite web: Difference between revisions

From PhantomWiki
Create
 
add template data
Line 1: Line 1:
<includeonly>{{#if:{{{author|}}}|{{{author}}}. |}}{{#if:{{{url|}}}|[{{{url}}} “{{{title|Untitled webpage}}}”]|“{{{title|Untitled webpage}}}”}}{{#if:{{{website|}}}|. ''{{{website}}}''|}}{{#if:{{{publisher|}}}|. {{{publisher}}}|}}{{#if:{{{date|}}}|. {{{date}}}|}}{{#if:{{{access-date|}}}|. Retrieved {{{access-date}}}|}}.</includeonly>
<includeonly>{{#if:{{{author|}}}|{{{author}}}. |}}{{#if:{{{url|}}}|[{{{url}}} “{{{title|Untitled webpage}}}”]|“{{{title|Untitled webpage}}}”}}{{#if:{{{website|}}}|. ''{{{website}}}''|}}{{#if:{{{publisher|}}}|. {{{publisher}}}|}}{{#if:{{{date|}}}|. {{{date}}}|}}{{#if:{{{access-date|}}}|. Retrieved {{{access-date}}}|}}.</includeonly>
<noinclude>
<templatedata>
{
    "description": "Website citation",
    "params": {
        "author": {
            "label": "Author",
            "description": "Author or organisation responsible for the webpage",
            "type": "line",
            "suggested": true
        },
        "url": {
            "label": "URL",
            "description": "Web address of the page",
            "type": "url",
            "required": true
        },
        "title": {
            "label": "Page title",
            "description": "Title of the webpage",
            "type": "line",
            "required": true
        },
        "website": {
            "label": "Website",
            "description": "Name of the website",
            "type": "line",
            "suggested": true
        },
        "publisher": {
            "label": "Publisher",
            "description": "Organisation that publishes the website",
            "type": "line"
        },
        "date": {
            "label": "Publication date",
            "description": "Date the webpage was published or updated",
            "type": "date"
        },
        "access-date": {
            "label": "Access date",
            "description": "Date the webpage was accessed",
            "type": "date",
            "suggested": true
        }
    }
}
</templatedata>
</noinclude>

Revision as of 13:53, 9 September 2026


Website citation

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Authorauthor

Author or organisation responsible for the webpage

Linesuggested
URLurl

Web address of the page

URLrequired
Page titletitle

Title of the webpage

Linerequired
Websitewebsite

Name of the website

Linesuggested
Publisherpublisher

Organisation that publishes the website

Lineoptional
Publication datedate

Date the webpage was published or updated

Dateoptional
Access dateaccess-date

Date the webpage was accessed

Datesuggested