Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Modules and templates used  





3 TemplateData  





4 See also  














Template:Official URL/doc







Add links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< Template:Official URL

Usage[edit]

There are no parameters for this template. Typical usage is:

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

This template is for use in infoboxes. It links to property P856 (official website) at Wikidata to retrieve the website and displays in the same way as {{URL}}. If there is no property P856 at Wikidata, nothing will be displayed (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 website is not visible). An edit link to the Wikidata property is displayed via {{EditAtWikidata}}.

The following templates implement the function of this one intrinsically:

Modules and templates used[edit]

TemplateData[edit]

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[edit]



Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Official_URL/doc&oldid=1191956082"

Hidden category: 
Template documentation pages
 



This page was last edited on 26 December 2023, at 20:14 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki