More languages
More actions
No edit summary Tag: Reverted |
No edit summary |
||
(55 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#seo: | |||
|image={{#if: {{{image|}}} | {{{image}}}|}} | |||
|title={{#if: {{{name|}}}|{{{name}}}|{{{title}}}}} - ProleWiki | |||
|author={{{author}}} | |||
|published_time={{{date}}} | |||
|description={{{excerpt}}} | |||
}} | |||
<templatestyles src="Infobox_essay/style.css" /> | <templatestyles src="Infobox_essay/style.css" /> | ||
<!-- | <!-- | ||
This template is used to format essay metadata to be used in the blog page. | This template is used to format essay metadata to be used in the blog/essays page. | ||
Usage: | Usage: | ||
{{Infobox_essay | {{Infobox_essay | ||
|image=illustrative image to be used in the essays homepage. | |image=illustrative image to be used in the essays homepage. Not required. | ||
|name=What you want to rename your essay to, only in the frontend. Not required. If unspecified, will use TITLE parameter. | |||
|title=Title of the essay. Used to create the link automatically, no need to add the namespace | |title=Title of the essay. Used to create the link automatically, no need to add the namespace | ||
|author=Your username | |author=Your username | ||
|repost=Yes if it's a repost, leave blank otherwise. Will add a mention after author's name to say "This essay was republished with permission and was not written by a ProleWiki editor". | |||
|date=Date of first edit committed | |date=Date of first edit committed | ||
|excerpt=A brief excerpt from the essay (first paragraph) | |excerpt=A brief excerpt from the essay (first paragraph) | ||
}} | }} | ||
--> | --> | ||
{{DISPLAYTITLE:{{{title | {{DISPLAYTITLE: {{#if: {{{name|}}} | {{{name}}} | {{{title}}} }} }} | ||
<div class="infobox-essay"> | <div class="infobox-essay"> | ||
<span class="essay-disappear essay-template-title" | |||
<span class="essay-disappear2"><big>[[ProleWiki:Essays| ← Back to all essays]] | {{#ifeq: {{{author}}} |Open source| [[:Category:Open source essays|Author's essays]] | [[:Category:Essays by {{{author|}}}|Author's essays]] }} </big></span> | |||
<span class="essay-disappear essay-template-title">'''[[Essay:{{{title|}}}|{{#if: {{{name|}}} | {{{name}}} | {{{title}}} }}]]'''</span> | |||
<div class="essay-flex"> | <div class="essay-flex"> | ||
<div class="essay-picture">[[File:{{{image|Placeholder-image.png}}}|link=Essay:{{{title|}}}]]</div> | <div class="essay-picture">[[File:{{{image|Placeholder-image.png}}}|link=Essay:{{{title|}}}]]</div> | ||
<div class="essay-content"> | <div class="essay-content"> | ||
<span class="essay-small">by [[Comrade:{{{author|}}}|{{{author|}}}]]<br> | <span class="essay-small"> | ||
Published: {{{date|}}} (last update: {{# | by [[Comrade:{{{author|}}}|{{{author|}}}]] {{#if: {{{repost|}}} |{{!}} This essay was republished with permission from the author<br>}}<br> | ||
)<br> | Published: {{{date|}}} <span class="essay-disappear2">(last update: {{#time:Y-m-d|{{REVISIONTIMESTAMP}}}})</span><br> | ||
<span class="essay-light">{{#invoke:Reading time|estimateReadingTime|Essay:{{{title}}}}}</span><br></span> | <span class="essay-light">{{#invoke:Reading time|estimateReadingTime|Essay:{{{title}}}}}</span><br></span> | ||
<div class="essay-offset essay-disappear">{{{excerpt|}}}<br> | <div class="essay-offset essay-disappear">{{{excerpt|}}}<br><br> | ||
[[Essay:{{{title|}}}|Read more]]</div> | [[Essay:{{{title|}}}|Read more]] | ||
</div> | |||
</div> | </div> | ||
</div> | </div> | ||
</div> | </div> | ||
<!-- | <!-- | ||
@param title Essay title as it appears in the URL (case-sensitive). | @param title Essay title as it appears in the URL (case-sensitive). | ||
Line 43: | Line 57: | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | |||
"name": { | |||
"label": "Name", | |||
"description": "What you want to rename your essay to, only in the frontend. Not required. If unspecified, will use TITLE parameter.", | |||
"type": "string", | |||
"required": false | |||
}, | }, | ||
"image": { | "image": { | ||
Line 68: | Line 88: | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
}, | |||
"repost": { | |||
"label": "Repost", | |||
"description": "If yes, will inform readers this essay is a republish and was not written by ProleWiki editors", | |||
"type": "string", | |||
"required": false | |||
} | } | ||
} | } |
Latest revision as of 16:54, 4 October 2024
← Back to all essays | Author's essays [[Essay:|{{{title}}}]]
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | Title of the essay. Used to create the link automatically, no need to add the namespace. Case-sensitive. | String | required |
Name | name | What you want to rename your essay to, only in the frontend. Not required. If unspecified, will use TITLE parameter. | String | optional |
Image | image | Illustrative banner style image (wide). If not specified, will use a placeholder.
| String | optional |
Author | author | Your username, or the essay's author. Case-sensitive. | String | required |
Date | date | YYYY-mm-dd format. Date of first saved edit, i.e. first publication on ProleWiki | Date | required |
Excerpt | excerpt | A brief excerpt from the essay (first or first two paragraphs) | String | required |
Repost | repost | If yes, will inform readers this essay is a republish and was not written by ProleWiki editors | String | optional |