Sjabloon:Related portals: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
 
(24 tussenliggende versies door 2 gebruikers niet weergegeven)
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" style="background-color: #00A184; color: white;">
<h4>{{{Title|}}}</h4>
+
      <h4>{{{Title|}}}</h4>
</div>
+
</div>
{{#if: {{CURRENTLOGGEDUSER}} |
+
<div class="card-body related-portals" style="text-align: center;">
<div class="card-body" style="background-color: white; height: 40px; overflow: hidden;">
+
<div class="tab-content">
{{{Improve portal content|}}}</div>
+
 
|<div class="card-body" style="background-color: white; height: 100px;">
+
<div class="tab-pane active" id="related-portal-view-tab">
{{{Improve portal content|}}}
+
{{#if: {{CURRENTLOGGEDUSER}} |
</div>
+
{{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|}}}  
<div class="tab-content">
+
| {{#caamap:{{{Related portal|}}}|,|x|[[x]]}}
<div class="tab-pane active" id="related-portal-view-tab">
+
| }}
{{#if: {{{Related portal|}}}  
+
| {{#if: {{{Related portal|}}}
| {{#arraymap:{{{Related portal|}}}|,|x|[[x]]}}
+
| {{#caamap:{{{Related portal|}}}|,|x|[[x]]}}
| }}
+
| Geen gerelateerde portalen}}
</div>
+
}}
<div class="single-post-content-wrapper">
+
</div>
{{#if: {{CURRENTLOGGEDUSER}} |
+
 
<div class="card-footer text-muted" style="">
+
<div class="tab-pane" id="related-portal-form-tab">
{{Section title |Title= |Formlink new={{#widget:Link|type=a|href={{fullurl:Create related portal|id={{PAGEID}}&return={{FULLPAGENAME}} }}|class=button portal-button |text={{Fa|edit}} {{int: ws-edit}} }} }}<!-- 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 -->
</div>
+
<wsform action="addToWiki" enctype="multipart/form-data">
}}
+
<wsedit target="{{PAGEID}}" template="Portal" formfield="Related portal" />
</div>
+
<wslabel>Enter related portals, separated by comma:</wslabel>
</div>
+
<wsfield type="textarea"  rows="1" class="form-control" name="Related portal" >{{{Related portal|}}}</wsfield>
</div>
+
<div class="text-right mt-3">{{#widget:Button link |href=#related-portal-view-tab |datatoggle=tab |class=btn portal-button|buttontext={{int: ws-back}} }}
 +
<wsfield type="submit" class="btn btn-primary-green" value="{{int: ws-save}}" /></div>
 +
</wsform>
 +
</div>
 +
</div>
 +
</div>
 +
</div>
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Huidige versie van 7 mrt 2022 om 16: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.