Bureaucrats, Moderators (CommentStreams), Interface administrators, Push subscription managers, Suppressors, Administrators
12,446
edits
(Created page with "<noinclude> {{#default_form:BlogPost}} <!-- Enables "Edit with form" button --> {{#cargo_declare:_table=BlogPosts |blog=Page <!-- Parent hub page, e.g., Catholic Online --> |title=String <!-- Page name --> |date=Date <!-- YYYY-MM-DD for sorting --> |author=String |tags=List (,) of String |summary=Wikitext <!-- Manual teaser or auto-generated --> }} == Usage == Simply place {{Blog}} at the very top of a blog pos...") |
No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#default_form:BlogPost}} <!-- Enables "Edit with form" | {{#default_form:BlogPost}} <!-- Enables "Edit with form" tab --> | ||
{{#cargo_declare:_table=BlogPosts | {{#cargo_declare:_table=BlogPosts | ||
|blog=Page <!-- Parent hub page | |blog=Page <!-- Parent blog hub page --> | ||
|title=String <!-- Page name --> | |title=String <!-- Page name --> | ||
|date=Date <!-- YYYY-MM-DD for sorting --> | |date=Date <!-- YYYY-MM-DD for sorting --> | ||
|author=String | |author=String | ||
|tags=List (,) of String | |tags=List (,) of String | ||
|summary=Wikitext <!-- | |summary=Wikitext <!-- Optional teaser for listings --> | ||
}} | }} | ||
== Usage == | == Usage == | ||
Place {{Blog}} at the top of every blog post subpage. | |||
Fill in date, author, tags, and summary using the form only. | |||
Write the full blog post content below the template as normal wikitext. | |||
</noinclude> | </noinclude> | ||
| Line 22: | Line 22: | ||
<p> | <p> | ||
<strong>Posted:</strong> | <strong>Posted:</strong> {{#dateformat:{{{date}}}|mdy}} | ||
| | ||
<strong>By:</strong> {{{author | <strong>By:</strong> {{{author}}} | ||
| | ||
<strong>Tags:</strong> {{{tags|None}}} | <strong>Tags:</strong> {{{tags|None}}} | ||
| Line 34: | Line 33: | ||
}} | }} | ||
<!-- Full blog post content starts here --> | <hr> | ||
<!-- Full blog post content starts here (completely normal wikitext, not stored in Cargo) --> | |||
{{#cargo_store:_table=BlogPosts | {{#cargo_store:_table=BlogPosts | ||
|blog={{BASEPAGENAME}} <!-- Automatically | |blog={{BASEPAGENAME}} <!-- Automatically detects the parent blog --> | ||
|title={{PAGENAME}} | |title={{PAGENAME}} | ||
|date={{{date | |date={{{date}}} | ||
|author={{{author | |author={{{author}}} | ||
|tags={{{tags | |tags={{{tags}}} | ||
|summary={{{summary| | |summary={{{summary|}}} | ||
}} | }} | ||
[[Category:Blog posts]] | [[Category:Blog posts]] | ||
</includeonly> | </includeonly> | ||