Sjabloon:Article: verschil tussen versies

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

Versie van 5 nov 2020 07:25


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

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