Sjabloon:Article: verschil tussen versies
Uit Auditpedia
Regel 10: | Regel 10: | ||
{{Article | {{Article | ||
|Title= | |Title= | ||
− | |||
− | |||
− | |||
− | |||
|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|}}} | ||
− | | | + | |Description={{{Description|}}} |
− | |||
− | |||
− | |||
|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 | + | <div class="col"> |
{{Page title | {{Page title | ||
|Title={{{Title|}}} | |Title={{{Title|}}} | ||
}} | }} | ||
− | + | <div class="tab-content"> | |
− | <div class=" | + | <div class="tab-pane active" id="description-view-tab"> |
− | {{ | + | {{Section title |Title= |Formlink new={{#widget:Button link |href=#description-form-tab |datatoggle=tab |class=btn btn-default |buttontext=Edit }} }}<!-- end Section title --> |
− | | | + | {{{Description|}}} |
− | | | + | </div> |
− | | | + | <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 --> |
− | + | <wsform action="addToWiki"> | |
− | + | <wsedit target="{{PAGEID}}" template="Article" formfield="Description" /> | |
− | + | <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 }} | |
− | + | <wsfield type="submit" class="btn btn-primary" value="Save" /></div> | |
− | | | + | </wsform> |
− | | | ||
− | |||
− | |||
− | | | ||
− | | | ||
− | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
</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 > }}