টেমপ্লেট:Random item

উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে
টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]

N টি উপাদান থেকে দৈবভাবে একটি উপাদান প্রকাশ করে।

ব্যবহার[সম্পাদনা]

  • {{random item|item1|item2|...|itemN}}
  • All calls to the function using |same=y with the same number of items will return the same item.

পরামিতি[সম্পাদনা]

  • |1=..|2=..|N= --> The items to return.
  • |same=y Set to a truthy value for all calls with this parameter set and the same number of items to return the same item.
  • There use to be a |range= parameter, but this is no longer needed.

উদাহরণ[সম্পাদনা]

শোধন

  • {{Random item|অ|আ|ই|ঈ|ক|খ|গ|ঘ|১|২|৩|৪}} --> ৩
  • {{Random item|অ|আ|ই|ঈ|ক|খ|গ|ঘ|১|২|৩|৪}} --> ৪
  • {{Random item|অ|আ|ই|ঈ|ক|খ|গ|ঘ|১|২|৩|৪}} --> আ
  • {{Random item|অ|আ|ই|ঈ|ক|খ|গ|ঘ|১|২|৩|৪|same=y}} --> ৩
  • {{Random item|অ|আ|ই|ঈ|ক|খ|গ|ঘ|১|২|৩|৪|same=y}} --> ৩
  • {{Random item|অ|আ|ই|ঈ|ক|খ|গ|ঘ|১|২|৩|৪|same=y}} --> ৩

আরো দেখুন[সম্পাদনা]