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

Jump to content

Template:Scarf/doc

From Wikipedia, the free encyclopedia

This template is used with {{Cell1}} for the purpose of creating a sequence of colors representing an academic scarf.

(It can also be used with the older templates {{Cell}}, {{Cell2}}, {{Cell3}} and {{Cells}} – but that usage affords less flexibility of design.)

Usage

[edit]

Full width scarf

{{scarf |{{Cell1| ''colour1''}} {{Cell1| ''colour2''}} {{Cell1| ''colour3''}} ...}}

Half width scarf

{{scarf |width=50% |{{Cell1 |''colour1''}} {{Cell1 |''colour2''}} {{Cell1 |''colour3''}} ...}}

Examples

[edit]

Simple scarf

[edit]
{{Scarf|
  {{Cell1 |red}} {{Cell1 |orange}} {{Cell1 |yellow}}
  {{Cell1 |green}} {{Cell1 |blue}} {{Cell1 |indigo}} {{Cell1 |violet}}
}}

Complex scarf specifying scarf width, stripe widths, and an accessible description

[edit]
{{Scarf
  | width = 75%
  | description = two halves of black and white, the white half divided in two by a narrow red stripe
  | {{Cell1 |width=50%   |black}}
    {{Cell1 |width=22.5% |white}}
    {{Cell1 |width=5%    |red}}
    {{Cell1 |width=22.5% |white}}
}}

Scarf colours: two halves of black and white, the white half divided in two by a narrow red stripe

Using begin/end to reduce post-expand include size

[edit]

Pages with many scarf templates that include nested cell templates can cause the page to exceed the post-expand include size because the cell templates get double counted. To mitigate this, single-sided scarfs can use the begin/end syntax, e.g.:

{{Scarf | begin
  | width = 75%
  | description = two halves of black and white, the white half divided in two by a narrow red stripe}}
    {{Cell1 |width=50%   |black}}
    {{Cell1 |width=22.5% |white}}
    {{Cell1 |width=5%    |red}}
    {{Cell1 |width=22.5% |white}}
{{Scarf | end}}

Scarf colours: two halves of black and white, the white half divided in two by a narrow red stripe

A scarf with different colours on either side

[edit]

N.B. the pattern must be the same on either side, only the colours can differ.

{{Scarf
  | width = 75%
  | description = blue with a narrow central white stripe on one face of the scarf, the colours reversed on the opposite face
  | {{Cell1 |width=47.5  |blue}}
    {{Cell1 |width=5%    |white}}
    {{Cell1 |width=47.5% |blue}}
  | {{Cell1              |white}}
    {{Cell1              |blue}}
    {{Cell1              |white}}
}}

Scarf colours: blue with a narrow central white stripe on one face of the scarf, the colours reversed on the opposite face

Infobox

[edit]
Scarf/doc
AffiliationsCMYK color model
Colours
{{Infobox university
|affiliations=[[CMYK color model]]
|colours={{Scarf|{{Cell|cyan}}{{Cell1|magenta}}{{Cell2|yellow}}{{Cell3|black}}}}
}}

Subpage databases for specific institutions

[edit]

See also

[edit]