Sjabloon:Related portals: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
k (Wijzigingen door Gemma (Overleg) hersteld tot de laatste versie door Admin)
Label: Terugdraaiing
Regel 20: Regel 20:
 
<div class="tab-pane active" id="related-portal-view-tab">
 
<div class="tab-pane active" id="related-portal-view-tab">
 
{{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 -->
 
{{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 -->
 
 
{{#if: {{{Related portal|}}}  
 
{{#if: {{{Related portal|}}}  
 
| {{#arraymap:{{{Related portal|}}}|,|x|[[x]]}}
 
| {{#arraymap:{{{Related portal|}}}|,|x|[[x]]}}
 
| }}
 
| }}
 
</div>
 
</div>
<div class="tab-pane" id="related-portal-form-tab">
+
      <div class="single-post-content-wrapper">
{{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 -->
+
{{#if: {{CURRENTLOGGEDUSER}} |
<wsform action="addToWiki" enctype="multipart/form-data">
+
<div class="card-footer text-muted" style="">
<wsedit target="{{PAGEID}}" template="Portal" formfield="Related portal" />
+
{{Section title |Title= |Formlink new={{#widget:Link|type=a|href={{fullurl:Create new portal|id={{PAGEID}}&return={{FULLPAGENAME}} }}|class=button portal-button |text={{Fa|edit}} {{int: ws-edit}} }} }}<!-- end Section title -->
<wslabel>Related portal:</wslabel>
+
</div>
<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 btn-default |buttontext={{int: ws-back}} }}
+
</div>
<wsfield type="submit" class="btn btn-primary" value="{{int: ws-save}}" /></div>
 
</wsform>
 
</div>
 
 
</div>
 
</div>
 
</div>
 
</div>

Versie van 4 dec 2020 14:49

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.