Vorlage:Head en: Unterschied zwischen den Versionen

aus Metalab Wiki, dem offenen Zentrum für meta-disziplinäre Magier und technisch-kreative Enthusiasten.
Zur Navigation springenZur Suche springen
(Don't display subpages if there are no subpages (remove todo))
Zeile 2: Zeile 2:
 
this template contains the display of subpages and the languages switch!
 
this template contains the display of subpages and the languages switch!
 
it looks somewhat like this:
 
it looks somewhat like this:
 
todo: dont display subpages list if there are none! unnecessary error page
 
 
</noinclude>
 
</noinclude>
<div style="float:left;">'''Subpages:''' {{#subpages: | format=list | pathstyle=children | sortby=lastedit | sort=desc | showpage=no | kidsonly=yes | limit=0 }}</div>
+
<div style="float:left;">{{#ifeq: {{#subpages:}} | "" has no sub pages. | | '''Subpages:''' {{#subpages: | format=list | pathstyle=children | sortby=lastedit | sort=desc | showpage=no | kidsonly=yes | limit=0 }} }}</div>
 
<div style="float:right;">{{Languages|en}}</div>
 
<div style="float:right;">{{Languages|en}}</div>
 
<div style="clear:both;"> </div>
 
<div style="clear:both;"> </div>

Version vom 7. Oktober 2015, 22:24 Uhr

this template contains the display of subpages and the languages switch! it looks somewhat like this:

Subpages: {{#subpages: | format=list | pathstyle=children | sortby=lastedit | sort=desc | showpage=no | kidsonly=yes | limit=0 }}