Template:Official URL/doc

This template displays the actual URL that it links (partially stripped), instead of displaying "Official website" like {{Official website}} does. For example, if used on the Google page (whose official URL is https://about.google/), these templates would produce the following:

Usage

This template has no parameters. Typical usage is:

{{Infobox settlement
...
| website = {{Official URL}}
}}

This template is for use in infoboxes. It retrieves property P856 ("official website") from Wikidata and displays the value the same way that {{URL}} would. If there is no property P856 at Wikidata, it displays nothing (unlike {{URL}}, which gives an error message). When a website needs to be added or changed, simply go to the Wikidata item and add or change the website at Wikidata. With this template, no edits will be needed at the article (just refresh the page if the updated website is not visible). This template also displays an edit link to the Wikidata property, using {{Edit at Wikidata}}.

The following templates implement the function of this one intrinsically:

Modules and templates used

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Official URL in articles based on its TemplateData.

TemplateData for Official URL

This template is for use in infoboxes. The template outputs the website URL (e.g. "www.example.com") for the article subject with a link to the URL, using the "official website" field (field P856) from the associated Wikidata page, if available. It will not display https:// or http://, but the link will work based on what is specified in Wikidata.

Template parameters

ParameterDescriptionTypeStatus
No parameters specified

See also


Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.