Template:Infobox essay: Difference between revisions

Template page
No edit summary
No edit summary
 
(62 intermediate revisions by the same user 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" />
<!--  
<!--  
Line 5: Line 12:
   Usage:
   Usage:
   {{Infobox_essay
   {{Infobox_essay
  |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=Author's Name
   |author=Your username
   |date=Publication Date
  |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
   |excerpt=A brief excerpt from the essay (first paragraph)
   |excerpt=A brief excerpt from the essay (first paragraph)
   }}
   }}
-->
-->
{{DISPLAYTITLE: {{#if: {{{name|}}} | {{{name}}} | {{{title}}} }} }}
<div class="infobox-essay">
<div class="infobox-essay">
<h2>'''[[Essay:{{{title}}}|{{{title}}}]]'''</h2>
 
<span class="essay-small">by '''[[Comrade:{{{author}}}|{{{author}}}]]'''<br>
<span class="essay-disappear2"><big>[[ProleWiki:Essays| ← Back to all essays]] | [[:Category:Essays by {{{author|}}}|Author's essays]] </big></span>
Published: {{{date}}} (last update: {{#time:Y-m-d|{{REVISIONTIMESTAMP}}}})</span><br>
<span class="essay-disappear essay-template-title">'''[[Essay:{{{title|}}}|{{#if: {{{name|}}} | {{{name}}} | {{{title}}} }}]]'''</span>
<div class="essay-offset">{{{excerpt}}}</div><br>
 
...[[Essay:{{{title}}}|Read more]]
<div class="essay-flex">
 
<div class="essay-picture">[[File:{{{image|Placeholder-image.png}}}|link=Essay:{{{title|}}}]]</div>
 
<div class="essay-content">
<span class="essay-small">
by [[Comrade:{{{author|}}}|{{{author|}}}]] {{#if: {{{repost|}}} |{{!}} This essay was '''republished''' with permission from the author who is '''not''' a ProleWiki editor<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>
<div class="essay-offset essay-disappear">{{{excerpt|}}}<br><br>
[[Essay:{{{title|}}}|Read more]]
</div>
</div>
</div>
</div>
</div>
<!--
    @param title    Essay title as it appears in the URL (case-sensitive).
    @param image    Banner image to illustrate your essay. If not specified, a placeholder will be used.
    @param author  Your username (case-sensitive).
    @param date    Date the essay was first published (YYYY-mm-dd), usually the date of the first edit saved.
-->
<noinclude>
<templatedata>
{
"params": {
    "title": {
        "label": "Title",
        "description": "Title of the essay. Used to create the link automatically, no need to add the namespace. Case-sensitive.",
        "type": "string",
        "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": {
        "label": "Image",
        "description": "Illustrative banner style image (wide). If not specified, will use a placeholder.",
        "type": "string",
        "default": "Placeholder-image.png",
        "required": false
    },
    "author": {
        "label": "Author",
        "description": "Your username, or the essay's author. Case-sensitive.",
        "type": "string",
        "required": true
    },
    "date": {
        "label": "Date",
        "description": "YYYY-mm-dd format. Date of first saved edit, i.e. first publication on ProleWiki",
        "type": "date",
        "required": true
    },
    "excerpt": {
        "label": "Excerpt",
        "description": "A brief excerpt from the essay (first or first two paragraphs)",
        "type": "string",
        "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
    }
}
}
</templatedata>
</noinclude>

Latest revision as of 13:38, 31 March 2024

← Back to all essays | Author's essays [[Essay:|{{{title}}}]]

link=Essay:

by [[Comrade:|]]
Published: (last update: 2024-03-31)
Lua error in Module:Reading_time at line 14: attempt to index a nil value.



[[Essay:|Read more]]

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Titletitle

Title of the essay. Used to create the link automatically, no need to add the namespace. Case-sensitive.

Stringrequired
Namename

What you want to rename your essay to, only in the frontend. Not required. If unspecified, will use TITLE parameter.

Stringoptional
Imageimage

Illustrative banner style image (wide). If not specified, will use a placeholder.

Default
Placeholder-image.png
Stringoptional
Authorauthor

Your username, or the essay's author. Case-sensitive.

Stringrequired
Datedate

YYYY-mm-dd format. Date of first saved edit, i.e. first publication on ProleWiki

Daterequired
Excerptexcerpt

A brief excerpt from the essay (first or first two paragraphs)

Stringrequired
Repostrepost

If yes, will inform readers this essay is a republish and was not written by ProleWiki editors

Stringoptional