Template:BlogPost and Form:BlogPost: Difference between pages
From ProWiki - Demo and Test Wiki
(Difference between pages)
(Created page with "<noinclude> <pre> {{BlogPost | title = | subtitle = | author = | date = | content = }} </pre> </noinclude><includeonly> <big>{{#if: {{{title|}}} |'''{{{title}}}''' |''Error: missing blog post title.'' }}</big><br/> <small>{{#if: {{{subtitle|}}} |'''{{{subtitle}}}''' |''Error: missing post subtitle.'' }}</small> {{{content}}} <div style="display: none;"> {{#set: |Has blog post author={{{author|}}} |Has blog post title={{{title|}}} |Has blog post date={{{date...") |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This is the "Blog Post" form. | |||
To create a new post, visit the [[blog/{{CURRENTUSER}}|your blog]] or [[Blog|create it]] first. | |||
[[Category:Form]] | |||
</noinclude><includeonly> | |||
<div style="display: none;"> | <div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #aaa;"></div> | ||
{{ | {{{for template|BlogPost}}} | ||
{| class="formtable" | |||
! Author | |||
| {{{field|author|input type=dropdown|values from namespace=User}}} | |||
}} | |- | ||
! Title | |||
| {{{field|title|maxlength=100|size=100}}} | |||
|- | |||
! Introduction | |||
| {{{field|intro|input type=textarea|rows=3|maxlength=250|size=250|autogrow}}} | |||
|- | |||
! Date | |||
| {{{field|date|input type=datepicker|default=now}}} | |||
|} | |||
'''Content''' | |||
{{{field|content|input type=textarea|editor=wikieditor|placeholder=Write your blog post here|rows=10}}} | |||
{{{end template}}} | |||
</includeonly> |