Sjabloon:Article: verschil tussen versies
Uit Auditpedia
Regel 4: | Regel 4: | ||
|Short description=Template for Article pages | |Short description=Template for Article pages | ||
}} | }} | ||
+ | |||
This is the '''Article''' template. It should be called in the following format: | This is the '''Article''' template. It should be called in the following format: | ||
Regel 9: | Regel 10: | ||
{{Article | {{Article | ||
|Title= | |Title= | ||
+ | |Content= | ||
|Belongs to portal= | |Belongs to portal= | ||
|Archived= < Optional: Yes > | |Archived= < Optional: Yes > | ||
Regel 18: | Regel 20: | ||
-->{{#set:Class=Article | -->{{#set:Class=Article | ||
|Title={{{Title|}}} | |Title={{{Title|}}} | ||
+ | |Content={{{Content|}}} | ||
|Belongs to portal={{{Belongs to portal|}}} | |Belongs to portal={{{Belongs to portal|}}} | ||
|Archived= {{#ifeq:{{{Archived|}}} |Yes |true |false}} | |Archived= {{#ifeq:{{{Archived|}}} |Yes |true |false}} | ||
− | }} | + | }} |
− | + | <div class="row"> | |
− | |||
− | |||
− | |||
<div class="col"> | <div class="col"> | ||
{{Page title | {{Page title | ||
|Title={{{Title|}}} | |Title={{{Title|}}} | ||
}} | }} | ||
− | </div> | + | <div class="tab-content"> |
− | < | + | <div class="tab-pane active" id="content-view-tab"> |
− | + | {{Section title |Title= |Formlink new={{#widget:Button link |href=#content-form-tab |datatoggle=tab |class=btn btn-default |buttontext=Edit }} }}<!-- end Section title --> | |
− | --></includeonly> | + | {{{Content|}}} |
+ | </div> | ||
+ | <div class="tab-pane" id="content-form-tab"> | ||
+ | {{Section title |Title= |Formlink new={{#widget:Button link |href=#content-view-tab |datatoggle=tab |class=btn btn-default |buttontext=Back }} }}<!-- end Section title --> | ||
+ | <wsform action="addToWiki"> | ||
+ | <wsedit target="{{PAGEID}}" template="Article" formfield="Content" /> | ||
+ | <wsfield type="textarea" name="Content" class="tinymce" >{{{Content|}}}</wsfield> | ||
+ | <div class="text-right mt-3">{{#widget:Button link |href=#content-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> | ||
+ | </includeonly> |
Versie van 4 nov 2020 09:49
This is the Article template. It should be called in the following format:
{{Article |Title= |Content= |Belongs to portal= |Archived= < Optional: Yes > }}