Template:Official website/testcases
Jump to navigation
Jump to search
| This is the template test cases page for the sandbox of Template:Official website. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
| URL fetched from Wikidata |
|---|
{{Official website}}
{{Official website}} Lua error in package.lua at line 80: module 'Module:URL' not found.<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-2">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong>Lua error in package.lua at line 80: module 'Module:URL' not found. <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-3">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong> |
| URL with protocol |
|---|
{{Official website|URL=http://www.example.com}}
{{Official website}} Lua error in package.lua at line 80: module 'Module:URL' not found.<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-4">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong>Lua error in package.lua at line 80: module 'Module:URL' not found. <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-5">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong> |
| URL without protocol |
|---|
{{Official website|URL=www.example.com}}
{{Official website}} Lua error in package.lua at line 80: module 'Module:URL' not found.<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-6">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong>Lua error in package.lua at line 80: module 'Module:URL' not found. <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-7">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong> |
| URL from first positional parameter |
|---|
{{Official website|http://www.example.com}}
{{Official website}} Lua error in package.lua at line 80: module 'Module:URL' not found.<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-8">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong>Lua error in package.lua at line 80: module 'Module:URL' not found. <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-9">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong> |
| HTTPS URL |
|---|
{{Official website|URL=https://www.example.com}}
{{Official website}} Lua error in package.lua at line 80: module 'Module:URL' not found.<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-10">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong>Lua error in package.lua at line 80: module 'Module:URL' not found. <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-11">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong> |
| Alt name |
|---|
{{Official website|URL=www.example.com|name=Alt name}}
{{Official website}} Lua error in package.lua at line 80: module 'Module:URL' not found.<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-12">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong>Lua error in package.lua at line 80: module 'Module:URL' not found. <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-13">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong> |
| Alt name from positional parameter |
|---|
{{Official website|www.example.com|Alt name}}
{{Official website}} Lua error in package.lua at line 80: module 'Module:URL' not found.<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-14">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong>Lua error in package.lua at line 80: module 'Module:URL' not found. <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-15">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong> |
| Name contains template |
|---|
{{Official website|URL=http://www.sho.com/site/dexter/home.sho|name=''Dexter''{{'}}s official website}}
{{Official website}} Lua error in package.lua at line 80: module 'Module:URL' not found.<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-16">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong>Lua error in package.lua at line 80: module 'Module:URL' not found. <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-17">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong> |
| format=flash |
|---|
{{Official website|URL=www.example.com|format=flash}}
{{Official website}} Lua error in package.lua at line 80: module 'Module:URL' not found.<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-18">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong>Lua error in package.lua at line 80: module 'Module:URL' not found. <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-19">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong> |
| format=bar |
|---|
{{Official website|URL=www.example.com|format=bar}}
{{Official website}} Lua error in package.lua at line 80: module 'Module:URL' not found.<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-20">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong>Lua error in package.lua at line 80: module 'Module:URL' not found. <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-21">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong> |
| Mobile link with protocol |
|---|
{{Official website|URL=www.example.com|mobile=http://www.example.mobi}}
{{Official website}} Lua error in package.lua at line 80: module 'Module:URL' not found.<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-22">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong>Lua error in package.lua at line 80: module 'Module:URL' not found. <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-23">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong> |
| Mobile link without protocol |
|---|
{{Official website|URL=www.example.com|mobile=www.example.mobi}}
{{Official website}} Lua error in package.lua at line 80: module 'Module:URL' not found.<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-24">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong>Lua error in package.lua at line 80: module 'Module:URL' not found. <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-25">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong> |
| format=flash and mobile link |
|---|
{{Official website|https://www.example.com|format=flash|mobile=https://m.example.com}}
{{Official website}} Lua error in package.lua at line 80: module 'Module:URL' not found.<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-26">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong>Lua error in package.lua at line 80: module 'Module:URL' not found. <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-27">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong> |
| lang=jp |
|---|
|
| lang=en |
|---|
|
| format=flash, mobile link, lang=es |
|---|
|
Unknown parameters
(development March 2018)
- Tracking category: Category:Pages using Official website with unknown parameters (0)
| Unknown parameter: foo=bar |
|---|
{{Official website|URL=www.example.com|foo=bar}}
{{Official website}} Lua error in package.lua at line 80: module 'Module:URL' not found.<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-34">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong>Lua error in package.lua at line 80: module 'Module:URL' not found. <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-35">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong> |
| Unknown parameter: foo= |
|---|
{{Official website|URL=www.example.com|foo=}}
{{Official website}} Lua error in package.lua at line 80: module 'Module:URL' not found.<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-36">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong>Lua error in package.lua at line 80: module 'Module:URL' not found. <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-37">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong> |
| Unknown parameter: 3= |
|---|
{{Official website|www.example.com|Some name|}}
{{Official website}} Lua error in package.lua at line 80: module 'Module:URL' not found.<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-38">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong>Lua error in package.lua at line 80: module 'Module:URL' not found. <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-39">Lua error in package.lua at line 80: module 'Module:URL' not found.</span></strong> |