Form:BlogPost and Template:BlogPost: Difference between pages

From ProWiki - Demo and Test Wiki

(Difference between pages)

No edit summary
 
No edit summary
 
Line 1: Line 1:
<noinclude>
<noinclude>
This is the "Blog Post" form.
<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>
 
<small>{{#if: {{{date|}}} |''{{{date}}}'' }}</small>


To create a new post, visit the [[blog/{{CURRENTUSER}}|your blog]] or [[Blog|create it]] first.
{{{content}}}


[[Category:Form]]
<div style="display: none;">
</noinclude><includeonly>
{{#set:
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #aaa;"></div>
|Has blog post author={{{author|}}}
{{{for template|BlogPost}}}
|Has blog post title={{{title|}}}
{| class="formtable"
|Has blog post date={{{date|}}}
|-
}}
! Title
</div>
| {{{field|title|maxlength=100}}}
{{DISPLAYTITLE:{{{author}}} - {{{title}}} }} {{#default_form:BlogPost}} [[Category:Blog post]]
|-
! Subtitle
| {{{field|subtitle|maxlength=100}}}
|-
! Date
| {{{field|date|input type=datepicker}}}
|}
'''Content'''
{{{field|content|input type=textarea|editor=wikieditor|placeholder=Write your blog post here}}}
{{{end template}}}
</includeonly>
</includeonly>

Revision as of 21:52, 26 November 2023

{{BlogPost
 | title = 
 | subtitle = 
 | author = 
 | date =
 | content =
}}