টেমপ্লেট: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}} --> ঈ

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