• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.215
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:If all

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]

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}}
  • {{Missing param}}
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://moasspedia.org/w/index.php?title=Template:If_all&oldid=19133"
Categories:
  • Pages with broken file links
  • If-then-else templates
Last edited on 16 August 2021, at 15:58

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 16 August 2021, at 15:58.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop