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

Module talk:Infobox sort/testcases

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

All 3 tests passed.

test_asc

test_asc
TestExpectedActual
checkY {{#invoke:Infobox sort | asc | 8% Foo | 3% Bar | 4% Carrot}} 3% Bar
4% Carrot
8% Foo
3% Bar
4% Carrot
8% Foo

test_desc

test_desc
TestExpectedActual
checkY {{#invoke:Infobox sort | desc | 2% Foo | 3% Bar | 8% Carrot}} 8% Carrot
3% Bar
2% Foo
8% Carrot
3% Bar
2% Foo

test_desc_missing_param

test_desc_missing_param
TestExpectedActual
checkY {{#invoke:Infobox sort | desc | {{#if: | 2% Foo}} | 3% Bar | 8% Carrot}} 8% Carrot
3% Bar
8% Carrot
3% Bar