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  



1.1  Basic usage  





1.2  Advanced usage  







2 Examples  



2.1  URL in template  





2.2  URL in Wikidata  





2.3  No URL in template or Wikidata  







3 TemplateData  





4 Tracking categories  





5 Handling dead links  





6 See also  














Template:Official website






Afrikaans

العربية
Արեւմտահայերէն

Asturianu
Авар
Azərbaycanca
تۆرکجه
Basa Bali

Banjar
 / Bân-lâm-gú
Башҡортса
Беларуская
Беларуская (тарашкевіца)

Bikol Central
Български
Boarisch
Bosanski
Буряад
Català
Чӑвашла
Cebuano
Čeština
Corsu
Cymraeg
Dagbanli
Dansk
الدارجة

Eesti
Ελληνικά
Эрзянь
Español
Esperanto
فارسی
Fiji Hindi
Føroyskt
Français
Fulfulde
Galego
ГӀалгӀай

/Hak-kâ-ngî

Hausa
Հայերեն
ि
Hrvatski
Ido
Ilokano
Bahasa Indonesia
IsiXhosa
IsiZulu
Íslenska
Italiano
עברית
Jawa


Қазақша
Kiswahili
Kurdî
Кыргызча
Ladino

Latviešu
Lietuvių
Magyar
ि
Македонски

Malti
Māori

مصرى
Bahasa Melayu
Minangkabau
Монгол



Нохчийн
Norsk bokmål
Norsk nynorsk
ି
Oʻzbekcha / ўзбекча

Papiamentu
Português
Qaraqalpaqsha
Română
Русский
Sakizaya

Scots
Shqip

Simple English
سنڌي
Slovenčina
Slovenščina
کوردی
Српски / srpski
Srpskohrvatski / српскохрватски
Sunda
Svenska
Tagalog
ி
Татарча / tatarça
 


Тоҷикӣ
Türkçe
Українська
اردو
Vahcuengh
Tiếng Vit

Yorùbá


 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



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




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
Wikispecies
Wikinews
Wikiquote
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 

(Redirected from Template:Oweb)

  • {{official}}
  • The purpose of this template is to provide a standard format for labeling links to the official website of an article's main topic.

    Usage

    Basic usage

    This template can be used without specifying any parameters, if the "official website" Property (P856) is set in the respective article's Wikidata record. Just add {{official website}} to the article's External links section. If on Wikidata more than one official website is given, the entry tagged with the language being English is automatically preferred.

    Advanced usage

    Two parameters are available:

    Some URLs that contain special characters, such as &or=, will break the template. The solution is to prepend the URL with 1=

    Examples

    URL in template

    To the right of each example is the displayed output. Below each example is the actual output including <span>...</span> tags.

    URL in Wikidata

    Usage in the article Amazon (company):

    Note: If Wikidata holds two or more values in different languages, websites in English will be preferred. The module also prefers websites with a "preferred" Wikidata rank. If multiple websites are otherwise equally ranked in the module's criteria, the module will choose the website listed first.

    No URL in template or Wikidata

    Usage on any page without a URL in Wikidata property official website (P856):

    TemplateData

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

    TemplateData for Official website

    This template provides a standard format for labeling links to official websites, stating "Official website" with the website linked. If no parameters are set in this template, the template will use the official website entered into Wikidata, if available.

    Template parameters[Edit template data]

    ParameterDescriptionTypeStatus
    URL1 url URL

    Leave this blank if using a URL entered into Wikidata. If there is no Wikidata URL or to override the Wikidata URL, entering a URL in this field will cause the template to link to this entered field.

    Default
    Wikidata property P856
    Example
    https://example.com
    URLoptional
    Display textname 2

    If left blank, the template text will display the words "Official website" with the URL linked to it. This field should usually be left blank. If there another webpage that could reasonably understood as the official website and needs to be distinguished from the link in this template, replacement text can displayed by entering it into this field.

    Default
    Official website
    Example
    Publisher's website
    Stringoptional

    Tracking categories

    One of the following categories may be added to articles using this template (via Module:Official website):

    Handling dead links

    It's possible that a URL no longer references hosted content, or ends up hosting different content than intended. In this case, the {{Official website}} should be replaced with an invocation of {{webarchive}} with a title= parameter of "Official website". For example: {{webarchive |url=https://web.archive.org/web/20051222144340/http://en.wikipedia.org/ |date=2005-12-22 |title=Official website}}. Such an invocation appears as:

    Official website at the Wayback Machine (archived 2005-12-22)

    See also


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Official_website&oldid=1167832793"

    Categories: 
    Lua-based templates
    Templates using data from Wikidata
    Templates tracking Wikidata
    External link templates using Wikidata
    Hidden categories: 
    Wikipedia template-protected templates
    Test cases using output parameter
    Templates using TemplateData
    Webarchive template wayback links
    Templates that add a tracking category
     



    This page was last edited on 30 July 2023, at 04:27 (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