In MediaWiki, is there a standard pattern that you can include in a template body to detect depth of transclusion?
Specifically, let's assume Template:Myinfobox contains such a pattern that displays "native myinfobox call" for depth 1 transclusion and "transclusion call" otherwise.
Then, if page Mypage calls {{Myinfobox}} it should display "native myinfobox call" while any page that calls {{Mypage}} should display "transclusion call"
Does anyone know such a pattern that does not require the writer of
Mypage
to insert special markup or <noinclude>
or <includeonly>
tags?