Template:Web source

Template documentation[view · edit · history · purge]
This documentation is transcluded from Template:Web source/doc.

This template can be used to provide the source of a picture from a website.

Usage


{{Web source |site= |home= |info= |pic= |author= |photographer= |comment= |cat= }}

Template parameters

ParameterDescriptionDefaultStatus
siteWebsite titleTitle of the original websiteemptyoptional
homeHome page linkLink to the home page of the websiteemptyoptional
home-deadDead home page linkSet to any value to display a "dead link" notice. Specification not needed if either home-dead-date or home-wayback are specifiedemptyoptional
home-dead-dateDead home page link dateDate on which the home page link rotted, in ISO 8601 formatemptyoptional
home-waybackHome page archive dateDate on which the home page was saved to the Wayback Machine, extracted from the URL of the saved page*optional
infoSource page linkLink to the web page where the image can be foundemptysuggested
info-deadDead source linkSet to any value to display a "dead link" notice. Specification not needed if either info-dead-date or info-wayback are specifiedemptyoptional
info-dead-dateDead source link dateDate on which the source page link rotted, in ISO 8601 formatemptyoptional
info-waybackSource archive dateDate on which the source page was saved to the Wayback Machine, extracted from the URL of the saved page*optional
picImage linkDirect link to the imageemptysuggested
pic-deadDead image linkSet to any value to display a "dead link" notice. Specification not needed if either pic-dead-date or pic-wayback are specifiedemptyoptional
pic-dead-dateDead image link dateDate on which the image page link rotted, in ISO 8601 formatemptyoptional
pic-waybackImage archive dateDate on which the image page was saved to the Wayback Machine, extracted from the URL of the saved page*optional
authorAuthorName of authoremptyoptional
photographerPhotographerPhotographer of the original imageemptyoptional
commentCommentString to be added at the end of the textemptyoptional
catCategoryCategory in which to place this fileemptyoptional
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. <nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

Category:Templates using TemplateData

This template can be used to provide the source of a picture from a website.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Authorauthor

Name of author

Unknownoptional
Categorycat

Category in which to place this file

Unknownoptional
Commentcomment

String to be added at the end of the text

Stringoptional
Home page linkhome

Link to the home page of the website

URLoptional
Dead home page linkhome-dead

Set to any value to show a "dead link" notice. Specification not needed if either "home-dead-date" or "home-wayback" are specified

Suggested values
yes
Unknownoptional
Dead home page link datehome-dead-date

Date on which the home page link rotted, in ISO 8601 format

Dateoptional
Home page archive datehome-wayback

Date on which the home page was saved to the Wayback Machine, extracted from the URL of the saved page

Default
*
Numberoptional
Source page linkinfo

Link to the web page where the image can be found

URLsuggested
Dead source linkinfo-dead

Set to any value to show a "dead link" notice. Specification not needed if either "info-dead-date" or "info-wayback" are specified

Suggested values
yes
Unknownoptional
Dead source link dateinfo-dead-date

Date on which the source page link rotted, in ISO 8601 format

Dateoptional
Source archive dateinfo-wayback

Date on which the home page was saved to the Wayback Machine, extracted from the URL of the saved page

Default
*
Numberoptional
Photographerphotographer

Photographer of the original image

Unknownoptional
Image linkpic

Direct link to the image

URLsuggested
Dead image linkpic-dead

Set to any value to show a "dead link" notice. Specification not needed if either "pic-dead-date" or "pic-wayback" are specified

Suggested values
yes
Unknownoptional
Dead image link datepic-dead-date

Date on which the image page link rotted, in ISO 8601 format

Dateoptional
Image archive datepic-wayback

Date on which the home page was saved to the Wayback Machine, extracted from the URL of the saved page

Default
*
Numberoptional
Website titlesite

Title of the original website

Unknownoptional

Additional information

The template is intended to be used in the following namespaces: the File namespace

The template is intended to be used by the following user groups: all users

Placement: In the "Source" parameter of the {{Information}} template (or the respective parameter of similar templates) or just below this template

Relies on:

Example

{{Web source|site=World Wide Web Consortium|home=https://www.w3.org/|info=https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/|pic=https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/helloworld.svg|pic-dead-date=2999-01-02|pic-wayback=20151104093226|author=clilley|comment=in W3C repository}}

renders as:

clilley on World Wide Web Consortium: Home pageSourceImage[ dead link ] in W3C repository.

Category:Templates using an unknown approach for internationalisationCategory:Internationalization templates using LangSwitch#%20Internationalization%20templates%20using%20LangSwitchCategory:External link templates#%20External%20links%20templatesCategory:Source templates
Category:External link templates Category:Internationalization templates using LangSwitch Category:Source templates Category:Templates not requiring internationalization Category:Templates using TemplateData