Template: Blog post
No edit summary |
No edit summary |
||
| (32 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#cargo_declare: | {{#cargo_declare: | ||
_table=blog_posts | |||
| title=String | |||
| date=Date | |||
| authors=List (;) of Page | |||
| image=File | |||
| image_alt=String | |||
| description=Wikitext string | |||
| keywords=List (;) of String | |||
| mode=String (allowed values=draft,featured,hidden) | |||
}} | }} | ||
{{documentation}} | {{documentation}} | ||
</noinclude><includeonly> | </noinclude><includeonly>{{#cargo_store: | ||
{{#cargo_store: | _table=blog_posts | ||
| title={{{title|{{PAGENAME}}}}} | |||
| date={{{date|}}} | |||
| authors={{{authors|{{{author|}}}}}} | |||
| image={{{image|}}} | |||
| image_alt={{{image_alt|{{{description|}}}}}} | |||
| description={{{description|}}} | |||
| keywords={{{keywords|}}} | |||
| mode={{{mode|}}} | |||
}}<templatestyles src="Template:Blog_post/styles.css" /> | |||
}} | {{DISPLAYTITLE:{{{title|{{PAGENAME}}}}}}}<div class="blog-article"><div class="blog-byline">{{#if:{{{date|}}}|<span class="blog-date">{{#time:j F Y|{{{date}}}}}</span>}}{{#if:{{{authors|{{{author|}}}}}}|{{#if:{{{date|}}}| }}<span class="blog-authors"> by {{{authors|{{{author|}}}}}}</span>}} | ||
</div>{{#if:{{{image|}}}|<div class="blog-hero"> | |||
[[File:{{{image}}}|frameless|class=blog-hero-img|link=|alt={{{image_alt|}}}]] | |||
<templatestyles src="Template:Blog_post/styles.css" /> | </div>}}{{#if:{{{image_alt|}}}|<div class="blog-hero-cap" style="padding-bottom:10px;">{{{image_alt}}}</div>}}{{#if:{{{description|}}}|<!--<p class="blog-standfirst">--><h3 style="text-align:center;padding-bottom:0px;margin-bottom:30px;">{{{description}}}</h3><!--</p>-->}} | ||
</div> | </div> | ||
[[Category:Blog posts]] | [[Category:Blog posts]] | ||
</includeonly> | </includeonly> | ||
Latest revision as of 23:15, 1 October 2025
This template defines the table "blog_posts". View table. Template:Documentation