Template:ShowHeaderIfShorterPageIsExisting: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<!-- Create a Header if the passed or an even shorter page is existing. Recursive calling!! -->{{#ifexpr:{{#len:{{ | <!-- Create a Header if the passed or an even shorter page is existing. Recursive calling!! --> | ||
{{#ifexpr: | |||
{{#len: | |||
{{CombineWithSeperator | |||
|{{#ifexist:{{StripLastWord|{{{1|}}}}}|*}} | |||
|* | |||
|{{#ifexist:{{StripLastWord|{{StripLastWord|{{{1|}}}}}}}|*}} | |||
|{{#ifexist:{{StripLastWord|{{StripLastWord|{{StripLastWord|{{{1|}}}}}}}}}|*}} | |||
|{{#ifexist:{{StripLastWord|{{StripLastWord|{{StripLastWord|{{StripLastWord|{{{1|}}}}}}}}}}}|*}} | |||
|{{#ifexist:{{StripLastWord|{{StripLastWord|{{StripLastWord|{{StripLastWord|{{StripLastWord|{{{1|}}}}}}}}}}}}}|*}} | |||
|{{#ifexist:{{StripLastWord|{{StripLastWord|{{StripLastWord|{{StripLastWord|{{StripLastWord|{{StripLastWord|{{{1|}}}}}}}}}}}}}}}|*}} | |||
}} | |||
}} > 0 | |||
|== {{{2|}}} == | |||
}}<noinclude>Determines if a shorter pagename version of the passed first argument is existing. If a shorter pagename is existing, the second passed argument is shown as a second level header.</noinclude> |
Revision as of 19:41, 13 February 2020
Determines if a shorter pagename version of the passed first argument is existing. If a shorter pagename is existing, the second passed argument is shown as a second level header.