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

Jump to content

Template:Demo inline/doc

From Wikipedia, the free encyclopedia

An inline version of {{demo}}.

Usage

[edit]

Used to include examples of template use in documentation pages.

Like {{demo}}, this template takes an unnamed argument in <nowiki> tags, and displays it unprocessed (as code), then as processed wikitext.

Unlike {{demo}}, this template presents the processed output on the same line as the unprocessed input, separated by an arrow. This is useful for compactly demonstrating a series of different behaviors of the same template.

Example

[edit]

The code

{{demo inline|<nowiki>{{cite Merriam-Webster|obsequious}}</nowiki>}}

produces the template example:

{{cite Merriam-Webster|obsequious}}"obsequious". Merriam-Webster.com Dictionary. Merriam-Webster. OCLC 1032680871.

Reverse order

[edit]
{{demo inline|reverse=1|<nowiki>{{cite Merriam-Webster|obsequious}}</nowiki>}}

produces the template example:

"obsequious". Merriam-Webster.com Dictionary. Merriam-Webster. OCLC 1032680871.{{cite Merriam-Webster|obsequious}}

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Demo inline in articles based on its TemplateData.

TemplateData for Demo inline

An inline version of {{demo}}.

Template parameters

ParameterDescriptionTypeStatus
Content1

must be wrapped in <nowiki>

Contentrequired
Reverse orderreverse

Show the code snippet and the result in reverse order.

Default
0
Auto value
1
Booleanoptional
Separatorsep

Text between the code and output. Defaults to "→", or "←" in reverse order.

Example
produces:
Stringoptional

See also

[edit]