সাঁচ:Ifempty/doc
From Wikipedia, the free encyclopedia
This is the {{ifempty}} template.
![]() |
এয়া হৈছে ‘সাঁচ:Ifempty’ শীৰ্ষক সাঁচটোৰ নথিকৰণৰ উপপৃষ্ঠা। ইয়াত সাঁচটো ব্যৱহাৰৰ তথ্য, শ্ৰেণীসমূহ, আন্তঃৱিকি সংযোগবোৰ আৰু অন্য সমল থাকে, যিবোৰ মূল সাঁচ পৃষ্ঠাটোৰ অংশ নহয়। |
![]() |
This template is used on 60,000+ pages, and changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in a user subpage, and consider discussing changes at the talk page before implementing them. |
This template is used inside other templates. It takes up to nine parameters (parameters 1-9), and returns the first one that is defined and non-empty, otherwise nothing. Typical usage is like this:
{{ifempty| {{{logo|}}} | {{{image|}}} | default.svg }}
This returns the first of the parameters logo and image that is defined and non-empty, otherwise "default.svg".