Sjabloon:Article: verschil tussen versies

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

Versie van 4 nov 2020 20:59


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

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