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

Jump to content

Template:Calculator-hideifzero/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

Allows showing or hiding page elements based on Calculator formula. This requires the Calculator gadget to work.

Example

[edit]
{{calculator-hideifzero|formula=showtext|Some text that might be hidden if the checkbox is unchecked}}

{{calculator|type=checkbox|id=showtext|default=1}} {{calculator label|Show text|for=showtext}} 

Creates:

Some text that might be hidden if the checkbox is unchecked 1 Show text

Template data

[edit]

Allow showing or hiding a page element based on a calculator formula

Template parameters

ParameterDescriptionTypeStatus
formulaformula

Calculator formula to decide whether or not to show

Stringrequired
texttext 1

Wikitext to show or hide

Contentrequired
blockblock

Whether to be a block (div) element or an inline (span) element

Booleanoptional
elementelement

Name of element to use (overrides block). For example, if you want to hide a list item, you would set this to li

Default
span
Example
li
Stringoptional
classclass

Additional css classes

Stringoptional
starthiddenstarthidden

Have the text start off being not shown

Booleanoptional
stylestyle

Additional CSS to add

Stringoptional
class-liveclass-live

Additional css classes to add only once gadget is active

Stringoptional