Jump to content

Template:Header2: Difference between revisions

From IdeaWazaWiki
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}}}}{{#if:{{{override_author|}}}|[[Category:Pathosbot]]}}{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}||{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}|[[Category:Subpages]]}}}}</includeonly><noinclude>
{{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>

Revision as of 22:05, 4 April 2008

Untitled
by [[Author:{{{author}}}|{{{author}}}]]
{{{notes}}}
[create] Template documentation