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 talk:Divhide

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 7 years ago by DePiep in topic add option show=preview

Compatibility?

[edit]

After testing the Template page in IE (edit: to make sure it wasn't the template), I found that the "[show]/[hide]" links do not appear in Firefox 3.0.3. -Chrishy 06:31, 4 November 2008 (UTC)Reply

Caps in closing param

[edit]

I closed with {{Divhide|End}} and here's the result, rest of the talk page was hidden in a nested divhide. Changing caps to {{Divhide|end}} worked as expected; should this be fixed or should we just include a note about it in the documentation? Sam Sailor Talk! 10:41, 27 June 2016 (UTC)Reply

fixed. Frietjes (talk) 19:32, 9 February 2018 (UTC)Reply

Refactor

[edit]

I refactored this to use {{hidden begin}} and {{hidden end}}, which reduces the number of variations that need to be supported on mobile. let me know if there is a problem. Frietjes (talk) 19:32, 9 February 2018 (UTC)Reply

add option show=preview

[edit]

I propose to add option |show=preview. The effect is that the box is regularly hidden (collapsed) on the page, but in Preview the box shows (uncollapsed).

I met the need for this when editing/previewing Wikipedia:Selected anniversaries/March 1, which at the moment collapses (hides) the edit I'm checking.

Code is in {{divhide/sandbox}}, see /testcases (so test the edit/preview situation). -DePiep (talk) 16:10, 15 February 2019 (UTC)Reply