This is the "Generate sidebar template code" template. It should be called in the following format:

{{Generate sidebar template code
|Class= (text) class for which a "Class definition" page exists
}}

Test

Some use of "" in your query was not closed by a matching "".Some use of "" in your query was not closed by a matching "".

<noinclude>

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

<pre>
{{}}
</pre>

</noinclude><includeonly><!--

-->{{#vardefine:@allow sidebar edit |{{#ifingroup:user |{{#if:{{#urlget:veaction}}{{#urlget:action}}||yes}} }} }}<!--

--><div class="tab-content">
<div class="card tab-pane fade show active" id="sidebar-view">
<div class="card-header">{{#ifeq:{{#var:@allow sidebar edit}} |yes |<span style="float:right">{{#widget:Button link  |class=btn btn-secondary |buttontext=Edit |onclick=ShowTab('#sidebar-edit') }}</span>}}
<b class="d-block">{{#caprint:$base[Base properties][Class]}}</b>
{{#caprint:$base[Base properties][Title]}}
</div><!-- end of .card-header -->
<div class="card-body">

</div><!-- end of .card-body -->
</div><!-- end of .card 

-->{{#ifeq:{{#var:@allow sidebar edit}} |yes |<wsform action="addToWiki" class="tab-pane fade" id="sidebar-edit">
<div class="card"><!--

// wsedits for base properties
--><!--

// wscreate or wsedits for page properties
// use casize to check if the slot already exists. Then wsedit, else wscreate.
-->{{#if:{{#casize:$class}}
|
|<wscreate mwwrite="{{FULLPAGENAME}}" mwtemplate="" mwslot="ws-class-props" mwfields="" />
}}<!-- end of #if  -->

<div class="card-header"><span style="float:right">{{#widget:Button link  |class=btn btn-secondary |buttontext=Close |onclick=ShowTab('#sidebar-view') }}</span>
<b class="d-block">{{#caprint:$base[Base properties][Class]}}</b>
{{#caprint:$base[Base properties][Title]}}
</div><!-- end of .card-header -->
<div class="card-body">


<div class="text-right">
{{#widget:Button link  |class=btn btn-secondary |buttontext=Close |onclick=ShowTab('#sidebar-view') }}
<wsfield type="submit" value="Save" class="btn btn-primary" />
</div>
</div><!-- end of .card-body -->
</div><!-- end of .card -->
</wsform>|}}<!-- end of #ifeq @allow sidebar edit == yes -->
</div><!-- end of .tab-content 

--></includeonly>