Nodyn:Gwefan Swyddogol
Gwefan swyddogol
Usage[golygu cod]
The purpose of this template is to provide a standard format for labeling links to official websites. The only required parameter is the URL. Three other parameters are also available:
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}}
|
Gwefan swyddogol |
{{Official website|www.example.org}}
|
Gwefan swyddogol |
{{Official website|http://www.example.org/}}
|
Gwefan swyddogol |
{{Official website|https://www.example.org/}}
|
Gwefan swyddogol |
{{Official website|1=http://www.example.org/?action=view}}
|
Gwefan swyddogol |
{{Official website|http://www.example.org|name=Official example website}}
|
Official example website |
{{Official website|example.org|mobile=http://m.example.org}}
|
Gwefan swyddogol (Mobile) |
{{Official website|example.org|format=flash}}
|
Gwefan swyddogol (Requires Adobe Flash Player) |
TemplateData[golygu cod]
This is the TemplateData documentation for the template used by the new VisualEditor.
Gwefan Swyddogol
This template is used to mark articles without geolocation data (coordinates). Use the {{coord}} template to add geographical data.
Paramedr | Disgrifiad | Math | Statws | |
---|---|---|---|---|
URL | 1 | The URL that the template will link to | Llinyn | angenrheidiol |
URL Text | name | The text the URL will display. If not provided this will default to 'Official website'' | Llinyn | dewisol |
Mobile Website | mobile | If the website has a different 'official website' for mobile devices this website can be listed here | Llinyn | dewisol |
Requires Flash | format | If the website requires Adobe Flash Player software to be displayed, set this parameters value to 'flash' | Llinyn | dewisol |
See also[golygu cod]
- {{URL}} – for use instead of {{Official website}} in infoboxes
- {{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)
Mae'r ddogfennaeth uchod wedi ei thrawsgynnwys o Nodyn:Gwefan Swyddogol/doc. (golygu | hanes) Gall golygyddion arbrofi yn y tudalennau pwll tywod (creu | drych) a testcases (creu). Os gwelwch yn dda, ychwanegwch gategorïau a rhyngwicis at yr is-dudalen /doc. Is-dudalennau'r nodyn hwn. |