ແມ່ແບບ:Legend
ຮູບຮ່າງການສະແດງຜົນ
| ມີການໃຊ້ແມ່ແບບນີ້ປະມານ 980 ໜ້າແລະການແກ້ໄຂອາດເຮັດໃຫ້ເກີດຜົນກະທົບ ຫຼື ສັງເກດເຫັນໄດ້ ຄວນທົດສອບການປ່ຽນແປງໃນກ່ອງຊາຍ ຫຼື ໜ້າທົດສອບ ຫຼື ໃນໜ້າຍ່ອຍຜູ້ໃຊ້ຂອງທ່ານເອງນອກຈາກນີ້ທ່ານຍັງສາມາດສົນທະນາກ່ຽວກັບການແກ້ໄຂແມ່ແບບໄດ້ທີ່ໜ້າສົນທະນາ ກ່ອນທີ່ຈະນຳໄປໃຊ້ |
| ແມ່ແບບນີ້ໃຊ້ TemplateStyles: |
ສະແດງຄຳອະທິບາຍສັນຍະລັກດ້ວຍກ່ອງສີ
ການໃຊ້ງານ
[ດັດແກ້]{{legend|ສີພື້ນຫຼັງ|ຄຳອະທິບາຍ|outline=outline color|border=css border}}
- ສີພຶ້ນຫຼັງ ສາມາດໃຊ້ລະຫັດສີ HTML ຫຼື ໃຊ້ຊື່ສີໃນພາສາອັງກິດກໍໄດ້ ຕາມຕົວຢ່າງດ້ານລຸ່ມ ມັນສາມາດໃສ່ພາບໄປໄດ້ດ້ວຍ
- border ຫຼື ພາຣາມິເຕີກອບ ຂຶ້ນຢູ່ກັບທ່ານວ່າຈະໃສ່ ຫຼື ບໍ່
ຕົວຢ່າງ
[ດັດແກ້]ໃຊ້ໃນຂໍ້ຄວາມປົກກະຕິ
[ດັດແກ້]{{legend|black|ອາຟຣິກາ}}
{{legend|green|ອາເມຣິກາ}}
{{legend|blue|ໂອເຊອານີ}}
{{legend|#ffa|ເອີຣົບ|outline=silver}}
{{legend|#ff2800|ອາຊີ|outline=#A2A9B1}}
ອາຟຣິກາ
ອາເມຣິກາ
ໂອເຊອານີ
ເອີຣົບ
ອາຊີ
ໃຊ້ໃນຄຳອະທິບາຍພາບ
[ດັດແກ້]| ມາກອັບ | ສະແດງຜົນເປັນຂໍ້ຜິດພາດ Lua: expandTemplate: template "format item" does not exist. |
|---|---|
ລາຍການພາຣາມິເຕີທັງໝົດ
[ດັດແກ້]{{legend
| [legend box's colo(u)r]
| [text following legend box]
| outline = <!--colo(u)r of border around legend box-->
| border = <!--use to specify custom CSS styling for border (overrides 'outline')-->
| color = <!--colo(u)r of 'text'-->
| size = <!--'text' font-size-->
| text = <!--to place text inside the legend box-->
}}
ຂໍ້ຈຳກັດ
[ດັດແກ້]Using certain special characters in |text= that have meaning in wikitext can cause unexpected results. To use * in |text=, use |text={{asterisk}}. To use # in |text=, use |text={{number sign}}.
ເບິ່ງຕື່ມ
[ດັດແກ້]- Variant blocks
- {{legend striped}}, two colors, for striped color areas
- {{legend inline}}, uses display:inline to avoid line breaks after each legend
- {{legend0}}, without the line-feed
- {{leftlegend}}, with text-align set to left
- {{color box}} and {{RouteBox}}, with text placed inside the colored legend and article linking
- {{legend-line}}, legends for lines
- {{image key}}, allows legend templates being used in image captions to use multiple columns
Templates that list colors
- {{Colornames}}
- {{X11 color chart}}
- {{Web Colors}}
TemplateData
[ດັດແກ້]ດ້ານລຸ່ມນີ້ແມ່ນຂໍ້ມູນແມ່ແບບ ເອກະສານກຳກັບສຳລັບແມ່ແບບນີ້ເຊິ່ງໃຊ້ງານໂດຍຕົວຊ່ວຍສ້າງແມ່ແບບ ເຄື່ອງມືແບບແກ້ໄຂແບບເຫັນພາບ ແລະ ເຄື່ອງມືອື່ນ ເບິ່ງລາຍງານການໃຊ້ພາຣາມິເຕີປະຈຳເດືອນສຳລັບແມ່ແບບ:Legend
ຂໍ້ມູນແມ່ແບບສຳລັບ Legend
Shows a legend row with a colored box and a caption.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Color | 1 | The color for the legend entry, in any CSS format
| Line | required |
| Caption | 2 | Label for the legend entry
| String | suggested |
| CSS border style | border | CSS style for the legend entry's border | String | optional |
| Entry outline | outline | CSS color for the outline of the legend entry
| Line | optional |
| Text in the entry | text | Text to be displayed in the legend entry box, i.e. within the color specified
| Line | optional |
| Text color | textcolor | CSS color of text inside the legend's colored box | String | optional |
| Size | size | Font size of the legend entry, including colored box | String | optional |
| ຄູ່ມືການໃຊ້ງານທີ່ສະແດງຂ້າງເທິງນີ້ແມ່ນດຶງມາຈາກ ແມ່ແບບ:Legend/doc (ແກ້ | ປະຫວັດ) ຜູ້ຂຽນສາມາດທຳການທົດລອງໄດ້ທີ່ກະບະຊາຍ (ສ້າງ | ຄັດລອກ) ແລະຊຸດທົດສອບ (ສ້າງ) ຂອງແມ່ແບບນີ້ ກະລຸນາເພິ່ມໝວດໃສ່ໜ້າຍ່ອຍ /doc ໜ້າຍ່ອຍຂອງແມ່ແບບນີ້ |