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.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a21f4480f850984a

Jump to content

Module talk:Political party/testcases

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia

3 of 14 live tests failed. 3 of 14 sandbox tests failed. (refresh)

test_01_bad_values

test_01_bad_values
TestLiveSandboxExpected
checkYcheckY {{#invoke:Political party|fetch|Aaaaaaaaaaa|color}} #F8F9FA #F8F9FA #F8F9FA
checkYcheckY {{#invoke:Political party|fetch|Aaaaaaaaaaa|shortname}} Aaaaaaaaaaa Aaaaaaaaaaa Aaaaaaaaaaa
checkYcheckY {{#invoke:Political party|fetch|aontú|color}} #F8F9FA #F8F9FA #F8F9FA

test_02_fallback_values

test_02_fallback_values
TestLiveSandboxExpected
checkYcheckY {{#invoke:Political party|fetch|A test no values|color}} <strong class="error">Value not in template. Please request that it be added.</strong> <strong class="error">Value not in template. Please request that it be added.</strong> <strong class="error">Value not in template. Please request that it be added.</strong>
X markNX markN {{#invoke:Political party|fetch|Unitary Socialist Party (Italy, 1922)|shortname}} PSU PSU Unitary Socialist Party
X markNX markN {{#invoke:Political party|fetch|[[Unitary Socialist Party (Italy, 1922)]]|shortname}} PSU PSU Unitary Socialist Party
X markNX markN {{#invoke:Political party|fetch|[[Unitary Socialist Party (Italy, 1922)|Unitary Socialist Party Italy, 1922]]|shortname}} PSU PSU Unitary Socialist Party
checkYcheckY {{#invoke:Political party|fetch|Actual Equality|shortname}} Actual Equality Actual Equality Actual Equality
checkYcheckY {{#invoke:Political party|fetch|Actual Equality|abbrev}} Actual Equality Actual Equality Actual Equality

test_03_invalid_types

test_03_invalid_types
TestLiveSandboxExpected
checkYcheckY {{#invoke:Political party|fetch|}} <strong class="error">parameter 1 should be a party name.</strong> <strong class="error">parameter 1 should be a party name.</strong> <strong class="error">parameter 1 should be a party name.</strong>
checkYcheckY {{#invoke:Political party|fetch||color}} <strong class="error">parameter 1 should be a party name.</strong> <strong class="error">parameter 1 should be a party name.</strong> <strong class="error">parameter 1 should be a party name.</strong>
checkYcheckY {{#invoke:Political party|fetch||shortname}} <strong class="error">parameter 1 should be a party name.</strong> <strong class="error">parameter 1 should be a party name.</strong> <strong class="error">parameter 1 should be a party name.</strong>
checkYcheckY {{#invoke:Political party|fetch||abbrev}} <strong class="error">parameter 1 should be a party name.</strong> <strong class="error">parameter 1 should be a party name.</strong> <strong class="error">parameter 1 should be a party name.</strong>
checkYcheckY {{#invoke:Political party|fetch|Business and Professional Group}} <strong class="error">parameter 2 should be the output type.</strong> <strong class="error">parameter 2 should be the output type.</strong> <strong class="error">parameter 2 should be the output type.</strong>