• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:If all

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 7,300 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

This helper template performs a logical and on n parameters where n is between 1 and 10. It is intended to be used in other templates.

Usage

{{if all|1|2|3|4|5|6|7|8|9|10
 | n = 10
 | then = All there!
 | else = Something is missing!?
}}

→ All there!


{{if all|1|2|3
 | n = 3
 | then = All there!
 | else = Something is missing!?
}}

→ All there!


Other examples
{{if all|1|2|3
 | n = 2
 | then = All there!
 | else = Something is missing!?
}}

→ All there!


{{if all| |2|3
 | n = 2
 | then = All there!
 | else = Something is missing!?
}}

→ Something is missing!?


{{if all|1|2| 
 | n = 2
 | then = All there!
 | else = Something is missing!?
}}

→ All there!


{{if all|
 | n = 1
 | then = All there!
 | else = Something is missing!?
}}

→ Something is missing!?


{{if all
 | n = 1
 | then = All there!
 | else = Something is missing!?
}}

→ Something is missing!?


{{if all|1|2|3|4|5|6|7|8| |10
 | n = 10
 | then = All there!
 | else = Something is missing!?
}}

→ Something is missing!?


{{if all| |2|3
 | n = 3
 | then = All there!
 | else = Something is missing!?
}}

→ Something is missing!?



{{if all|1|2|3
 | n = 4
 | then = All there!
 | else = Something is missing!?
}}

→ Something is missing!?


{{if all| |2|3
 | n = 4
 | then = All there!
 | else = Something is missing!?
}}

→ Something is missing!?


{{if all|1|2| 
 | n = 4
 | then = All there!
 | else = Something is missing!?
}}

→ Something is missing!?


{{if all|
 | n = 0
 | then = All there!
 | else = Something is missing!?
}}

→


{{if all
 | n = 0
 | then = All there!
 | else = Something is missing!?
}}

→



{{if all|1|2|3|4|5|6|7| | |10
 | n = 10
 | then = All there!
 | else = Something is missing!?
}}

→ Something is missing!?


{{if all| | |3
 | n = 3
 | then = All there!
 | else = Something is missing!?
}}

→ Something is missing!?


{{if all| | | | | | | | | |10
 | n = 10
 | then = All there!
 | else = Something is missing!?
}}

→ Something is missing!?


{{if all| | | 
 | n = 3
 | then = All there!
 | else = Something is missing!?
}}

→ Something is missing!?

See also

  • {{If all}}
  • {{If both}}
  • {{If either}}
  • {{If empty}}
  • Module:Parameter validation
The above documentation is transcluded from Template:If all/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:If_all&oldid=1304297368"
Last edited on 5 August 2025, at 05:06

Languages

    • العربية
    • 閩南語 / Bân-lâm-gí
    • भोजपुरी
    • Bosanski
    • فارسی
    • हिन्दी
    • Íslenska
    • Latviešu
    • 日本語
    • ਪੰਜਾਬੀ
    • Português
    • Русский
    • සිංහල
    • Slovenščina
    • Српски / srpski
    • Srpskohrvatski / српскохрватски
    • တႆး
    • తెలుగు
    • ไทย
    • Türkçe
    • اردو
    • Tiếng Việt
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 5 August 2025, at 05:06 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop