Template:Article: Difference between revisions

From Protoball
Jump to navigation Jump to search
(pdf)
(Article Template: Text)
 
(31 intermediate revisions by the same user not shown)
Line 5: Line 5:
{{Article
{{Article
|Title=
|Title=
|Version=
|Article Category=
|Article Category=
|Article Tags=
|Article Tags=
Line 14: Line 15:
|Sort Order=
|Sort Order=
|Document=
|Document=
|Document Type=
|Text=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>{{Article Box|{{{Article Category}}}}}{{Subtitle|[[Description::{{{Description|}}}]]}}<div class="center">by {{#arraymap:{{{Digger|}}}|,|x|[[Digger::x]]}}, {{#time: F Y|{{{Article Date}}}}}</div>{{#if: {{{Related Pages|}}}|<div class="center">Related: {{#arraymap:{{{Related Pages|}}}|,|x|[[Related Pages::x]]}}</div>}}{{#set:Title={{{Title}}}|Article Category={{{Article Category}}}|{{#arraymap:{{{Article Tags|}}}|,|x|[[Article Tags::x]]}}|Is Featured={{{Is Featured|}}}|Article Date={{{Article Date}}}|Sort Order={{{Sort Order|}}}|Document={{{Document|}}}|Document Type={{{Document Type|}}}}}
</noinclude><includeonly>{{#default_form:Article}}{{#ifeq:{{{Article Category|}}}|New England Roots|{{New England Roots Project Box}}|{{#ifeq:{{{Article Category|}}}|Original Analytics|{{Original Works Box|Digger={{#arraymap:{{{Digger|}}}|,|x|x}}}}|{{#ifeq:{{{Article Category|}}}|Rule Sets|{{Rule Sets Box}}|{{Article Box|{{{Article Category}}}}}}}}}}}{{Subtitle|[[Description::{{{Description|}}}]]}}<div class="center">by {{#arraymap:{{{Digger|}}}|,|x|[[Digger::x]]}}, {{#time: F Y|{{{Article Date}}}}}</div>{{#if: {{{Related Pages|}}}|<div class="center">Related: {{#arraymap:{{{Related Pages|}}}|,|x|[[Related Pages::x]]}}</div>}}{{#if: {{{Version|}}}|<div class="center">Version {{{Version}}} {{#formlink:form=Article With Version|link text=Add another version|query string=Article[Title]={{{Title|}}}&Article[Article Category]={{{Article Category|}}}&Article[Digger]={{{Digger|}}}&Article[Description]={{{Description|}}}&Article[Article Date]={{{Article Date|}}}&Article[Related Pages:]={{{Related Pages:|}}}}}</div><div class="center smaller">{{#ask:[[Title::{{{Title|}}}]]|intro=
{{#if:{{{Document|}}}|<div class="download_document_wrapper">[[Media:{{{Document|}}}|<i class="icon-download-alt"></i> Download Document]]}}</div>
Versions: }}</div>}}{{#set:Title={{{Title}}}|Version={{{Version}}}|Article Category={{{Article Category}}}|Is Featured={{{Is Featured|}}}|Article Date={{{Article Date}}}|Sort Order={{{Sort Order|}}}|Document={{{Document|}}}|Document Type={{{Document Type|}}}|Text={{{Text|}}}}}
{{#ifeq:{{{Document Type|}}}|pdf|{{#widget:Pdf|url={{filepath:{{{Document|}}}}}}}}}
{{#if:{{{Document|}}}|<div class="download_document_wrapper">[[Media:{{{Document|}}}|<i class="icon-download-alt"></i> Download Document]]</div>
{{#widget:Pdf|url={{filepath:{{{Document|}}}}}}}{{#set:Document={{{Document|}}}}}}}
{{Discussion Below}}
{{Discussion Below}}
[[Category:Articles]][[Category:{{{Article Category}}}]]
[[Category:Articles]][[Category:{{{Article Category}}}]]
<div style="display:none">
{{#arraymap:{{{Article Tags|}}}|,|x|[[Article Tags::x]]}}
</div>
<div class="line_numbers">
</includeonly>
</includeonly>

Latest revision as of 15:19, 27 February 2021

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

{{Article
|Title=
|Version=
|Article Category=
|Article Tags=
|Is Featured=
|Description=
|Digger=
|Article Date=
|Related Pages=
|Sort Order=
|Document=
|Text=
}}

Edit the page to see the template text.