# Template:Transclusion depth test

Transclusion depth test:

Depth Result
0 {{{1}}}
1 {{{1}}}
2 {{{1}}}
3 {{{1}}}
4 {{{1}}}
5 {{{1}}}
6 {{{1}}}
7 {{{1}}}
8 {{{1}}}
9 {{{1}}}
10 {{{1}}}
11 {{{1}}}
12 {{{1}}}
13 {{{1}}}
14 {{{1}}}
15 {{{1}}}
16 {{{1}}}
17 {{{1}}}
18 {{{1}}}
19 {{{1}}}
20 {{{1}}}
21 {{{1}}}
22 {{{1}}}
23 {{{1}}}
24 {{{1}}}
25 {{{1}}}
26 {{{1}}}
27 {{{1}}}
28 {{{1}}}
29 {{{1}}}
30 {{{1}}}
31 {{{1}}}
32 {{{1}}}
33 {{{1}}}
34 {{{1}}}
35 {{{1}}}
36 {{{1}}}
37 {{{1}}}
38 {{{1}}}
39 {{{1}}}

This template is used in the investigation of the expansion depth limit.

It calls subtemplate /39, which produces row 0 and calls /38 which produces row 1 and calls /37, etc.

The examples show that the complexity of the expression for parameter 1 does not make any difference for the number of levels of subtemplates without error. Also, putting the call in the then- or else-part of #if does not make a difference. However, putting the call in a template parameter reduces the number of levels of subtemplates without error by 1.

### Usage

{{Transclusion depth test | {{some template| ... }} }}

### Maximum depth

To limit the maximum depth of the test, set maxdepth to a value between 0 and 40.

{{Transclusion depth test | maxdepth = num | {{some template| ... }} }}

The default value for maxdepth is 40.

## Examples

Transclusion depth test:

Depth Result
0 tdt
1 tdt
2 tdt
3 tdt
4 tdt
5 tdt
6 tdt
7 tdt
8 tdt
9 tdt
10 tdt
11 tdt
12 tdt
13 tdt
14 tdt
15 tdt
16 tdt
17 tdt
18 tdt
19 tdt
20 tdt
21 tdt
22 tdt
23 tdt
24 tdt
25 tdt
26 tdt
27 tdt
28 tdt
29 tdt
30 tdt
31 tdt
32 tdt
33 tdt
34 tdt
35 tdt
36 tdt
37 tdt
38 tdt
39 tdt

Transclusion depth test:

Depth Result
0 tdtifx
1 tdtifx
2 tdtifx
3 tdtifx
4 tdtifx
5 tdtifx
6 tdtifx
7 tdtifx
8 tdtifx
9 tdtifx
10 tdtifx
11 tdtifx
12 tdtifx
13 tdtifx
14 tdtifx
15 tdtifx
16 tdtifx
17 tdtifx
18 tdtifx
19 tdtifx
20 tdtifx
21 tdtifx
22 tdtifx
23 tdtifx
24 tdtifx
25 tdtifx
26 tdtifx
27 tdtifx
28 tdtifx
29 tdtifx
30 tdtifx
31 tdtifx
32 tdtifx
33 tdtifx
34 tdtifx
35 tdtifx
36 tdtifx
37 tdtifx
38 tdtifx
39 tdtifx

Transclusion depth test:

Depth Result
0 tdt1x
1 tdt1x
2 tdt1x
3 tdt1x
4 tdt1x
5 tdt1x
6 tdt1x
7 tdt1x
8 tdt1x
9 tdt1x
10 tdt1x
11 tdt1x
12 tdt1x
13 tdt1x
14 tdt1x
15 tdt1x
16 tdt1x
17 tdt1x
18 tdt1x
19 tdt1x
20 tdt1x
21 tdt1x
22 tdt1x
23 tdt1x
24 tdt1x
25 tdt1x
26 tdt1x
27 tdt1x
28 tdt1x
29 tdt1x
30 tdt1x
31 tdt1x
32 tdt1x
33 tdt1x
34 tdt1x
35 tdt1x
36 tdt1x
37 tdt1x
38 tdt1x
39 tdt1x

Transclusion depth test:

Depth Result
0 ifxtdt
1 ifxtdt
2 ifxtdt
3 ifxtdt
4 ifxtdt
5 ifxtdt
6 ifxtdt
7 ifxtdt
8 ifxtdt
9 ifxtdt
10 ifxtdt
11 ifxtdt
12 ifxtdt
13 ifxtdt
14 ifxtdt
15 ifxtdt
16 ifxtdt
17 ifxtdt
18 ifxtdt
19 ifxtdt
20 ifxtdt
21 ifxtdt
22 ifxtdt
23 ifxtdt
24 ifxtdt
25 ifxtdt
26 ifxtdt
27 ifxtdt
28 ifxtdt
29 ifxtdt
30 ifxtdt
31 ifxtdt
32 ifxtdt
33 ifxtdt
34 ifxtdt
35 ifxtdt
36 ifxtdt
37 ifxtdt
38 ifxtdt
39 ifxtdt

Transclusion depth test:

Depth Result
0 1xtdt
1 1xtdt
2 1xtdt
3 1xtdt
4 1xtdt
5 1xtdt
6 1xtdt
7 1xtdt
8 1xtdt
9 1xtdt
10 1xtdt
11 1xtdt
12 1xtdt
13 1xtdt
14 1xtdt
15 1xtdt
16 1xtdt
17 1xtdt
18 1xtdt
19 1xtdt
20 1xtdt
21 1xtdt
22 1xtdt
23 1xtdt
24 1xtdt
25 1xtdt
26 1xtdt
27 1xtdt
28 1xtdt
29 1xtdt
30 1xtdt
31 1xtdt
32 1xtdt
33 1xtdt
34 1xtdt
35 1xtdt
36 1xtdt
37 1xtdt
38 1xtdt
39 1xtdt

Transclusion depth test:

Depth Result
0 1x1xtdt
1 1x1xtdt
2 1x1xtdt
3 1x1xtdt
4 1x1xtdt
5 1x1xtdt
6 1x1xtdt
7 1x1xtdt
8 1x1xtdt
9 1x1xtdt
10 1x1xtdt
11 1x1xtdt
12 1x1xtdt
13 1x1xtdt
14 1x1xtdt
15 1x1xtdt
16 1x1xtdt
17 1x1xtdt
18 1x1xtdt
19 1x1xtdt
20 1x1xtdt
21 1x1xtdt
22 1x1xtdt
23 1x1xtdt
24 1x1xtdt
25 1x1xtdt
26 1x1xtdt
27 1x1xtdt
28 1x1xtdt
29 1x1xtdt
30 1x1xtdt
31 1x1xtdt
32 1x1xtdt
33 1x1xtdt
34 1x1xtdt
35 1x1xtdt
36 1x1xtdt
37 1x1xtdt
38 1x1xtdt
39 1x1xtdt

Transclusion depth test:

Depth Result
0 20times1xtdt
1 20times1xtdt
2 20times1xtdt
3 20times1xtdt
4 20times1xtdt
5 20times1xtdt
6 20times1xtdt
7 20times1xtdt
8 20times1xtdt
9 20times1xtdt
10 20times1xtdt
11 20times1xtdt
12 20times1xtdt
13 20times1xtdt
14 20times1xtdt
15 20times1xtdt
16 20times1xtdt
17 20times1xtdt
18 20times1xtdt
19 20times1xtdt
20 20times1xtdt
21 20times1xtdt
22 20times1xtdt
23 20times1xtdt
24 20times1xtdt
25 20times1xtdt
26 20times1xtdt
27 20times1xtdt
28 20times1xtdt
29 20times1xtdt
30 20times1xtdt
31 20times1xtdt
32 20times1xtdt
33 20times1xtdt
34 20times1xtdt
35 20times1xtdt
36 20times1xtdt
37 20times1xtdt
38 20times1xtdt
39 20times1xtdt

Transclusion depth test:

Depth Result
0 36times1xtdt
1 36times1xtdt
2 36times1xtdt
3 36times1xtdt
4 36times1xtdt
5 36times1xtdt
6 36times1xtdt
7 36times1xtdt
8 36times1xtdt
9 36times1xtdt
10 36times1xtdt
11 36times1xtdt
12 36times1xtdt
13 36times1xtdt
14 36times1xtdt
15 36times1xtdt
16 36times1xtdt
17 36times1xtdt
18 36times1xtdt
19 36times1xtdt
20 36times1xtdt
21 36times1xtdt
22 36times1xtdt
23 36times1xtdt
1 36times1xtdt
{{Expansion depth limit exceeded}} {{{Expansion depth limit exceeded}}}
0 {{{Expansion depth limit exceeded}}}

{{Expansion depth limit exceeded|level = {{Expansion depth limit exceeded}} | 1 = {{{Expansion depth limit exceeded}}} }}