Home  

Random  

Nearby  



Log in  



Settings  



Donate  



About Wikipedia  

Disclaimers  



Wikipedia





Template:Official website





Template  

Talk  



Language  

Watch  

View source  


(Redirected from Template:Official)
 


  • {{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):

    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"
     



    Last edited on 30 July 2023, at 04:27  


    Languages

     


    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á


     

    Wikipedia


    This page was last edited on 30 July 2023, at 04:27 (UTC).

    Content is available under CC BY-SA 4.0 unless otherwise noted.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Terms of Use

    Desktop