Difference between pages "Template:News" and "Form:News"

(Difference between pages)
 
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
Use like so:
+
__NOTOC__
  
<pre>
+
== Create a News Item ==
{{News
+
|Summary=Test News Item
+
|News Category=General
+
|Author=Drobbins
+
|Publication Status=Draft
+
|Publication Date=2014/10/16
+
|Icon=File:foobar.jpg
+
}}
+
</pre>
+
  
 +
{{#forminput:form=News|query string=namespace=News}}
 
</noinclude><includeonly>
 
</noinclude><includeonly>
<div class="container" style="margin-top: 20px;"><div class="row"><div class="col-xs-12">
+
{{{for template|News}}}
= {{PAGENAME}} =
+
<span style="font-size: 1.5em; color: #888; font-variant: small-caps;">News: {{{News Category}}}</span>
+
{{#ifeq:{{{Publication Status|}}|Draft|{{NotYetPublished}}}}{{#set:Summary={{{Summary|}}}|News Category={{{News Category|}}}|Publication Status={{{Publication Status|}}}|Icon={{{Icon|}}}|Publication Date={{{Publication Date|}}}}}{{#arraymap:{{{Author|}}}|,|x|{{#set:Author=User:x|Gravatar MD5={{#show: User:x | ?Gravatar MD5}}}}}}
+
__NOTITLE__
+
</div></div><div class="row"><div class="col-xs-12 col-sm-4 col-sm-push-8">
+
 
{{TableStart}}
 
{{TableStart}}
<tr><th colspan=2 class="active">Information</th></tr>
+
<tr><th class="active">Summary</th><td>{{{field|Summary|input type=textarea|placeholder=Specify a short summary of the news item. One or two sentences max.}}}</td></tr>
<tr><th class="active">Date</th><td>{{{Publication Date|}}}</td></tr>
+
<tr><th class="active">Category</th><td>{{{field|News Category|input type=dropdown|values=Security,Infrastructure,General,Development,Packages}}}</td></tr>
<tr><th class="active">Category</th><td>{{{News Category|}}}</td></tr>
+
<tr><th class="active">Author</th><td>{{{field|Author|autocomplete on namespace=User|size=100|placeholder=Specify username|default=current user}}}</td></tr>
<tr><th class="active">Author Bio</th><td>{{#show: User:{{{Author|}}} | ?Bio }}</td></tr>
+
<tr><th class="active">Publication Status</th><td>{{{field|Publication Status|input type=dropdown|values=Draft,Published|default=Draft}}}</td></tr>
 +
<tr><th class="active">Publication Date</th><td>{{{field|Publication Date|input type=datepicker|default=now}}}</td></tr>
 +
<tr><th class="active">Icon</th><td>{{{field|Icon|uploadable|placeholder=Image file. Leave blank to use your gravatar|values from namespace=File|size=100}}}</td></tr>
 
{{TableEnd}}
 
{{TableEnd}}
</div><div class="col-xs-12 col-sm-8 col-sm-pull-4">
+
{{{end template}}}
</includeonly>
+
== Documentation ==
 +
 
 +
Enter news information below:
 +
 
 +
{{{standard input|free text|rows=30}}}
 +
 
 +
{{{for template|NewsFooter}}}
 +
{{{end template}}}
 +
 
 +
{{{standard input|summary}}}
 +
 
 +
{{{standard input|minor edit}}} {{{standard input|watch}}}
 +
 
 +
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}

Revision as of 04:23, October 20, 2014


Create a News Item