Sjabloon:Article: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
Regel 24: Regel 24:
 
|Title={{{Title|}}}
 
|Title={{{Title|}}}
 
|Subtitle={{{Subtitle|}}}
 
|Subtitle={{{Subtitle|}}}
 +
|Content={{{Content|}}}
 
|External links={{{External links|}}}
 
|External links={{{External links|}}}
 
|References={{{References|}}}
 
|References={{{References|}}}
|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="row">
 
<div class="col">
 
<div class="col">
 
{{Page title
 
{{Page title
 
|Title={{{Title|}}}
 
|Title={{{Title|}}}
 
}}
 
}}
<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 -->
 
{{{Subtitle|}}}
 
{{{Content|}}}
 
{{{External links|}}}
 
{{{References|}}}
 
{{{Belongs to portal|}}}
 
{{{Archived|}}}
 
</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" />
 
<wslabel>Content</wslabel>
 
<wsfield type="textarea" name="Content" class="tinymce" >{{{Content|}}}</wsfield>
 
  
<wsedit target="{{PAGEID}}" template="Article" formfield="Subtitle" />
+
{{Infocard
<wslabel>Subtitle</wslabel>
+
|Title={{{Title|}}}
<wsfield type="text" name="Subtitle" class="form-control row-formitemresponsive" >{{{Subtitle|}}}</wsfield>
+
|Viewtab content={{Item responsive |Cols=4-8
 
+
|1=Subtitle
<wsedit target="{{PAGEID}}" template="Article" formfield="External links" />
+
|2={{{Subtitle|}}}
<wslabel>External links</wslabel>
+
}}
<wsfield type="url" name="External links" class="form-control row-formitemresponsive" >{{{External links|}}}</wsfield>
+
{{Item responsive |Cols=4-8
 
+
|1=Content
<wsedit target="{{PAGEID}}" template="Article" formfield="References" />
+
|2={{{Content|}}}
<wslabel>References</wslabel>
+
}}
<wsfield type="text" name="References" class="form-control row-formitemresponsive" >{{{References|}}}</wsfield>
+
{{Item responsive |Cols=4-8
 
+
|1=External links
<wsedit target="{{PAGEID}}" template="Article" formfield="Portal" />
+
|2={{{External links|}}}
<wslabel>Portal</wslabel>
+
}}
<wsfield type="text" name="Belongs to portal" class="form-control row-formitemresponsive" >{{{Belongs to portal|}}}</wsfield>
+
{{Item responsive |Cols=4-8
 
+
|1=References
<div class="text-right mt-3">{{#widget:Button link |href=#content-view-tab |datatoggle=tab |class=btn btn-default |buttontext=Back }}
+
|2={{{References|}}}
<wsfield type="submit" class="btn btn-primary" value="Save" /></div>
+
}}
</wsform>
+
{{Item responsive |Cols=4-8
</div>
+
|1=Belongs to portal
</div>
+
|2={{{Belongs to portal|}}}
 +
}}
 +
|Formtab content={{Article form
 +
|Page={{FULLPAGENAME}}
 +
|Subtitle={{{Subtitle|}}}
 +
|Content={{{Content|}}}
 +
|External links={{{External links|}}}
 +
|References= {{{References|}}}
 +
|Belongs to portal= {{{Belongs to portal|}}}
 +
|Archived={{{Archived|}}}
 +
}}
 +
|Viewtab id=view-tab
 +
|Formtab id=form-tab
 +
}}
 
</div>
 
</div>
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Versie van 4 nov 2020 14:47


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

{{Article
|Title=
|Subtitle=
|Content=
|External links=
|References=
|Belongs to portal=
|Archived= < Optional: Yes > 
}}