Sjabloon:Bericht: verschil tussen versies

Uit Dorpsbelang Den Hout
Ga naar:navigatie, zoeken
 
(129 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
-->{{#ifeq:{{#urlget:mode}}|edit|Layout {{#tag:html|<select  name="Layout" id="multi-select3"  onchange="$('.bericht-grid').attr('class', 'bericht-grid '+this.value);console.log(this.value)" >
+
|Version=1.0
  {{#arraymap:layout1, layout2|,|@@@|<option value="@@@">@@@</option>|{{#widget:link|type=a|class=btn float-right|text={{fa|edit}}|href={{fullurl:{{FULLPAGENAME}}|mode=edit}} }}
+
|Version notes=1.0 - First managed version
  </select>}} Auteur <wsfield type="text"  name="Auteur" value="{{#if:{{{Auteur|}}}|{{{Auteur|}}}|{{CURRENTLOGGEDUSER}}}}" /> <wsfield type="text" name="Domein" value="{{#if:{{{Domein|}}}|{{{Domein|}}}|{{SERVERNAME}}}}" placeholder="domein" class="form-control d-none" /> }}<!--
+
|Short description=
--><div class="bericht-grid {{{Type|}}}"><!--
+
}}
--><div class="grid-tags"><!--
+
 
    -->{{#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>
+
This is the "Bericht" template. It should be called in the following format:
  <datalist id="tags">
+
 
    {{#arraymap:{{#arrayprint:@tags}}|,|@@@|
+
<pre>
    <option value="@@@">  |}}
+
{{Bericht
    </datalist>}}</div>|<h1 class="mt-0 pt-0 mr-4 pr-4">{{uc:{{{tags|}}} }}</h1> }}<!--
+
|Domein=
--></div><!--
+
|Datum=
--><div class="grid-datum"><!--
+
|Show date=
  --><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><!--
+
|Bericht=
--></div><!--
+
|Titel=
--><div class="grid-titel"><!--
+
|Samenvatting=
  --><h2>{{#ifeq:{{#urlget:mode}}|edit|<wsfield type="text" class="form-control" name="Titel" value="{{{Titel|}}}"/>|{{{Titel|}}} }}</h2><!--
+
|Auteur=
--></div><!--
+
|Layout=
--><div class="grid-bericht"><!--
+
|Image=
  -->{{#ifeq:{{#urlget:mode}}|edit|{{#widget:editor|html={{{Bericht|}}} }}|{{{Bericht|}}} }}<!--
+
|tags=
--></div><!--
+
}}
--><div class="grid-lijst"><!--
+
</pre>
  -->{{#ifeq:{{#urlget:mode}}|edit| |<div><b>Aanvullende informatie:</b></div><!--
+
</noinclude><includeonly>{{#set:Class=Bericht
--><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">{{#if:{{{Image|}}}|[[{{{Image|}}}|link=]]}}</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=
}}