Jump to content

Template:CСС cроп/доc

From Ziyosfera

{{CСС cроп}} cреатес а cроп оф а грапҳиcс обжеcт (лике а лоcатион мап) wҳич cаннот бе cроппед wитҳ {{CСС имаге cроп}}. Тҳе сйнтах анд cоде аре деривативе оф {{CСС имаге cроп}}.

Фойдаланиш

{{CSS crop
|Content       = <!-- The unadorned graphics object (typically a location map with border=infobox)-->
|bSize         = <!-- The Base object width in pixels (the object we are cropping on)-->
|cWidth        = <!-- Cropped Width in pixels-->
|cHeight       = <!-- Cropped Height in pixels-->
|oTop          = <!-- Offset Top in pixels, optional and defaults to 0 when omitted-->
|oLeft         = <!-- Offset Left in pixels, optional and defaults to 0 when omitted-->
|Location      = <!-- 'right', 'left', 'center' or 'none'. Determines placement of the cropped object on the page
                 Defaults to 'right' when description is provided (as is default for thumb images)
                 When description is blank, location on left (as is default for non-thumbs)-->
|Description   = <!-- Description (will render out using thumbnail class)-->
|magnify-link  = <!-- The page to be linked by the magnify icon.-->
}}

Мисоллар

Қуйидаги кесилмаган жойлашув харитасини кўриб чиқинг

Малака халқаро аэропортидан парвозлар йўналишлари
  Йўловчи (шу жумладан мавсумий чартер)
  Юк
{{Location map many|Southeast Asia|width=800|float=center
|caption=Destinations of flights out of Malacca International Airport
{{legend|red|Passenger (including Seasonal Charter)}}
{{legend|green|Cargo}}
|coordinates1={{coord|2.154700|102.15090}}|mark1=BSicon FLUGg.svg|mark1size=10|label1_size=100 |label1='''MKZ'''|position1=left
|coordinates2={{coord|0.273900|101.2640}}|mark2size=6|label2_size=85 |label2='''[[Sultan Syarif Kasim II International Airport|PKU]]'''|position2=left
|coordinates3={{coord|5.174970|100.163671}}|mark3size=6|label3_size=85 |label3='''[[Penang International Airport|PEN]]'''|position3=left
}}

Усинг тҳе {{CSS crop}} темплате, wе cан cроп тҳис мап бй (1) аддинг |бордер=инфобох то тҳе лоcатион мап анд (2) пассинг то тҳе {{CSS crop}} темплате тҳроугҳ тҳе |Cонтент= параметер.

<див cласс="тҳумб

cентер">

Малака халқаро аэропортидан парвозлар йўналишлари
  Йўловчи (шу жумладан мавсумий чартер)
  Юк
{{CSS crop
|Location=center
|Description=Destinations of flights out of Malacca International Airport
{{legend|red|Passenger (including Seasonal Charter)}}
{{legend|green|Cargo}}
|bSize=800
|cWidth=350
|cHeight=300
|oLeft=40
|oTop=240
|Content=
{{Location map many|Southeast Asia|width=800|float=center|border=infobox
|caption=
|coordinates1={{coord|2.154700|102.15090}}|mark1=BSicon FLUGg.svg|mark1size=10|label1_size=100 |label1='''MKZ'''|position1=left
|coordinates2={{coord|0.273900|101.2640}}|mark2size=6|label2_size=85 |label2='''[[Sultan Syarif Kasim II International Airport|PKU]]'''|position2=left
|coordinates3={{coord|5.174970|100.163671}}|mark3size=6|label3_size=85 |label3='''[[Penang International Airport|PEN]]'''|position3=left
}}
}}

Яна қаранг