Sjabloon:Related portals: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
Regel 18: Regel 18:
 
<div class="card-body related-portals"  style="text-align: center;">
 
<div class="card-body related-portals"  style="text-align: center;">
 
<div class="tab-content">
 
<div class="tab-content">
 +
 
<div class="tab-pane active" id="related-portal-view-tab">
 
<div class="tab-pane active" id="related-portal-view-tab">
 +
{{#if: {{CURRENTLOGGEDUSER}} |
 
{{Section title |Title= |Formlink new={{#widget:Button link |href=#related-portal-form-tab |datatoggle=tab |class=btn portal-button |buttontext={{Fa|edit}} {{int: ws-edit}}  }} }}<!-- end Section title -->
 
{{Section title |Title= |Formlink new={{#widget:Button link |href=#related-portal-form-tab |datatoggle=tab |class=btn portal-button |buttontext={{Fa|edit}} {{int: ws-edit}}  }} }}<!-- end Section title -->
 
 
{{#if: {{{Related portal|}}}  
 
{{#if: {{{Related portal|}}}  
 
| {{#arraymap:{{{Related portal|}}}|,|x|[[x]]}}
 
| {{#arraymap:{{{Related portal|}}}|,|x|[[x]]}}
 
| }}
 
| }}
 +
| {{#if: {{{Related portal|}}}
 +
| {{#arraymap:{{{Related portal|}}}|,|x|[[x]]}}
 +
| }}
 +
}}
 
</div>
 
</div>
 +
 
<div class="tab-pane" id="related-portal-form-tab">
 
<div class="tab-pane" id="related-portal-form-tab">
 
{{Section title |Title= |Formlink new={{#widget:Button link |href=#related-portal-view-tab |datatoggle=tab |class=btn portal-button  |buttontext={{int: ws-back}} }} }}<!-- end Section title -->
 
{{Section title |Title= |Formlink new={{#widget:Button link |href=#related-portal-view-tab |datatoggle=tab |class=btn portal-button  |buttontext={{int: ws-back}} }} }}<!-- end Section title -->
 
<wsform action="addToWiki" enctype="multipart/form-data">
 
<wsform action="addToWiki" enctype="multipart/form-data">
 
<wsedit target="{{PAGEID}}" template="Portal" formfield="Related portal" />
 
<wsedit target="{{PAGEID}}" template="Portal" formfield="Related portal" />
<wslabel>Enter 1 or more Related portals, separating them by comma:</wslabel>
+
<wslabel>Related portal:</wslabel>
 
<wsfield type="textarea"  rows="1" class="form-control" name="Related portal" >{{{Related portal|}}}</wsfield>
 
<wsfield type="textarea"  rows="1" class="form-control" name="Related portal" >{{{Related portal|}}}</wsfield>
 
<div class="text-right mt-3">{{#widget:Button link |href=#related-portal-view-tab |datatoggle=tab |class=btn portal-button|buttontext={{int: ws-back}} }}
 
<div class="text-right mt-3">{{#widget:Button link |href=#related-portal-view-tab |datatoggle=tab |class=btn portal-button|buttontext={{int: ws-back}} }}

Versie van 6 dec 2020 19:38

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.