Template:Blog: Difference between revisions
From ProWiki - Demo and Test Wiki
No edit summary |
No edit summary |
||
(9 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<pre> | <pre> | ||
{{Blog | {{Blog | ||
| | | author = | ||
| title = | |||
}} | }} | ||
</pre> | </pre> | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
<big>{{#if: {{{ | <big>{{#if: {{{title|}}} |'''{{{title}}}''' |''Error: missing blog title.'' }}</big><br/> | ||
<small>{{#if: {{{author|}}} | Blog by [[User:{{{author}}}]] |''Error: missing blog author.'' }}</small> | |||
{{#ifeq: | |||
{{CURRENTUSER}}|{{{author|}}} | |||
| | |||
== Add new post == | |||
Post slug (page name):<br/> | |||
{{#forminput:form=BlogPost|link type=button|placeholder=Enter the post slug (page name) }} | |||
}} | |||
== Blog Posts == | |||
{{#ask: | |||
[[Category:Blog post]] | |||
[[Has blog author::{{{author}}}]] | |||
|?=slug | |||
|?Has blog post author=author | |||
|?Has blog post title=title | |||
|?Has blog post intro=intro | |||
|?Has blog post date=date | |||
|format=plainlist | |||
|template=BlogPostList | |||
|named args=yes | |||
|link=none | |||
}} | |||
<div style="display: none;"> | <div style="display: none;"> | ||
{{#set: | {{#set: | ||
|Has blog | |Has blog author={{{author|}}} | ||
}} | }} | ||
</div></includeonly> | </div> | ||
{{#default_form:BlogPost}} [[Category:Blog]] | |||
</includeonly> |
Revision as of 14:24, 28 November 2023
{{Blog | author = | title = }}