Sjabloon:Article: verschil tussen versies

Uit Auditpedia
Ga naar:navigatie, zoeken
 
(186 tussenliggende versies door 2 gebruikers niet weergegeven)
Regel 11: Regel 11:
 
|Title=
 
|Title=
 
|Short description=
 
|Short description=
|Picture=
 
 
|Description=
 
|Description=
|Links=
+
|External links=
 
|Author article= < comma-separated pages >  
 
|Author article= < comma-separated pages >  
 
|Portal= < comma-separated pages >  
 
|Portal= < comma-separated pages >  
|Expand=
+
|Subportal= < comma-separated pages >
|Update=
+
|Has special date=
|Other=
+
|Special date= A day in the year which is special for this article
|Request= If a new article is made you can choose to use the checkbox "Request article" if this box is checked it will appear as a task in the portal page
+
|Special date description= The description of what happened on this date
|Featured= < Optional: Yes >  
+
|Locked= < yes / no >
 
}}   
 
}}   
 
</pre>
 
</pre>
  
 
</noinclude><includeonly>__NOTITLE__<!--
 
</noinclude><includeonly>__NOTITLE__<!--
 
-->{{#vardefine: @ArticlePicture |{{#ifexist: File:picture-{{PAGEID}}.png | [[File:picture-{{PAGEID}}.png|250px|link=]] | }} }}<!--
 
-->{{#vardefine: @Link list |{{#ask: [[Class::Article]] [[Title::{{{Title|}}}]]|?Links= |link=none |mainlabel=- |format=plainlist}} }}<!--
 
  
 
-->{{#set:Class=Article
 
-->{{#set:Class=Article
 
|Title={{{Title|}}}
 
|Title={{{Title|}}}
|Author article={{{Author article|}}} |+sep=,
+
|Featured={{{Featured|False}}}
 
|Short description={{{Short description|}}}
 
|Short description={{{Short description|}}}
|Picture={{#var:@ArticlePicture}}
 
 
|Description={{{Description|}}}
 
|Description={{{Description|}}}
|Links={{{Links|}}}|+sep=\n
+
|External links={{{External links|}}}
 
|Portal={{{Portal|}}} |+sep=,
 
|Portal={{{Portal|}}} |+sep=,
|Expand={{{Expand|}}}
+
|Subportal={{{Subportal|}}} |+sep=,,
|Update={{{Update|}}}
+
|Author article={{{Author article|}}} |+sep=,
|Other={{{Other|}}}
+
|Has special date={{#if:{{{Special date|}}} |Yes |No}}
|Request={{#if:{{{Description|}}} |No|{{{Request|}}} }}
+
|Special date={{{Special date|}}}
|Featured={{#ifeq:{{{Featured|}}} |Yes |true |false
+
|Special date description={{{Special date description|}}}
}}
+
|Locked={{{Locked|False}}}
 
}}
 
}}
 
<!--
 
<!--
Regel 48: Regel 43:
 
-->{{#vardefine:@content |{{#caprint:$desc[Article][Description]||noparse,nowiki}}}}<!--
 
-->{{#vardefine:@content |{{#caprint:$desc[Article][Description]||noparse,nowiki}}}}<!--
  
-->
+
--><div class="row">
<div class="row">
 
 
<div class="col">
 
<div class="col">
 
{{Page title
 
{{Page title
 
|Title={{{Title|}}}
 
|Title={{{Title|}}}
 +
|Formlink new={{#ifsysop: {{Lock article}} }}<!--
 +
-->{{#ifeq: {{{Locked|}}} |True ||{{#widget:Link
 +
    |type=a
 +
    |href={{fullurl:Edit article|id={{PAGEID}}&return={{FULLPAGENAME}} }}
 +
    |class=btn btn-primary
 +
    |text={{Fa|edit}} {{int: ws-edit}}
 +
}} }}
 
}}
 
}}
 +
<div class="tab-content">
 +
<div class="tab-pane active" id="description-view-tab"><!--
  
{{Alert
+
-->{{#if: {{{Short description|}}}
|Text={{#if:{{{Expand|}}}|'''Things that need to be expanded on this page:'''{{{Expand|}}}| }}
+
|<div class="row">
{{#if:{{{Update||}}}|'''Things that need to be updated on this page:'''{{{Update|}}}| }}
+
<div class="col-lg-9 short-description">
{{#if:{{{Other|}}}|'''Other things that need to be done on this page:'''{{{Other|}}}| }}
+
{{{Short description|}}}
|Type=info
+
</div>
}}
 
<div class="tab-content">
 
<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={{Fa|edit}} {{int: ws-edit}}}} }}<!-- end Section title -->
 
<div class="row">
 
{{#if: {{#var:@ArticlePicture}}
 
| <div class="col-3 article-pic">{{#var:@ArticlePicture}}</div>
 
| }}
 
<div class="col short-description">{{{Short description|}}}</div>
 
 
</div>
 
</div>
 +
|}}
 
<div class="row">
 
<div class="row">
<div class="col pt-3">
+
<div class="col-lg-9">
 
{{{Description|}}}
 
{{{Description|}}}
 
</div>
 
</div>
 
</div>
 
</div>
<div class="row">
+
<div class="row">{{#if: {{{External links|}}}  
<div class="col"><h2>References</h2>
+
| <div class="col-lg-9 pb-3"><h2>{{ucfirst:{{int: ws-external-links}} }}</h2>  
{{reflist}}
+
{{{External links|}}}</div>
</div>
 
</div>
 
 
 
<div class="row">{{#if: {{{Links|}}}
 
| <div class="col"><h2>{{int: ws-external-links}}</h2>
 
<ul>{{#arraymap:{{{Links|}}}|\n|@@@|<li>[@@@]</li> |}}</ul></div>
 
 
| }}
 
| }}
 
</div>
 
</div>
 
+
<div class="row">{{#if: {{{Special date|}}}
<div class="row">{{#if: {{{Author article|}}}
+
| <div class="col-lg-9"><h2>{{ucfirst:{{int: ws-special date}} }}</h2>
| <div class="col m-3 p-2">Author article: {{#arraymap:{{{Author article|}}}|,|x|[[x]]}}</div>
+
{{#time:d F|{{{Special date|}}}|nl}}<br>
 +
{{{Special date description|}}}</div>
 
| }}
 
| }}
 +
</div>
 +
<div class="text-right">
 +
{{Show history}}
 
</div>
 
</div>
 
 
<div class="row">{{#if: {{{Portal|}}}  
 
<div class="row">{{#if: {{{Portal|}}}  
| <div class="col m-3 p-2 portal-show">{{int: ws-portal}}: {{#arraymap:{{{Portal|}}}|,|x|[[x]]}}</div>
+
| <div class="col-12 m-3 p-3 portal-show">{{ucfirst: {{int: ws-portal}} }}: {{#caamap:{{{Portal|}}}|,|x|[[x]]}}</div>
 +
| }}{{#if: {{{Subportal|}}}
 +
| <div class="col-12 m-3 p-3 portal-show">{{ucfirst: {{int: ws-subportal}} }}: {{#caamap:{{{Subportal|}}}|,,|x|[[x]]}}</div>
 
| }}
 
| }}
 
</div>
 
</div>
  
 
</div>
 
</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={{int: ws-back}} }} }}<!-- end Section title -->
 
<wsform action="addToWiki" enctype="multipart/form-data">
 
 
<wsedit target="{{PAGEID}}" template="Article" formfield="Picture" />
 
<wslabel><h2>{{int: ws-image}}:</h2>Upload an image in png format as the main picture of the article:</wslabel>
 
<wsfield verbose_id="preview123" type="file" id="picture-upload-{{PAGEID}}" name="picture" target="picture-{{PAGEID}}.png" class="form-control" pagecontent="Article main picture" use_label="true" multiple="multiple" />
 
 
<wsedit target="{{PAGEID}}" template="Article" formfield="Short description" />
 
<wslabel><h2>{{int: ws-preface}}:</h2></wslabel>
 
<wsfield type="textarea"  rows="4" class="form-control" name="Short description" >{{{Short description|}}}</wsfield>
 
 
<wsedit target="{{PAGEID}}" template="Article" formfield="Description" />
 
<wslabel><h2>Content:</h2></wslabel>
 
<wsfield type="textarea" name="Description" class="tinymce" >{{#var:@content}}</wsfield>
 
 
<wsedit target="{{PAGEID}}" template="Article" formfield="Links" />
 
<wslabel><h2>{{int: ws-external-links}}:</h2><br>Please insert full urls separated by enters.<br>Name the link by adding a space and typing text afterwards</wslabel>
 
<wsfield name="Links" type="textarea" class="form-control" placeholder="Please insert full urls separated by enters.">{{#arraymap:{{#var:@Link list}}|,|@@@|{{#widget:Plain |text=@@@}}|\n}}</wsfield>
 
 
<wsedit target="{{PAGEID}}" template="Article" formfield="Portal" />
 
<wslabel><h2>{{int: ws-portal}}:</h2></wslabel>
 
<wsfield type="textarea"  rows="2" class="form-control" name="Portal" >{{{Portal|}}}</wsfield>
 
 
<wsedit target="{{PAGEID}}" template="Article" formfield="Author article" />
 
<wslabel><h2>Author article:</h2></wslabel>
 
<wsfield type="textarea"  rows="2" class="form-control" name="Author article" >{{{Author article|}}}</wsfield>
 
 
<div class="text-right mt-3">{{#widget:Button link |href=#description-view-tab |datatoggle=tab |class=btn btn-default |buttontext={{int: ws-back}} }}
 
<wsfield type="submit" class="btn btn-primary" value="{{int: ws-save}}" /></div>
 
</wsform>
 
 
</div>
 
</div>
 
</div>
 
</div>
 
</div>
 
</div>
</div><!-- end of .col-md-4 and .row
 
  
--></includeonly>
+
</includeonly>

Huidige versie van 23 apr 2022 om 15:52


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

{{Article
|Title=
|Short description=
|Description=
|External links=
|Author article= < comma-separated pages > 
|Portal= < comma-separated pages > 
|Subportal= < comma-separated pages > 
|Has special date=
|Special date= A day in the year which is special for this article
|Special date description= The description of what happened on this date
|Locked= < yes / no >
}}