Template:Header2: Difference between revisions
Appearance
wikademia>Pathoschild rewrote undefined parameter error (much more readable, efficient) |
wikademia>Pathoschild rewrote subpage detection (handle cases where the direct parent doesn't exist), removed tracking category (no longer needed) |
||
| Line 20: | Line 20: | ||
| {{{notes}}} | | {{{notes}}} | ||
|}<includeonly>{{#ifeq:{{#expr:{{{previous|}}}}}|<span class="error">Expression error: Unrecognised punctuation character "�"</span>|[[Category:Header2 pages with arrow in previous param]]}}{{#ifeq:{{{translator|}}}|?| | |}<includeonly>{{#ifeq:{{#expr:{{{previous|}}}}}|<span class="error">Expression error: Unrecognised punctuation character "�"</span>|[[Category:Header2 pages with arrow in previous param]]}}{{#ifeq:{{{translator|}}}|?| | ||
{{No translator info}}}}{{# | {{No translator info}}}}{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}||{{#switch:1 | ||
|{{#ifexist:{{#rel2abs:../}}|1}} | |||
|{{#ifexist:{{#rel2abs:../../}}|1}} | |||
|{{#ifexist:{{#rel2abs:../../../}}|1}} = [[Category:Subpages]] | |||
}}}}</includeonly><noinclude> | |||
{{documentation|Template:Header/doc}} | {{documentation|Template:Header/doc}} | ||
</noinclude> | </noinclude> | ||