Sjabloon:Portal: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
(Created page with "<noinclude>{{Managed |Version=1.0 |Version notes=1.0 - First managed version |Short description=Template for Portal pages }} This is the '''Portal''' template. It should be c...")
 
 
(132 tussenliggende versies door 2 gebruikers niet weergegeven)
Regel 10: Regel 10:
 
{{Portal
 
{{Portal
 
|Title=
 
|Title=
|Tasks=
+
|Improve portal title=Title of 'improve portal panel'
 +
|Improve portal content=Content of 'improve portal panel'
 +
|Portal= < comma-separated pages >
 +
|Is subportal= < optional: Yes >
 
}}
 
}}
 
</pre>
 
</pre>
Regel 18: Regel 21:
 
-->{{#set:Class=Portal
 
-->{{#set:Class=Portal
 
|Title={{{Title|}}}
 
|Title={{{Title|}}}
|Tasks={{{Tasks|}}}
+
|Improve portal title={{{Improve portal title|}}}
 +
|Improve portal content={{{Improve portal content|}}}
 +
|Portal={{{Portal|}}} |+sep=,
 +
|Has category={{{Has category|}}}
 +
|Is subportal={{#if:{{{Portal|}}} |Yes |No}}
 +
|Related portal={{{Related portal|}}} |+sep=,
 
}}<!--
 
}}<!--
 +
 +
--><div class="portal-container">
 +
<div class="row mb-2"><div class="col">
 +
{{Page title with button
 +
  |Title=Portaal - {{{Title|}}}
 +
  |Displaytitle={{{Title|}}}
 +
  |Formlink={{#ifsysop:{{#widget:Button link
 +
  |class=btn btn-default orange-button
 +
  |href=#subportal-form
 +
  |datatoggle=collapse
 +
  |buttontext={{Fa|plus}} {{int: ws-new-subportal}}
 +
  }} }}
 +
}}
 +
</div></div><!--
  
 
--><div class="row">
 
--><div class="row">
<div class="col">
+
<div class="col-md-8 m-auto">
{{Page title
+
<div id="subportal-form" class="collapse infocard mt-4 mb-4">
|Title={{{Title|}}}
+
<div class="infocard__heading">Schrijf de naam van het subportaal in het formulier hieronder</div>
 +
{{Subportal form
 +
|Portal={{FULLPAGENAME}}
 +
}}
 +
</div></div></div><!--
 +
 
 +
--><div class="row"><div class="col">
 +
{{Portal subportals
 +
|Card title=Subportalen
 
}}
 
}}
 +
</div></div><!--
  
<div class="tab-content">
+
--><div class="row"><div class="col">
<div class="tab-pane active" id="tasks-view-tab">
+
<h2 style="color:#2c446a;">Subportalen uitgelicht</h2>
{{Section title |Title= |Formlink new={{#widget:Button link |href=#tasks-form-tab |datatoggle=tab |class=btn btn-default |buttontext=Edit }} }}<!-- end Section title -->
+
<div class="row subportal-cards">
{{{Tasks|}}}<br>
+
{{#ask: [[Class::Subportal]] [[Portal::{{FULLPAGENAME}}]]
 +
|?=Page
 +
|?Title
 +
|format=template
 +
|template=Show subportal as card
 +
|Named args=Yes
 +
|link=none
 +
}}
 
</div>
 
</div>
<div class="tab-pane" id="tasks-form-tab">
+
</div></div><!--
{{Section title |Title= |Formlink new={{#widget:Button link |href=#tasks-view-tab |datatoggle=tab |class=btn btn-default |buttontext=Back }} }}<!-- end Section title -->
+
 
<wsform action="addToWiki">
 
  
<wsedit target="{{PAGEID}}" template="Portal" formfield="Tasks" />
 
<wslabel>Tasks:</wslabel>
 
<wsfield type="textarea"  rows="1" class="form-control" name="Tasks" >{{{Tasks|}}}</wsfield>
 
  
 +
// --------------------------------- oud? deprecated?
 +
{{Improve portal content
 +
|Improve portal title=Improve portal content
 +
|Improve portal content={{{Improve portal content|}}}
 +
}}
  
<div class="text-right mt-3">{{#widget:Button link |href=#tasks-view-tab |datatoggle=tab |class=btn btn-default |buttontext=Back }}
+
<!--Related portals Template
<wsfield type="submit" class="btn btn-primary" value="Save" /></div>
+
{{Related portals
</wsform>
+
|Title=Related portals
</div>
+
|Related portal={{#caamap:{{{Related portal|}}}|,|x|x}}
 +
}}
 +
<!--end template Related portals-->
 
</div>
 
</div>
</div>
+
</includeonly>
</div><!-- end of .col-md-4 and .row
 
 
 
--></includeonly>
 

Huidige versie van 14 apr 2022 om 14:12


This is the Portal template. It should be called in the following format:

{{Portal
|Title=
|Improve portal title=Title of 'improve portal panel'
|Improve portal content=Content of 'improve portal panel'
|Portal= < comma-separated pages > 
|Is subportal= < optional: Yes >
}}