Sjabloon:Bericht: verschil tussen versies

Uit Dorpsbelang Den Hout
Ga naar:navigatie, zoeken
 
(146 tussenliggende versies door 2 gebruikers niet weergegeven)
Regel 1: Regel 1:
<div class="main-wrapper">{{#ifeq:{{{Domein|}}}|{{SERVERNAME}}| |{{#widget:Redirect|url=https://{{{Domein|}}}/index.php/{{FULLPAGENAME}} }} }}__NOTOC__ __NOTITLE__<!--  
+
<noinclude>{{Managed
--><div class="bericht-grid {{{Type|}}}"><!--
+
|Version=1.0
--><div class="grid-tags"><!--
+
|Version notes=1.0 - First managed version
    --><h1 class="mt-0 pt-0 mr-4 pr-4">{{#ifeq:{{#urlget:mode}}|edit|<div class="multi-select-wrapper" >{{#arraydefine:@tags|{{#ask:[[Class::Bericht]]|?Tags|format=array|mainlabel=-}} }}{{#arrayunique:@tags}}<span class="out">{{#arraymap:{{{Tags|}}}|,|@@@|{{#tag:wsfield|@@@{{#tag:wsfield||type=hidden|name=tags[]|value=@@@}}|type=button|class=btn btn-succes|onclick=this.remove()}}|}}</span>{{#tag:html|<input list="tags" name="browser" id="multi-select2" multiple>
+
|Short description=
  <datalist id="tags">
+
}}
    {{#arraymap:{{#arrayprint:@tags}}|,|@@@|
+
 
    <option value="@@@">  |}}
+
This is the "Bericht" template. It should be called in the following format:
    </datalist>}}</div>|{{uc:{{{tags|}}} }} }}</h1><!--
+
 
--></div><!--
+
<pre>
--><div class="grid-datum"><!--
+
{{Bericht
  --><b>{{#ifeq:{{#urlget:mode}}|edit|<wsfield type="date" class="form-control" name="Datum" value="{{#if:{{{Datum|}}}|{{#time:Y-m-d|{{{Datum|}}}}}|{{#time:Y-m-d|Now}}}}" />|{{{Datum|}}} }}</b><!--
+
|Domein=
--></div><!--
+
|Datum=
--><div class="grid-titel"><!--
+
|Show date=
  --><h2>{{#ifeq:{{#urlget:mode}}|edit|<wsfield type="text" class="form-control" name="Titel" value="{{{Titel|}}}"/>|{{{Titel|}}} }}</h2><!--
+
|Bericht=
--></div><!--
+
|Titel=
--><div class="grid-bericht"><!--
+
|Samenvatting=
  -->{{#ifeq:{{#urlget:mode}}|edit|{{#widget:editor|html={{{Bericht|}}} }}|{{{Bericht|}}} }}<!--
+
|Auteur=
--></div><!--
+
|Layout=
--><div class="grid-lijst"><!--
+
|Image=
  -->{{#ifeq:{{#urlget:mode}}|edit|<div class="upload-wrapper"><!--
+
|tags=
--><!--
+
}}
-->{{#if:{{{Files|}}}|  {{#camap:@images|@@@|<!--
+
</pre>
--><div class="upload-group">{{#ifeq:@@@[Type][fulltext]|Pdf|<h2 class="w-100 rs-border text-center pt-3 pb-3">{{fa|file-pdf}} </h2>|[[@@@[catitle]]]}}<div class="d-flex"><div class="w-100">@@@[Caption]</div>{{#tag:wsfield|{{fa|times}}|type=button|class=btn|onclick=removeFile(this, '@@@[catitle]')}}{{#ifeq:@@@[Type][fulltext]|Pdf||{{#tag:wsfield||id=@@@[catitle]|type=radio|name=Image|class=d-none|value=@@@[catitle]|checked={{#ifeq:@@@[catitle]|Bestand:{{{Image|}}}|checked|{{#ifeq:@@@[catitle]|{{{Image|}}}|checked}} }} }}{{#tag:wslabel|<i class="fa fa-star btn ml-0"></i>|for=@@@[catitle]}} }}</div></div><!--
+
</noinclude><includeonly>{{#set:Class=Bericht
-->|}} }}<!--
 
--><!--
 
-->{{#Widget:Multi upload bericht}}<!--
 
--></div>|<div><b>Aanvullende informatie:</b></div><!--
 
--><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 class="grid-img"><!--
 
  --><div class="image-wrapper">{{#camap:@images|@@@|{{#vardefine:@imagetmplate|[[@@@[catitle]]]<small>@@@[Caption]</small>}}{{#switch:@@@[Type][fulltext]|Peg|Jpg|Svg|Png={{#var:@imagetmplate}} }}|}}</div><!--
 
--></div><!--
 
--></div><!--
 
--></div>{{#set:Class=Bericht
 
 
|Domein={{{Domein|}}}
 
|Domein={{{Domein|}}}
 
|Datum={{{Datum|}}}
 
|Datum={{{Datum|}}}
 +
|Show date={{{Show date|}}}
 
|Bericht={{{Bericht|}}}
 
|Bericht={{{Bericht|}}}
 
|Titel={{{Titel|}}}
 
|Titel={{{Titel|}}}
 
|Samenvatting={{{Samenvatting|}}}
 
|Samenvatting={{{Samenvatting|}}}
 
|Persoon={{{Auteur|}}}
 
|Persoon={{{Auteur|}}}
 +
|Layout={{{Layout|}}}
 
|Image={{{Image|}}}
 
|Image={{{Image|}}}
|Tags={{{tags|}}}|sep=,
+
|Tags={{{tags|}}}|+sep=,
}}<!--
+
}}{{DISPLAYTITLE:{{{Titel|}}} }}
 +
__NOTITLE__
 +
</includeonly>

Huidige versie van 9 sep 2021 om 14:15

Sjabloon:Managed

This is the "Bericht" template. It should be called in the following format:

{{Bericht
|Domein=
|Datum=
|Show date=
|Bericht=
|Titel=
|Samenvatting=
|Auteur=
|Layout=
|Image=
|tags=
}}