Sjabloon:Dropdown link: verschil tussen versies
Uit Dorpsbelang Den Hout
(Nieuwe pagina aangemaakt met '<noinclude>{{Managed |Version=1.1 |Version notes=1.1 - Changed the link for Href to Widget:Link so it doens't open in a new tab 1.0 - First version |Short descripti...') |
|||
(Een tussenliggende versie door dezelfde gebruiker niet weergegeven) | |||
Regel 1: | Regel 1: | ||
<noinclude>{{Managed | <noinclude>{{Managed | ||
− | |Version=1. | + | |Version=1.2 |
− | |Version notes=1.1 - Changed the link for Href to Widget:Link so it doens't open in a new tab | + | |Version notes= |
+ | 1.2 Removed use of Widget:Link. Gives problems with php8 | ||
+ | 1.1 - Changed the link for Href to Widget:Link so it doens't open in a new tab | ||
1.0 - First version | 1.0 - First version | ||
|Short description=For dropdown links in the nav menu | |Short description=For dropdown links in the nav menu | ||
Regel 23: | Regel 25: | ||
;Alternative | ;Alternative | ||
− | <pre><li>{{#widget:Link|type=a|href={{#ifeq:{{FULLPAGENAME}}|{{{Page|}}}|#|{{fullurl:{{{Page|}}}}}}}|text={{{Text|}}}}}</li></pre> | + | <pre><li>{{#widget:Link|type=a|href={{#ifeq:{{FULLPAGENAME}}|{{{Page|}}}|#|{{fullurl:{{{Page|}}} }} }}|text={{{Text|}}} }}</li></pre> |
</noinclude><includeonly><li class="{{#ifeq:{{NAMESPACE}}|Special|{{{Page|}}}|<!-- | </noinclude><includeonly><li class="{{#ifeq:{{NAMESPACE}}|Special|{{{Page|}}}|<!-- | ||
-->{{#ifeq:{{FULLPAGENAME}}|{{{Page|}}}|navbar-text navbar-presentpage|}}}}">{{#if:{{{Page|}}} | [[{{{Page|}}}|{{{Text|}}}]] }}<!-- | -->{{#ifeq:{{FULLPAGENAME}}|{{{Page|}}}|navbar-text navbar-presentpage|}}}}">{{#if:{{{Page|}}} | [[{{{Page|}}}|{{{Text|}}}]] }}<!-- | ||
− | -->{{#if:{{{Href|}}} | | + | -->{{#if:{{{Href|}}} | [{{{Href|}}} {{{Text|}}}] }} }}</li></includeonly> |
Huidige versie van 4 okt 2023 om 13:06
{{Dropdown link |Page= |Text= }}
OR
{{Dropdown link |Href= |Text= }}
- Alternative
<li>{{#widget:Link|type=a|href={{#ifeq:{{FULLPAGENAME}}|{{{Page|}}}|#|{{fullurl:{{{Page|}}} }} }}|text={{{Text|}}} }}</li>