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: a246920aad9199fe

Jump to content

Template talk:Sticky decoration wrapper

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 1 year ago by DMacks

What is the documentation purpose of this example?

  • {{stickwrap|This is a test sentence|style=color: #d25251|class=center}} gives the following with the "center" class:
    This is a test sentence

The output is regular color not reddish. So if it's to illustrate use of hex-RGB instead of name for color, it doesn't work. If it's to illustrate that the second parameter is just the style spec itself rather than "style=" but that the third parameter can include "class=", that should be stated explicitly. And unless the point is to illustrate something about hex-RGB, then color-name should be used instead to make it clearer what should be happening without having to know this more technical concept. DMacks (talk) 15:56, 6 May 2025 (UTC)Reply

That actually used to show color but I broke it while shuffling some parameters. Should work now. (Also, the order in which you specify named parameters usually doesn't matter unless you're duplicating a parameter.) Aaron Liu (talk) 16:13, 6 May 2025 (UTC)Reply
Thanks for the fix! My doc-change was to put the parameters in order of their unnamed positions. DMacks (talk) 03:34, 7 May 2025 (UTC)Reply