Template:CSS crop/doc

From English Wikipedia @ Freddythechick

{{CSS crop}} creates a crop of a graphics object (like a location map) which cannot be cropped with {{CSS image crop}}. The syntax and code are derivative of {{CSS image crop}}.

Usage

<syntaxhighlight lang="wikitext"> </syntaxhighlight>

Examples

Consider the following uncropped location map

Destinations of flights out of Malacca International Airport
  Passenger (including Seasonal Charter)
  Cargo

<syntaxhighlight lang="wikitext">

Destinations of flights out of Malacca International Airport
  Passenger (including Seasonal Charter)
  Cargo

</syntaxhighlight>

Using the {{CSS crop}} template, we can crop this map by (1) adding |border=infobox to the location map and (2) passing to the {{CSS crop}} template through the |Content= parameter.

Destinations of flights out of Malacca International Airport
  Passenger (including Seasonal Charter)
  Cargo

<syntaxhighlight lang="wikitext">

Destinations of flights out of Malacca International Airport
  Passenger (including Seasonal Charter)
  Cargo

</syntaxhighlight>

See also