Jump to content

Template:Official URL/doc: Difference between revisions

no edit summary
(→‎Usage: EditAtWikidata)
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{Uses Wikidata|P856}}
{{Uses Wikidata|P7736}}


== Usage ==
== Usage ==
Line 13: Line 13:
</pre>
</pre>


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


The following infoboxes do not need this template and implement its function intrinsically:
The following infoboxes do not need this template and implement its function intrinsically: