Template:Official website/testcases
Appearance
This is the template test cases page for the sandbox of Template:Official website. 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 and parsers with these links: |
URL fetched from Wikidata
{{Official website}}
{{Official website}}
No URL found. Please specify a URL here or add one to Wikidata.<strong class="error">No URL found. Please specify a URL here or add one to Wikidata.</strong>No URL found. Please specify a URL here or add one to Wikidata.
<strong class="error">No URL found. Please specify a URL here or add one to Wikidata.</strong>
URL with protocol
{{Official website|URL=http://www.example.com}}
{{Official website}}
Official website<span class="official-website"><span class="url">[http://www.example.com Official website]</span></span>Official website
<span class="official-website"><span class="url">[http://www.example.com Official website]</span></span>
URL without protocol
{{Official website|URL=www.example.com}}
{{Official website}}
Official website<span class="official-website"><span class="url">[http://www.example.com Official website]</span></span>Official website
<span class="official-website"><span class="url">[http://www.example.com Official website]</span></span>
URL from first positional parameter
{{Official website|http://www.example.com}}
{{Official website}}
Official website<span class="official-website"><span class="url">[http://www.example.com Official website]</span></span>Official website
<span class="official-website"><span class="url">[http://www.example.com Official website]</span></span>
HTTPS URL
{{Official website|URL=https://www.example.com}}
{{Official website}}
Official website<span class="official-website"><span class="url">[https://www.example.com Official website]</span></span>Official website
<span class="official-website"><span class="url">[https://www.example.com Official website]</span></span>
Alt name
{{Official website|URL=www.example.com |name=Alt name}}
{{Official website}}
Alt name<span class="official-website"><span class="url">[http://www.example.com Alt name]</span></span>Alt name
<span class="official-website"><span class="url">[http://www.example.com Alt name]</span></span>
Alt name from positional parameter
{{Official website|www.example.com|Alt name}}
{{Official website}}
Alt name<span class="official-website"><span class="url">[http://www.example.com Alt name]</span></span>Alt name
<span class="official-website"><span class="url">[http://www.example.com Alt name]</span></span>
Name contains template
{{Official website|URL=http://www.sho.com/site/dexter/home.sho|name=''Dexter''{{'}}s official website}}
{{Official website}}
Dexter's official website<span class="official-website"><span class="url">[http://www.sho.com/site/dexter/home.sho ''Dexter''<span class="nowrap" style="padding-left:0.1em;">'</span>s official website]</span></span>Dexter's official website
<span class="official-website"><span class="url">[http://www.sho.com/site/dexter/home.sho ''Dexter''<span class="nowrap" style="padding-left:0.1em;">'</span>s official website]</span></span>
lang=jp
{{Official website|http://www.daikin.co.jp/|lang=jp}}
→ Official website<span class="official-website"><span class="url">[http://www.daikin.co.jp/ Official website]</span></span>
{{Official website/sandbox|http://www.daikin.co.jp/|lang=jp}}
→ Official website<span class="official-website"><span class="url">[http://www.daikin.co.jp/ Official website]</span></span>
lang=en
{{Official website|http://www.daikin.com/|lang=en}}
→ Official website<span class="official-website"><span class="url">[http://www.daikin.com/ Official website]</span></span>
{{Official website/sandbox|http://www.daikin.com/|lang=en}}
→ Official website<span class="official-website"><span class="url">[http://www.daikin.com/ Official website]</span></span>
Unknown parameters
[edit](development March 2018)
- Tracking category: Category:Pages using Official website with unknown parameters (8)
Unknown parameter: foo=bar
{{Official website|URL=www.example.com |foo=bar}}
{{Official website}}
Official website<span class="official-website"><span class="url">[http://www.example.com Official website]</span></span>Official website
<span class="official-website"><span class="url">[http://www.example.com Official website]</span></span>
Unknown parameter: foo=
{{Official website|URL=www.example.com |foo=}}
{{Official website}}
Official website<span class="official-website"><span class="url">[http://www.example.com Official website]</span></span>Official website
<span class="official-website"><span class="url">[http://www.example.com Official website]</span></span>
Unknown parameter: 3=
{{Official website|www.example.com|Some name|}}
{{Official website}}
Some name<span class="official-website"><span class="url">[http://www.example.com Some name]</span></span>Some name
<span class="official-website"><span class="url">[http://www.example.com Some name]</span></span>