টেমপ্লেট:হাইলাইট তারিখের তালিকা
![]() | ব্যবহৃত লুয়া: |
This module creates a list of items sorted by date. The item for today, or for the closest date in the future, is highlighted.
শব্দবিন্যাস
সম্পাদনা{{highlighted date list | item1 = | date1 = | item2 = | date2 = ... | class = | style = | highlighter = | highlightercolor = | graceperiod = }}
প্যারামিটার
সম্পাদনাAll parameters are optional.
item1
,item2
,item3
... - The list items. Note: the list items will be sorted by their dates, not their parameter numbers.date1
,date2
,date3
... - The dates for each list item.date1
corresponds toitem1
,date2
corresponds toitem2
, etc.class
- a class attribute for the list's ul element.style
- inline CSS for the list's ul element.highlighter
- a custom highlighter. The default is<span style="background-color:#FC6;font-size:120%">→</span>
(→).highlightercolor
- if|highlighter=
is not specified, this specifies the background color of the highlighter. The default is "#FC6".graceperiod
- the period of time that the template should wait after a date has passed before highlighting the next date in the list. This should be a value accepted as a relative date by the #time parser function, for example "1 day" or "2 months".
উদাহরণ
সম্পাদনাপূর্বনির্ধারিত
সম্পাদনা{{highlighted date list | item1 = Egg | date1 = ১৭ জুলাই ২০২৪ | item2 = Beans | date1 = ২৪ জুলাই ২০২৪ | item3 = Spam | date3 = ৩১ জুলাই ২০২৪ | item4 = Sausage | date4 = ৭ আগস্ট ২০২৪ }}
দুই দিনের অন্তর্বর্তী সময়কাল
সম্পাদনা{{highlighted date list | item1 = Egg | date1 = ১৭ জুলাই ২০২৪ | item2 = Beans | date1 = ২৪ জুলাই ২০২৪ | item3 = Spam | date3 = ৩১ জুলাই ২০২৪ | item4 = Sausage | date4 = ৭ আগস্ট ২০২৪ | graceperiod = 2 days }}
কাস্টম হাইলাইট রঙ
সম্পাদনা{{highlighted date list | item1 = Egg | date1 = ১৭ জুলাই ২০২৪ | item2 = Beans | date2 = ২৪ জুলাই ২০২৪ | item3 = Spam | date3 = ৩১ জুলাই ২০২৪ | item4 = Sausage | date4 = ৭ আগস্ট ২০২৪ | highlightercolor = pink }}
কাস্টম হাইলাইটার
সম্পাদনা{{highlighted date list | item1 = Egg | date1 = ১৭ জুলাই ২০২৪ | item2 = Beans | date2 = ২৪ জুলাই ২০২৪ | item3 = Spam | date3 = ৩১ জুলাই ২০২৪ | item4 = Sausage | date4 = ৭ আগস্ট ২০২৪ | highlighter = THIS ONE! >>> }}
উপরোক্ত নথিটি টেমপ্লেট:হাইলাইট তারিখের তালিকা/নথি থেকে প্রতিলিপ্ত। (সম্পাদনা | ইতিহাস) ব্যবহারকারীগণ খেলাঘর (তৈরি করুন | আয়না) এবং পরীক্ষা পাতায় (তৈরি করুন) এই টেমপ্লেট সংক্রান্ত পরীক্ষা-নিরীক্ষা করতে পারেন। দয়া করে /নথি উপপাতায় বিষয়শ্রেণী যোগ করুন। এই টেমপ্লেটের উপপাতাসমূহ। |