Sjabloon:Bericht: verschil tussen versies
Uit Dorpsbelang Den Hout
Regel 28: | Regel 28: | ||
-->{{#ifeq:{{#urlget:mode}}|edit| |<ul>{{#ask:[[Class::Bericht file]][[Page::{{FULLPAGENAME}}]]|?Caption|?Type|link=none|format=complexarray|name=@images }}{{#camap:@images|@@@|{{#switch:@@@[Type][fulltext]|Pdf=<li class="red">{{#widget:link|type=a|text={{#if:@@@[Caption]|@@@[Caption]|@@@[catitle]}}|target=blank|href={{filepath:{{#replace:@@@[catitle]|Bestand:|}} }} |class=red}}</li>}} |}} </ul>}}<!-- | -->{{#ifeq:{{#urlget:mode}}|edit| |<ul>{{#ask:[[Class::Bericht file]][[Page::{{FULLPAGENAME}}]]|?Caption|?Type|link=none|format=complexarray|name=@images }}{{#camap:@images|@@@|{{#switch:@@@[Type][fulltext]|Pdf=<li class="red">{{#widget:link|type=a|text={{#if:@@@[Caption]|@@@[Caption]|@@@[catitle]}}|target=blank|href={{filepath:{{#replace:@@@[catitle]|Bestand:|}} }} |class=red}}</li>}} |}} </ul>}}<!-- | ||
--></div><!-- | --></div><!-- | ||
− | --><div class="grid-img"><!-- | + | --><div class="grid-img">{{#var:@img}}<!-- |
--><div class="image-wrapper">{{#vardefine:@img|{{#ask:[[Class::Bericht file]][[Page::{{FULLPAGENAME}}]]|link=none}} }}{{#if:{{{Image|}}}{{#var:@img}}|[[{{{Image|}}}{{#var:@img}}|link=]]}}{{#ifeq:{{#urlget:mode}}|edit|{{#widget:File upload | --><div class="image-wrapper">{{#vardefine:@img|{{#ask:[[Class::Bericht file]][[Page::{{FULLPAGENAME}}]]|link=none}} }}{{#if:{{{Image|}}}{{#var:@img}}|[[{{{Image|}}}{{#var:@img}}|link=]]}}{{#ifeq:{{#urlget:mode}}|edit|{{#widget:File upload | ||
|preview=true | |preview=true | ||
Regel 37: | Regel 37: | ||
|filepagetemplate=Bericht file | |filepagetemplate=Bericht file | ||
|filepageparameters=Class:Bericht file;Domein:{{SERVERNAME}};Bericht:{{FULLPAGENAME}} | |filepageparameters=Class:Bericht file;Domein:{{SERVERNAME}};Bericht:{{FULLPAGENAME}} | ||
− | |filename={{#time:U|now}}<FILENAME> | + | |filename={{#if:{{#var:@img}}|{{#var:@img}}|{{#time:U|now}}<FILENAME>}} |
}} }}</div><!-- | }} }}</div><!-- | ||
--></div><!-- | --></div><!-- |