Difference between pages "Widget:NewsDisplay" and "Form:News"

(Difference between pages)
 
 
Line 1: Line 1:
<div class="media"><a class="pull-left" href="/User:<!--{$user|escape:'html'}-->"><img class="media-object" src="<!--{$gravatar_url|escape:'html'}-->" alt="<!--{$user|escape:'html'}-->"></a>
+
<noinclude>
<div class="media-body">
+
__NOTOC__
<a href="<!--{$article_url|escape:'html'}-->"><h4 class="media-heading" style="line-height: 18px; font-size: 14px;  font-weight: bold; "><!--{$title|escape:'html'}--></h4></a>
+
 
<!--{$body|escape:'html'}-->
+
== Create a News Item ==
</div>
+
 
<div style="float: right; text-align: right; display: inline-block;">
+
{{#forminput:form=News|query string=namespace=News}}
<span style="color: #888; font-size: 10px;"><!--{$date|escape:'html'}--> by <a href="/User:<!--{$user|escape:'html'}-->"><!--{$user|escape:'html'}--></a></span>
+
</noinclude><includeonly>
</div>
+
{{{for template|News}}}
</div>
+
{{TableStart}}
 +
<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">Category</th><td>{{{field|News Category|input type=dropdown|values=Security,Infrastructure,General,Development,Packages}}}</td></tr>
 +
<tr><th class="active">Author(s)</th><td>{{{field|Author|autocomplete on namespace=User|list|size=100|placeholder=Specify username(s)|default=current user}}}</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}}
 +
{{{end template}}}
 +
== 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 03:46, October 20, 2014


Create a News Item