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>
<pre>
This is the "Blog Post" form.
{{BlogPost
| title =
| subtitle =
| author =
| date =
| content =
}}
</pre>
</noinclude><includeonly>


<big>{{#if: {{{title|}}} |'''{{{title}}}''' |''Error: missing blog post title.'' }}</big><br/>
To create a new post, visit the [[blog/{{CURRENTUSER}}|your blog]] or [[Blog|create it]] first.  
<small>{{#if: {{{subtitle|}}} |'''{{{subtitle}}}''' |''Error: missing post subtitle.'' }}</small>


{{{content}}}
[[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>
{{#set:
{{{for template|BlogPost}}}
|Has blog post author={{{author|}}}
{| class="formtable"
|Has blog post title={{{title|}}}
! Author
|Has blog post date={{{date|}}}
{{{field|author|input type=dropdown|values from namespace=User}}}
}}
|-
</div></includeonly>
! 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>

Revision as of 13:33, 28 November 2023

This is the "Blog Post" form.

To create a new post, visit the your blog or create it first.