This site is supported by donations to The OEIS Foundation.

Template:Ifdef (test)

From OeisWiki
Jump to: navigation, search

The {{Ifdef (test)}} template testing template is used to test the {{Ifdef}} if-then-else template. I tests whether any of its first eight parameters are defined or not by calling {{Ifdef}}.

Usage

{{Ifdef (test)|param 1 (optional)| ...|param 8 (optional)}}

Examples

Code Result
{{Ifdef (test)}}
{{Ifdef (test)|one}}
{{Ifdef (test)|one|two}}
{{Ifdef (test)|one|two|three}}
{{Ifdef (test)|one|two|three|four}}

Code

<!--
-->{{ifdef|param={{{1}}}| 1
| ~1
}}<!--
-->{{ifdef|param={{{2}}}| , 2
| , ~2
}}<!--
-->{{ifdef|param={{{3}}}| , 3
| , ~3
}}<!--
-->{{ifdef|param={{{4}}}| , 4
| , ~4
}}<!--
-->{{ifdef|param={{{5}}}| , 5
| , ~5
}}<!--
-->{{ifdef|param={{{6}}}| , 6
| , ~6
}}<!--
-->{{ifdef|param={{{7}}}| , 7
| , ~7
}}<!--
-->{{ifdef|param={{{8}}}| , 8
| , ~8
}}