This site is supported by donations to The OEIS Foundation.

Template:Ifdef (test)/doc

From OeisWiki
Jump to: navigation, search

This documentation subpage contains instructions, categories, or other information for Template:Ifdef (test). [<Edit> Template:Ifdef (test)]

[⧼Purge⧽ Template:Ifdef (test)/doc]

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
}}