Sjabloon:Article: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
Regel 10: Regel 10:
 
{{Article
 
{{Article
 
|Title=
 
|Title=
|Subtitle=
 
|Content=
 
|External links=
 
|References=
 
 
|Belongs to portal=
 
|Belongs to portal=
 +
|Description=
 
|Archived= < Optional: Yes >  
 
|Archived= < Optional: Yes >  
 
}}
 
}}
Regel 23: Regel 20:
 
-->{{#set:Class=Article
 
-->{{#set:Class=Article
 
|Title={{{Title|}}}
 
|Title={{{Title|}}}
|Subtitle={{{Subtitle|}}}
+
|Description={{{Description|}}}
|Content={{{Content|}}}
 
|External links={{{External links|}}}
 
|References={{{References|}}}
 
 
|Belongs to portal={{{Belongs to portal|}}}
 
|Belongs to portal={{{Belongs to portal|}}}
 
|Archived= {{#ifeq:{{{Archived|}}} |Yes |true |false}}
 
|Archived= {{#ifeq:{{{Archived|}}} |Yes |true |false}}
 
}}<!--
 
}}<!--
  
 +
 +
 +
##################################
 +
###      Left column          ###
 +
##################################
 
--><div class="row">
 
--><div class="row">
<div class="col-md-8">
+
<div class="col">
 
{{Page title
 
{{Page title
 
|Title={{{Title|}}}
 
|Title={{{Title|}}}
 
}}
 
}}
  
 
+
<div class="tab-content">
<div class="col">
+
<div class="tab-pane active" id="description-view-tab">
{{Infocard
+
{{Section title |Title= |Formlink new={{#widget:Button link |href=#description-form-tab |datatoggle=tab |class=btn btn-default |buttontext=Edit }} }}<!-- end Section title -->
|Viewtab content={{Item responsive |Cols=4-8
+
{{{Description|}}}
|1=Subtitle
+
</div>
|2={{{Subtitle|}}}
+
<div class="tab-pane" id="description-form-tab">
}}
+
{{Section title |Title= |Formlink new={{#widget:Button link |href=#description-view-tab |datatoggle=tab |class=btn btn-default |buttontext=Back }} }}<!-- end Section title -->
{{Item responsive |Cols=4-8
+
<wsform action="addToWiki">
|1=Content
+
<wsedit target="{{PAGEID}}" template="Article" formfield="Description" />
|2={{{Content|}}}
+
<wsfield type="textarea" name="Description" class="tinymce" >{{{Description|}}}</wsfield>
}}
+
<div class="text-right mt-3">{{#widget:Button link |href=#description-view-tab |datatoggle=tab |class=btn btn-default |buttontext=Back }}
{{Item responsive |Cols=4-8
+
<wsfield type="submit" class="btn btn-primary" value="Save" /></div>
|1=External links
+
</wsform>
|2={{{External links|}}}
 
}}
 
{{Item responsive |Cols=4-8
 
|1=References
 
|2={{{References|}}}
 
}}
 
{{Item responsive |Cols=4-8
 
|1=Belongs to portal
 
|2={{{Belongs to portal|}}}
 
}}
 
|Formtab content={{Article form
 
|Subtitle={{{Subtitle|}}}
 
|Content={{{Content|}}}
 
|External links={{{External links|}}}
 
|References= {{{References|}}}
 
|Belongs to portal= {{{Belongs to portal|}}}
 
}}
 
|Viewtab id=view-tab
 
|Formtab id=form-tab
 
}}
 
 
</div>
 
</div>
 
</div>
 
</div>
 
</div>
 
</div>
</includeonly>
+
</div><!-- end of .col-md-4 and .row
 +
 
 +
--></includeonly>

Versie van 4 nov 2020 19:29


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

{{Article
|Title=
|Belongs to portal=
|Description=
|Archived= < Optional: Yes > 
}}