ഫലകം:Official website/doc
This is a documentation subpage for ഫലകം:Official website. It may contain usage information, categories and other content that is not part of the original ഫലകം page. |
Usage
തിരുത്തുകThis template uses the Wikidata property:
The purpose of this template is to provide a standard format for labeling links to official websites. Four parameters are available:
1=
is used to specify the URL. If this parameter is omitted, the value of "official website" Property (P856) on Wikidata is used.- NOTE: If this parameter is specified and doesn't match "official website" Property (P856) on Wikidata, the page is added to Category:Official website different in Wikidata and Wikipedia for maintenance. If this parameter is specified but the "official website" Property (P856) on Wikidata has not been set, the page is added to Category:Official website not in Wikidata for maintenance.
name=
is used to reformat the title if "official website" is not suitable.- NOTE: This name should succinctly and accurately describe the external link in relation to the subject. In particular, it should not include the article subject's name as the reader reasonably expects that all external links pertain to the subject.
mobile=
is optionally used if there is a different "official website" for use with Mobile Web devicesformat=flash
is optionally used if the website requires Adobe Flash Player software
Some URLs that contain special characters, such as &
or =
, will break the template. The solution is to prepend the URL with 1=
Code | Result |
---|---|
{{Official website|example.org}}
|
ഔദ്യോഗിക വെബ്സൈറ്റ് |
{{Official website|www.example.org}}
|
ഔദ്യോഗിക വെബ്സൈറ്റ് |
{{Official website|//www.example.org}}
|
ഔദ്യോഗിക വെബ്സൈറ്റ് |
{{Official website|http://www.example.org/}}
|
ഔദ്യോഗിക വെബ്സൈറ്റ് |
{{Official website|https://www.example.org/}}
|
ഔദ്യോഗിക വെബ്സൈറ്റ് |
{{Official website|1=http://www.example.org/?action=view}}
|
ഔദ്യോഗിക വെബ്സൈറ്റ് |
{{Official website|http://www.example.org|name=Example}}
|
Example |
{{Official website|example.org|mobile=http://m.example.org}}
|
ഔദ്യോഗിക വെബ്സൈറ്റ് (Mobile) |
{{Official website|mobile=http://m.example.org|URL=example.org}}
|
ഔദ്യോഗിക വെബ്സൈറ്റ് (Mobile) |
{{Official website|example.org|format=flash}}
|
ഔദ്യോഗിക വെബ്സൈറ്റ് (Requires Adobe Flash Player) |
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
The purpose of this template is to provide a standard format for labeling links to official websites.
ചരം | വിവരണം | തരം | സ്ഥിതി | |
---|---|---|---|---|
URL | 1 URL | The URL that the template will link to | പദം | ഐച്ഛികം |
URL Text | name | The text the URL will display. If not provided this will default to 'Official website'' | പദം | ഐച്ഛികം |
Mobile Website | mobile | If the website has a different 'official website' for mobile devices this website can be listed here | പദം | ഐച്ഛികം |
Requires Flash | format | If the website requires Adobe Flash Player software to be displayed, set this parameters value to 'flash' | പദം | ഐച്ഛികം |
See also
തിരുത്തുക- {{ConditionalURL}} – For automatically inserting the official website Wikidata property
- {{Official websites}} – For multiple websites such as for different countries (preferably in English)
- {{Official websites in}} – For multiple websites in different languages (preferably in English)
- {{URL}} – For use instead of {{Official website}} in infoboxes