Pengguna:RianHS/Alat 2: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
←Membuat halaman berisi '__NOTOC__ __HIDDENCAT__ == Templat navigasi == <div style="height: 500px; width: 100%; overflow: auto; padding: 3px;text-align: left; border:1px solid black;" title="...' |
per BPA : sintaks <br> dan <code> | t=1'129 su=134 in=206 at=141 -- only 309 edits left of totally 444 possible edits | edr=010-1011(!!!) ovr=010-1111 aft=010-1011 |
||
(Satu revisi perantara oleh satu pengguna lainnya tidak ditampilkan) | |||
Baris 1:
__NOTOC__ __HIDDENCAT__
== Suntingan anonim terbaru ==
<div style="height: 400px; width: 100%; overflow: auto; padding: 3px;text-align: left; border:1px solid black;" title="braglist - zum scrollen"; >
{{Special:Recentchanges/500,hideliu,hidepatrolled}}
</div>
== Suntingan terbaru ==
<div style="height: 400px; width: 100%; overflow: auto; padding: 3px;text-align: left; border:1px solid black;" title="braglist - zum scrollen"; >
{{Istimewa:Perubahan terbaru}}
</div>
== Halaman baru ==
<div style="height: 400px; width: 100%; overflow: auto; padding: 3px;text-align: left; border:1px solid black;" title="braglist - zum scrollen"; >
{{Istimewa:Halaman baru}}
</div>
{{br}}
== Templat navigasi ==
Baris 9 ⟶ 24:
<pre style="overflow:scroll;">{{Navbox
|name = {{subst:PAGENAME}}
|title =
|image =
|above =
|group1 =
|list1 =
|group2 =
|list2 =
...
|group20 =
|list20 =
|below =
}}</pre>
Baris 88 ⟶ 103:
: Often times, editors will want a default initial state for a navbox, which may be overridden in an article. Here is the trick to do this:
:*In your intermediate template, create a parameter also named "state" as a pass-through like this:
:*<
:*The <nowiki><includeonly>|</nowiki> will make the template expanded when viewing the template page by itself.
Baris 200 ⟶ 215:
Since ''liststyle'' and ''oddstyle'' are transparent odd lists have the color of the ''bodystyle'', which defaults to #fdfdfd (white with a hint of gray). A list has <code>text-align:left;</code> if it has a group, if not it has <code>text-align:center;</code>. Since only ''bodystyle'' has a vertical-align all the others inherit its <code>vertical-align:middle;</code>.
===Advanced parameters===
Baris 227 ⟶ 241:
|list4 = {{{list4}}}
}}
Table generated by {{tl|Navbox}} '''with''' ''image'', ''above'' and ''below'' parameters (gray list background color added for illustration only):
Baris 246 ⟶ 259:
|below = {{{below}}}
}}
Table generated by {{tl|Navbox}} '''with''' ''image'', ''imageleft'', ''lists'', and '''without''' ''groups'', ''above'', ''below'' (gray list background color added for illustration only):
Baris 278 ⟶ 290:
|group3 = Major landmarks
|list3 = [[Petronas Twin Towers]]{{·}} [[Kuala Lumpur Tower]]{{·}} [[Kuala Lumpur Sentral]]{{·}} [[Technology Park Malaysia]]{{·}} [[Putrajaya]]{{·}} [[Cyberjaya]]{{·}}
[[Kuala Lumpur International Airport]]
Baris 285 ⟶ 297:
|group5 = Prime applications
|list5 = [[EGovernment]]{{·}} [[MyKad]]
}}
</pre>
Baris 302 ⟶ 314:
|list4 = [[Express Rail Link]]{{·}} [[KL-KLIA Dedicated Expressway]]
|group5 = Prime applications
|list5 = [[EGovernment]]{{·}} [[MyKad]]
}}
=== With image, without groups ===
Baris 322 ⟶ 333:
|list1 = [[Petronas Twin Towers]]{{·}} [[Kuala Lumpur Tower]]{{·}} [[Kuala Lumpur Sentral]]{{·}} [[Technology Park Malaysia]]{{·}} [[Putrajaya]]{{·}} [[Cyberjaya]]{{·}} [[Kuala Lumpur International Airport]]
}}
=== With two images, without groups, multiple lists ===
Baris 349 ⟶ 359:
|list4 = [[Klang Valley]]
}}
=== With image, groups, above, below ===
Baris 397 ⟶ 406:
|below = Website: [http://www.msc.com.my/ www.msc.com.my]
}}
==Child navboxes==
Baris 430 ⟶ 438:
|list1 = List1
|group2 = Group2
|list2 =
{{Navbox|child
|evenodd = swap
Baris 445 ⟶ 453:
|group4 = Group4
|list4 =
{{Navbox|child
|evenodd = swap
Baris 491 ⟶ 499:
|list2 = {{Navbox|child
|name = Former French colonies in the Americas
|titlestyle =
|title = [[French colonial empires|Former French colonies]] in the [[Americas]]
|groupstyle =
|list1 = [[New France]]{{spaces|2}}<small>([[Acadia]] • [[Louisiana (New France)|Louisiana]] • [[Canada, New France|Canada]] • [[Newfoundland (island)|Terre Neuve]]) 1655 – 1763 </small>
|list2 = [[Inini]]{{·}} [[Berbice]]{{·}} [[Saint-Domingue]] <small>([[Haiti]])</small>{{·}} [[Tobago]]{{·}} [[History of the British Virgin Islands|Virgin Islands]]{{·}} {{nowrap|[[France Antarctique]]}}{{·}} {{nowrap|[[France Équinoxiale]]}}
|belowstyle =
|below = [[French West India Company]]
}}
Baris 505 ⟶ 513:
|name = Former French colonies in Asia and Oceania
|title = [[French colonial empires|Former French colonies]] in [[Asia]] and [[Oceania]]
|groupstyle =
|group1 = [[French India]]
Baris 519 ⟶ 527:
|list4 = [[New Hebrides|New Hebrides]] [[History of Vanuatu|(Vanuatu)]]
|belowstyle =
|below = [[French East India Company]]
}}
Baris 533 ⟶ 541:
*This template uses CSS classes for most of its looks, thus it is fully skinnable.
*Internally this meta template uses HTML markup instead of wiki markup for the table code. That is the usual way we make meta templates since wiki markup has several drawbacks. For instance it makes it harder to use [[m:Help:ParserFunctions|parser functions]] and special characters in parameters.
*For more technical details see the [[{{TALKPAGENAME}}|talk page]], the CSS classes in [[MediaWiki:common.css]] and the collapsible table used to hide the box in [[MediaWiki:common.js]].
Baris 566 ⟶ 574:
{{Navbox with columns
|name = {{subst:PAGENAME}}
|title =
|colwidth = <!--(to set a default width for each column,
preferably in a proportional unit such as 'em'*)-->
|col1 =
|col2 =
}}
</pre>
Baris 625 ⟶ 633:
:;''imageleftstyle''<sup>†</sup>
::CSS style/s to apply to the ''imageleft'' parameter
:;''colstyle''
Baris 745 ⟶ 753:
|below = '''Potential future members'''{{spaces|6}}{{TLS}}{{spaces|3}}{{RUS}}
}}
===Example with percentage widths===
Baris 770 ⟶ 777:
| col3 = [[Polystyrene]] (PS)<br /> [[Polyester]]<br /> [[Acrylonitrile butadiene styrene]] (ABS)<br /> [[Acrylic glass|Polymethyl methacrylate]] (PMMA)<br /> [[Polyoxymethylene]] (POM)
}}
===Example with col<sub>n</sub>header and col<sub>n</sub>footer===
Baris 798 ⟶ 804:
}}
===Example with col<sub>n</sub>header using col<sub>n</sub>headercolspan===
Baris 825 ⟶ 830:
|col7 = col7
}}
===Example to illustrate most fields===
Baris 1.022 ⟶ 1.026:
<pre>
{{Navbox subgroup
| groupstyle =
| liststyle =
| group1 =
| list1 =
| group2 =
| list2 =
...
| group20 =
| list20 =
}}
</pre>
Baris 1.075 ⟶ 1.079:
:; ''evenodd'' <span style="font-weight:normal;"><code>[swap, even, odd, off]</code></span>
:: If set to <code>swap</code>, then the automatic striping of even and odd rows is reversed. Normally, even rows get a light gray background for striping; when this parameter is used, the odd rows receive the gray striping instead of the even rows. Setting to <code>even</code> or <code>odd</code> sets all rows to have that striping color. Setting to <code>off</code> disables automatic row striping. NOTE: Due to system limitations, do '''not''' use a semi-colon to close this command.
==Setting the width of groups==
Baris 1.113 ⟶ 1.117:
| title = Protected Areas of Colorado
| group1 = National Park Service
| list1 =
{{Navbox subgroup
|group1 = National Parks
Baris 1.139 ⟶ 1.143:
| list1 = [[Maximinus Thrax]]{{·}} [[Gordian I]]{{·}} [[Gordian II]]{{·}} [[Pupienus]] and [[Balbinus]]{{·}} [[Gordian III]]{{·}} [[Philip the Arab]]{{·}} [[Decius]]{{·}} [[Trebonianus Gallus]]{{·}} [[Aemilianus]]{{·}} [[Valerian (emperor)|Valerian]]{{·}} [[Gallienus]]{{·}} [[Claudius II]]{{·}} [[Quintillus]]{{·}} [[Aurelian]]{{·}} [[Marcus Claudius Tacitus]]{{·}} [[Florianus]]{{·}} [[Probus]]{{·}} [[Carus]]{{·}} [[Numerian]]{{·}} [[Carinus]]
| group2 = Dominate
| list2 =
{{Navbox subgroup
|list1style = background:#ddf;
Baris 1.157 ⟶ 1.161:
| list1 = [[Maximinus Thrax]]{{·}} [[Gordian I]]{{·}} [[Gordian II]]{{·}} [[Pupienus]] and [[Balbinus]]{{·}} [[Gordian III]]{{·}} [[Philip the Arab]]{{·}} [[Decius]]{{·}} [[Trebonianus Gallus]]{{·}} [[Aemilianus]]{{·}} [[Valerian (emperor)|Valerian]]{{·}} [[Gallienus]]{{·}} [[Claudius II]]{{·}} [[Quintillus]]{{·}} [[Aurelian]]{{·}} [[Marcus Claudius Tacitus]]{{·}} [[Florianus]]{{·}} [[Probus]]{{·}} [[Carus]]{{·}} [[Numerian]]{{·}} [[Carinus]]
| group2 = Dominate
| list2 =
{{Navbox subgroup
|list1style = background:#ddf;
Baris 1.646 ⟶ 1.650:
|Yellow ||FF FF 00||255 255 0
|- style="background:lightyellow; color:black;"
|LightYellow ||FF FF E0||255 255 224
|- style="background:lemonchiffon; color:black;"
|LemonChiffon ||FF FA CD||255 250 205
|- style="background:lightgoldenrodyellow; color:black;"
|LightGoldenrodYellow||FA FA D2||250 250 210
|- style="background:papayawhip; color:black;"
|PapayaWhip ||FF EF D5||255 239 213
|- style="background:moccasin; color:black;"
|Moccasin ||FF E4 B5||255 228 181
|- style="background:peachpuff; color:black;"
|PeachPuff ||FF DA B9||255 218 185
|- style="background:palegoldenrod; color:black;"
|PaleGoldenrod ||EE E8 AA||238 232 170
|- style="background:khaki; color:black;"
|Khaki ||F0 E6 8C||240 230 140
|- style="background:darkkhaki; color:white;"
|DarkKhaki ||BD B7 6B||189 183 107
|-
|colspan=3; style="background:whitesmoke; color:slategray; text-align:left;"|<big>'''Warna dasar Ungu'''</big>
|- style="background:lavender; color:black;"
|Lavender ||E6 E6 FA||230 230 250
|- style="background:thistle; color:white;"
|Thistle ||D8 BF D8||216 191 216
|- style="background:plum; color:white;"
|Plum ||DD A0 DD||221 160 221
|- style="background:violet; color:white;"
|Violet ||EE 82 EE||238 130 238
|- style="background:orchid; color:white;"
|Orchid ||DA 70 D6||218 112 214
|- style="background:fuchsia; color:white;"
|Fuchsia ||FF 00 FF||255 0 255
|- style="background:magenta; color:white;"
|Magenta||FF 00 FF||255 0 255
|- style="background:mediumorchid; color:white;"
|MediumOrchid ||BA 55 D3||186 85 211
|- style="background:mediumpurple; color:white;"
|MediumPurple ||93 70 DB||147 112 219
|- style="background:blueviolet; color:white;"
|BlueViolet ||8A 2B E2||138 43 226
|- style="background:darkviolet; color:white;"
|DarkViolet ||94 00 D3||148 0 211
|- style="background:darkorchid; color:white;"
|DarkOrchid ||99 32 CC||153 50 204
|- style="background:darkmagenta; color:white;"
|DarkMagenta ||8B 00 8B||139 0 139
|- style="background:purple; color:white;"
|Purple ||80 00 80||128 0 128
|- style="background:indigo; color:white;"
|Indigo ||4B 00 82|| 75 0 130
|- style="background:slateblue; color:white;"
|SlateBlue ||6A 5A CD||106 90 205
Baris 1.702 ⟶ 1.706:
|colspan=3; style="background:whitesmoke; color:slategray; text-align:left;"|<big>'''Warna dasar Hijau'''</big>
|- style="background:greenyellow; color:black;"
|GreenYellow ||AD FF 2F||173 255 47
|- style="background:chartreuse; color:black;"
|Chartreuse ||7F FF 00||127 255 0
|- style="background:lawngreen; color:black;"
|LawnGreen ||7C FC 00||124 252 0
|- style="background:lime; color:black;"
|Lime ||00 FF 00|| 0 255 0
|- style="background:limegreen; color:black;"
|LimeGreen ||32 CD 32|| 50 205 50
|- style="background:palegreen; color:black;"
|PaleGreen ||98 FB 98||152 251 152
|- style="background:lightgreen; color:black;"
|LightGreen ||90 EE 90||144 238 144
|- style="background:mediumspringgreen; color:black;"
|MediumSpringGreen||00 FA 9A|| 0 250 154
|- style="background:springgreen; color:black;"
|SpringGreen ||00 FF 7F|| 0 255 127
|- style="background:mediumseagreen; color:white;"
|MediumSeaGreen ||3C B3 71|| 60 179 113
|- style="background:seagreen; color:white;"
|SeaGreen ||2E 8B 57|| 46 139 87
|- style="background:forestgreen; color:white;"
|ForestGreen ||22 8B 22|| 34 139 34
|- style="background:green; color:white;"
|Green ||00 80 00|| 0 128 0
|- style="background:darkgreen; color:white;"
|DarkGreen ||00 64 00|| 0 100 0
|- style="background:yellowgreen; color:white;"
|YellowGreen ||9A CD 32||154 205 50
|- style="background:olivedrab; color:white;"
|OliveDrab ||6B 8E 23||107 142 35
|- style="background:olive; color:white;"
|Olive ||80 80 00||128 128 0
|- style="background:darkolivegreen; color:white;"
|DarkOliveGreen ||55 6B 2F|| 85 107 47
|- style="background:mediumaquamarine; color:black;"
|MediumAquamarine||66 CD AA||102 205 170
|- style="background:darkseagreen; color:white;"
|DarkSeaGreen ||8F BC 8F||143 188 143
|- style="background:lightseagreen; color:white;"
|LightSeaGreen ||20 B2 AA|| 32 178 170
|- style="background:darkcyan; color:white;"
|DarkCyan ||00 8B 8B|| 0 139 139
|- style="background:teal; color:white;"
|Teal ||00 80 80|| 0 128 128
|-
|}
Baris 1.761 ⟶ 1.765:
|Cyan ||00 FF FF|| 0 255 255
|- style="background:lightcyan; color:black;"
|LightCyan ||E0 FF FF||224 255 255
|- style="background:paleturquoise; color:black;"
|PaleTurquoise ||AF EE EE||175 238 238
|- style="background:aquamarine; color:black;"
|Aquamarine ||7F FF D4||127 255 212
|- style="background:turquoise; color:black;"
|Turquoise ||40 E0 D0|| 64 224 208
|- style="background:mediumturquoise; color:white;"
|MediumTurquoise ||48 D1 CC|| 72 209 204
|- style="background:darkturquoise; color:white;"
|DarkTurquoise||00 CE D1|| 0 206 209
|- style="background:cadetblue; color:white;"
|CadetBlue ||5F 9E A0|| 95 158 160
|- style="background:steelblue; color:white;"
|SteelBlue ||46 82 B4|| 70 130 180
|- style="background:lightsteelblue; color:black;"
|LightSteelBlue ||B0 C4 DE||176 196 222
|- style="background:powderblue; color:black;"
|PowderBlue ||B0 E0 E6||176 224 230
|- style="background:lightblue; color:black;"
|LightBlue ||AD D8 E6||173 216 230
|- style="background:skyblue; color:black;"
|SkyBlue ||87 CE EB||135 206 235
|- style="background:lightskyblue; color:black;"
|LightSkyBlue||87 CE FA||135 206 250
|- style="background:deepskyblue; color:white;"
|DeepSkyBlue ||00 BF FF|| 0 191 255
|- style="background:dodgerblue; color:white;"
|DodgerBlue ||1E 90 FF|| 30 144 255
Baris 1.793 ⟶ 1.797:
|CornflowerBlue||64 95 ED||100 149 237
|- style="background:mediumslateblue; color:white;"
|MediumSlateBlue||7B 68 EE||123 104 238
|- style="background:royalblue; color:white;"
|RoyalBlue ||41 69 E1|| 65 105 225
|- style="background:blue; color:white;"
|Blue ||00 00 FF|| 0 0 255
|- style="background:mediumblue; color:white;"
|MediumBlue ||00 00 CD|| 0 0 205
|- style="background:darkblue; color:white;"
|DarkBlue ||00 00 8B|| 0 0 139
|- style="background:navy; color:white;"
|Navy ||00 00 80|| 0 0 128
|- style="background:midnightblue; color:white;"
|MidnightBlue ||19 19 70|| 25 25 112
|-
|colspan=3; style="background:whitesmoke; color:slategray; text-align:left;"|<big>'''Warna dasar Coklat'''</big>
|- style="background:cornsilk; color:black;"
|Cornsilk ||FF F8 DC||255 248 220
|- style="background:blanchedalmond; color:black;"
|BlanchedAlmond ||FF EB CD||255 235 205
|- style="background:bisque; color:black;"
|Bisque ||FF E4 C4||255 228 196
|- style="background:navajowhite; color:black;"
|NavajoWhite ||FF DE AD||255 222 173
|- style="background:wheat; color:black;"
|Wheat ||F5 DE B3||245 222 179
|- style="background:burlywood; color:white;"
|BurlyWood ||DE B8 87||222 184 135
|- style="background:tan; color:white;"
|Tan ||D2 B4 8C||210 180 140
|- style="background:rosybrown; color:white;"
|RosyBrown ||BC 8F 8F||188 143 143
|- style="background:sandybrown; color:white;"
|SandyBrown ||F4 A4 60||244 164 96
|- style="background:goldenrod; color:white;"
|Goldenrod ||DA A5 20||218 165 32
|- style="background:darkgoldenrod; color:white;"
|DarkGoldenrod ||B8 86 0B||184 134 11
|- style="background:peru; color:white;"
|Peru ||CD 85 3F||205 133 63
|- style="background:chocolate; color:white;"
|Chocolate ||D2 69 1E||210 105 30
|- style="background:saddlebrown; color:white;"
|SaddleBrown ||8B 45 13||139 69 19
|- style="background:sienna; color:white;"
|Sienna ||A0 52 2D||160 82 45
|- style="background:brown; color:white;"
|Brown ||A5 2A 2A||165 42 42
|- style="background:maroon; color:white;"
|Maroon ||80 00 00||128 0 0
Baris 1.845 ⟶ 1.849:
|colspan=3; style="background:whitesmoke; color:slategray; text-align:left;"|<big>'''Warna dasar Putih'''</big>
|- style="background:white; color:black;"
|White ||FF FF FF||255 255 255
|- style="background:snow; color:black;"
|Snow ||FF FA FA||255 250 250
|- style="background:honeydew; color:black;"
|Honeydew ||F0 FF F0||240 255 240
|- style="background:mintcream; color:black;"
|MintCream ||F5 FF FA||245 255 250
|- style="background:azure; color:black;"
|Azure ||F0 FF FF||240 255 255
|- style="background:aliceblue; color:black;"
|AliceBlue ||F0 F8 FF||240 248 255
|- style="background:ghostwhite; color:black;"
|GhostWhite ||F8 F8 FF||248 248 255
|- style="background:whitesmoke; color:black;"
|WhiteSmoke ||F5 F5 F5||245 245 245
|- style="background:seashell; color:black;"
|Seashell ||FF F5 EE||255 245 238
|- style="background:beige; color:black;"
|Beige ||F5 F5 DC||245 245 220
|- style="background:oldlace; color:black;"
|OldLace ||FD F5 E6||253 245 230
|- style="background:floralwhite; color:black;"
|FloralWhite ||FF FA F0||255 250 240
|- style="background:ivory; color:black;"
|Ivory ||FF FF F0||255 255 240
|- style="background:antiquewhite; color:black;"
|AntiqueWhite ||FA EB D7||250 235 215
|- style="background:linen; color:black;"
|Linen ||FA F0 E6||250 240 230
|- style="background:lavenderblush; color:black;"
|LavenderBlush ||FF F0 F5||255 240 245
|- style="background:mistyrose; color:black;"
|MistyRose ||FF E4 E1||255 228 225
|-
|colspan=3; style="background:whitesmoke; color:slategray; text-align:left;"|<big>'''Warna dasar Abu-abu'''</big>
|- style="background:gainsboro; color:black;"
|Gainsboro ||DC DC DC||220 220 220
|- style="background:lightgrey; color:black;"
|LightGrey ||D3 D3 D3||211 211 211
|- style="background:silver; color:black;"
|Silver ||C0 C0 C0||192 192 192
|- style="background:darkgray; color:black;"
|DarkGray ||A9 A9 A9||169 169 169
|- style="background:gray; color:white;"
|Gray ||80 80 80||128 128 128
|- style="background:dimgray; color:white;"
|DimGray ||69 69 69||105 105 105
|- style="background:lightslategray; color:white;"
|LightSlateGray ||77 88 99||119 136 153
|- style="background:slategray; color:white;"
|SlateGray ||70 80 90||112 128 144
|- style="background:darkslategray; color:white;"
|DarkSlateGray ||2F 4F 4F|| 47 79 79
|- style="background:black; color:white;"
|Black ||00 00 00|| 0 0 0
|}
|-
|