Sjabloon:Related portals: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
Regel 12: Regel 12:
 
</noinclude><includeonly>__NOTOC____NOTITLE__
 
</noinclude><includeonly>__NOTOC____NOTITLE__
 
<div class= "pt-5 pb-5">
 
<div class= "pt-5 pb-5">
<div class="card">
+
<div class="card">
<div class="card-header pt-3 pb-3 pl-3" style="background-color: #20b096; color: white;">
+
<div class="card-header pt-3 pb-3 pl-3" style="background-color: #20b096; color: white;">
      <h4>{{{Title|}}}</h4>
+
<h4>{{{Title|}}}</h4>
</div>
+
</div>
<div class="card-body related-portals"  style="text-align: center;">
+
<div class="card-body related-portals"  style="text-align: center;">
    </div>
+
<div class="tab-content">
    <div class="card-footer" style="margin-top:-20px; color: white;">
+
<div class="tab-pane active" id="related-portal-view-tab">
<div class="tab-content">
+
</div>
<div class="tab-pane active" id="related-portal-view-tab">
+
</div>
{{Section title |Title= |Formlink new={{#widget:Button link |href=#related-portal-form-tab |datatoggle=tab |class=btn btn-default |buttontext={{int: ws-edit}} }} }}<!-- end Section title -->
+
</div>
 
+
<div class="card-footer" style="margin-top:-20px; color: white;">
{{#if: {{{Related portal|}}}  
+
{{Section title |Title= |Formlink new={{#widget:Button link |href=#related-portal-form-tab |datatoggle=tab |class=btn btn-default |buttontext={{int: ws-edit}} }} }}<!-- end Section title -->
| {{#arraymap:{{{Related portal|}}}|,|x|[[x]]}}
+
{{#if: {{{Related portal|}}}  
| }}
+
| {{#arraymap:{{{Related portal|}}}|,|x|[[x]]}}
</div>
+
| }}
<div class="tab-pane" id="related-portal-form-tab">
+
</div>
{{Section title |Title= |Formlink new={{#widget:Button link |href=#related-portal-view-tab |datatoggle=tab |class=btn btn-default |buttontext={{int: ws-back}} }} }}<!-- end Section title -->
+
<div class="tab-pane" id="related-portal-form-tab">
<wsform action="addToWiki" enctype="multipart/form-data">
+
{{Section title |Title= |Formlink new={{#widget:Button link |href=#related-portal-view-tab |datatoggle=tab |class=btn btn-default |buttontext={{int: ws-back}} }} }}<!-- end Section title -->
<wsedit target="{{PAGEID}}" template="Portal" formfield="Related portal" />
+
<wsform action="addToWiki" enctype="multipart/form-data">
<wslabel>Related portal:</wslabel>
+
<wsedit target="{{PAGEID}}" template="Portal" formfield="Related portal" />
<wsfield type="textarea"  rows="1" class="form-control" name="Related portal" >{{{Related portal|}}}</wsfield>
+
<wslabel>Related portal:</wslabel>
<div class="text-right mt-3">{{#widget:Button link |href=#related-portal-view-tab |datatoggle=tab |class=btn btn-default |buttontext={{int: ws-back}} }}
+
<wsfield type="textarea"  rows="1" class="form-control" name="Related portal" >{{{Related portal|}}}</wsfield>
<wsfield type="submit" class="btn btn-primary" value="{{int: ws-save}}" /></div>
+
<div class="text-right mt-3">{{#widget:Button link |href=#related-portal-view-tab |datatoggle=tab |class=btn btn-default |buttontext={{int: ws-back}} }}
</wsform>
+
<wsfield type="submit" class="btn btn-primary" value="{{int: ws-save}}" /></div>
</div>
+
</wsform>
</div>
+
</div>
</div>
+
</div>
</div>
 
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Versie van 4 dec 2020 11:09

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

{{Related portals
|Title=
|Related portal=
}}

Edit the page to see the template text.