Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:Navsource/testcases

From Wikipedia, the free encyclopedia

Testing sandbox version

[edit]

Does it work with the usual variety of ship-name forms?

Does it work with missing or empty {{{2}}}?

  • Photo gallery of Navsource/testcases at NavSource Naval History no nationality or prefix;
  • Photo gallery of Navsource/testcases at NavSource Naval History no nationality or prefix;

Does it work with existing work-around code?

  • Photo gallery of USS Houston (CA-30) at NavSource Naval History no nationality or prefix;

This works because it, in effect, mimics the operation of the old {{navsource}}. The {{noitalic}} work-around causes the tests in the new version for fail so the positional parameter {{{2}}} is treated like it doesn't have a proper ship prefix.

{{noitalic|USS}} Houston {{noitalic|(CA-30)}}{{#parsoidfragment:8}}<span class="noitalic">USS</span> Houston {{#parsoidfragment:9}}<span class="noitalic">(CA-30)</span>

Compare old and new with {{noitalic}} work-around:

[http://www.navsource.net/archives/04/081/04081.htm Photo gallery] of {{#parsoidfragment:11}}<span class="noitalic">USS</span> Houston {{#parsoidfragment:12}}<span class="noitalic">(CA-30)</span> at NavSource Naval History<span style="font-size:100%; font-weight:normal" class="error"> no nationality or prefix;</span>
[http://www.navsource.net/archives/04/081/04081.htm Photo gallery] of {{#parsoidfragment:14}}<span class="noitalic">USS</span> Houston {{#parsoidfragment:15}}<span class="noitalic">(CA-30)</span> at NavSource Naval History<span style="font-size:100%; font-weight:normal" class="error"> no nationality or prefix;</span>

Does it work with this variety of work around?

  • Photo gallery of USS 'Nashua' (YTB-774) at NavSource Naval History

Sort of. Still readable and doesn't display an untoward amound of markup.

[http://www.navsource.net/archives/14/09774.htm Photo gallery] of USS ''''Nashua'''' (YTB-774) at NavSource Naval History

Testing main template

[edit]

Does it work with the usual variety of ship-name forms?

Does it work with missing or empty {{{2}}}?

  • Photo gallery of Navsource/testcases at NavSource Naval History no nationality or prefix;
  • Photo gallery of Navsource/testcases at NavSource Naval History no nationality or prefix;

Does it work with existing work-around code?

  • Photo gallery of USS Houston (CA-30) at NavSource Naval History no nationality or prefix;