Sjabloon:Bericht: verschil tussen versies

Uit Dorpsbelang Den Hout
Ga naar:navigatie, zoeken
 
(55 tussenliggende versies door 2 gebruikers niet weergegeven)
Regel 1: Regel 1:
<div class="main-wrapper"><wsform action="addToWiki" >{{#ifeq:{{#urlget:mode}}|edit|<wscreate mwtemplate="Bericht" mwwrite="{{FULLPAGENAME}}" />}}<!--{{#ifeq:{{{Domein|}}}|{{SERVERNAME}}| |{{#widget:Redirect|url=https://{{{Domein|}}}/index.php/{{FULLPAGENAME}} }} }}-->__NOTOC__ __NOTITLE__<!--
+
<noinclude>{{Managed
--><div class="d-flex justify-content-end align-items-center">{{#ifeq:{{#urlget:mode}}|edit|<!--
+
|Version=1.0
--><wsfield type="hidden"  name="Pagename" value="{{FULLPAGENAME}}"  /><!--
+
|Version notes=1.0 - First managed version
-->Layout {{#tag:html|<select  name="Layout" id="multi-select3"  onchange="$('.bericht-grid').attr('class', 'bericht-grid '+this.value);console.log(this.value)" >
+
|Short description=
  {{#arraymap:layout1, layout2|,|@@@|<option value="@@@" {{#ifeq:@@@|{{{Layout|}}}|selected="selected"}}>@@@</option>|}}
+
}}
  </select>}}<!--
+
 
--> Auteur <wsfield type="text"  name="Auteur" value="{{#if:{{{Auteur|}}}|{{{Auteur|}}}|{{CURRENTLOGGEDUSER}}}}" /><!--
+
This is the "Bericht" template. It should be called in the following format:
--><wsfield type="hidden"  name="Prefix" value="{{#explode:{{FULLPAGENAME}}|/|0}}"  /><!--  
+
 
--><wsfield type="hidden" name="Domein" value="{{#if:{{{Domein|}}}|{{{Domein|}}}|{{SERVERNAME}}}}" placeholder="domein"  /><!--
+
<pre>
--><wsfield type="button" class="btn pull-right" onclick="uploadFiles()" >Opslaan</wsfield><!--
+
{{Bericht
--><wsfield type="submit" class="btn pull-right d-none" id="real-submit" value="save" /><!--
+
|Domein=
-->{{#widget:link|type=a|class=btn flex-end|text={{fa|arrow-left}}|href={{fullurl:{{FULLPAGENAME}}}} }}<!--
+
|Datum=
-->|<!--
+
|Show date=
-->{{#widget:link|type=a|class=btn float-right|text={{fa|edit}}|href={{fullurl:{{FULLPAGENAME}}|mode=edit}} }}<!--
+
|Bericht=
--> }}</div><!--
+
|Titel=
--><div class="bericht-grid {{{Layout|}}}"><!--
+
|Samenvatting=
--><div class="grid-tags"><!--
+
|Auteur=
    -->{{#ifeq:{{#urlget:mode}}|edit|<div class="multi-select-wrapper" >{{#arraydefine:@tags|{{#ask:[[Class::Bericht]][[Domein::{{SERVERNAME}}]]|?Tags|format=array|mainlabel=-}} }}{{#arrayunique:@tags}}<span class="out">{{#arraymap:{{{tags|}}}|,|@@@|{{#tag:wsfield|@@@{{#tag:wsfield||type=hidden|name=tags[]|value=@@@}}|type=button|class=botn|onclick=this.remove()}}|}}</span>{{#tag:html|<input list="tags" name="browser" id="multi-select2" multiple>
+
|Layout=
  <datalist id="tags">
+
|Image=
    {{#arraymap:{{#arrayprint:@tags}}|,|@@@|
+
|tags=
    <option value="@@@">  |}}
+
}}
    </datalist>}}</div>|<h1 class="mt-0 pt-0 mr-4 pr-4">{{uc:{{{tags|}}} }}</h1> }}<!--
+
</pre>
--></div><!--
+
</noinclude><includeonly>{{#set:Class=Bericht
--><div class="grid-datum"><!--
 
  --><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><!--
 
--></div><!--
 
--><div class="grid-titel"><!--
 
  --><h2>{{#ifeq:{{#urlget:mode}}|edit|<wsfield type="text" class="form-control" placeholder="Titel" name="Titel" value="{{{Titel|}}}"/>|{{{Titel|}}} }}</h2><!--
 
--></div><!--
 
--><div class="grid-bericht"><!--
 
-->{{#ifeq:{{#urlget:mode}}|edit|{{#tool:get parameters |{{PAGEID}} |$params}}{{#caprint:$params[Bericht][Bericht]||true }}<wsfield type="textarea"  name="Samenvatting"  >{{{Samenvatting|}}}</wsfield><!-- {{#widget:editor|html={{{Bericht|}}} }} --><wsfield type="textarea" class="tinyframe" name="Bericht"  >{{#tool:get parameters |{{PAGEID}} |$params}}{{#caprint:$params[Bericht][Bericht]||true }} </wsfield>|
 
  {{{Bericht|}}} }}<!--
 
--></div><!--
 
--><!--
 
--><div class="grid-img"><!--
 
  --><div class="image-wrapper">{{#vardefine:@img|{{#ask:[[Class::Bericht file]][[Page::{{FULLPAGENAME}}]]|link=none|limit=1}} }}{{#if:{{#var:@img}}|[[{{#var:@img}}|link=]]}}{{#ifeq:{{#urlget:mode}}|edit|{{#widget:File upload
 
|preview=true
 
|caption=false
 
|type=png
 
|drop=true
 
|button=<div class="btn">{{fa|upload}}</div>
 
|filepagetemplate=Bericht file
 
|filepageparameters=Class:Bericht file;Domein:{{SERVERNAME}};Bericht:{{FULLPAGENAME}}
 
|filename={{#if:{{#var:@img}}|{{#explode:{{#explode:{{#var:@img}}|:|1}}|.|0}}|{{#time:U|now}}<FILENAME>}}
 
}} }}</div><!--
 
--></div><!--
 
--></div><!--
 
--></wsform></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=
}}