Template:Essay/doc: Difference between revisions

From Leftypedia
Jump to navigation Jump to search
(Created page with "==Description== To be placed at head of <code>Essay:</code> namespace pages. ==How to use== Place at the head of an Essay when you create or make an edit to an essay that is your original work, and it will automatically credit you, like so: {{ombox |type = notice |image = 30px |text = <div style="padding-top: 6px; padding-bottom: 5px;">'''This is an essay by Harrystein.'''<br /><div style=...")
 
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
==How to use==
==How to use==
Place at the head of an Essay when you create or make an edit to an essay that is your original work, and it will automatically credit you, like so:
Place at the head of an Essay when you create or make an edit to an essay that is your original work, and it will automatically credit you, like so:
<nowiki>{{essay}}</nowiki>
yields:


{{ombox
{{ombox
Line 12: Line 16:


If you are not the author of this piece, you can credit the author with the <code>author</code> parameter. Inputting:
If you are not the author of this piece, you can credit the author with the <code>author</code> parameter. Inputting:
  <nowiki>{{essay|author=Discomrade</nowiki>
  <nowiki>{{essay|author=Discomrade}}</nowiki>
 
yields:
yields:


Line 21: Line 26:
}}
}}


I intend to add functionality for users who are Anonymous, or people who are on other sites but do not have a user page here.
If you are citing an author who is Anonymous or is not an original poster here, you need to avoid the automatic link to that person's (nonexistent) Leftypedia userpage by inputting <code>user=no</code>, as such:
 
<nowiki>{{essay|author=Jehu|user=no}}</nowiki>
 
{{ombox
|type      = notice
|image      = [[File:Essay.svg.png|30px]]
|text      = <div style="padding-top: 6px; padding-bottom: 5px;">'''This is an [[:category:Essays|essay]] by Jehu.'''<br /><div style="font-size: 90%;">It contains personal opinions or rhetoric written by one or more Leftypedia contributors. This page is not an encyclopedia article, nor is it a policy or guideline written by Leftypedia.
}}
 
Using this parameter will automatically credit you, the person who added the template, for sharing this work with Leftypedia. If you did not share the work, then use <code>contrib</code> to credit the user who posted it.
 
Be aware that the posting of external works under Essay is a gray area that has yet to be defined, and may result in your upload being removed.
 
Future additions: options for multiple contributors, i.e. <code>author2</code>,<code>author3</code> et cetera.


==Parameters==
==Parameters==
{| class="wikitable"
{| class="wikitable"


| [[Labor theory of value]] || [[Labour theory of value]]
| <code>author</code> || The author of the Essay. If this parameter does not exist, then the Essay will be credited to you, the editor who added the template itself.
|-
|-
| [[Industrialization]] || [[Industrialisation]]
| <code>user</code> || If this value is set to <code>no</code>, then the <code>author</code> parameter will appear with no hyperlink to a User page on Leftypedia. If any other value is inputted, including leaving the parameter blank, then the User hyperlink will appear normally. You will automatically be credited for sharing this person's work unless you use the <code>contrib</code> parameter.
|-
| -
| Example || Example
| <code>contrib</code> || If you set the <code>user</code> parameter to <code>no</code> but did not originally upload this work to Leftypedia, set <code>contrib</code> to the username of the user who did, and it will credit them.
 
|}
|}

Latest revision as of 18:23, 3 May 2024

Description

To be placed at head of Essay: namespace pages.

How to use

Place at the head of an Essay when you create or make an edit to an essay that is your original work, and it will automatically credit you, like so:

{{essay}}

yields:

If you are not the author of this piece, you can credit the author with the author parameter. Inputting:

{{essay|author=Discomrade}}

yields:

If you are citing an author who is Anonymous or is not an original poster here, you need to avoid the automatic link to that person's (nonexistent) Leftypedia userpage by inputting user=no, as such:

{{essay|author=Jehu|user=no}}

Using this parameter will automatically credit you, the person who added the template, for sharing this work with Leftypedia. If you did not share the work, then use contrib to credit the user who posted it.

Be aware that the posting of external works under Essay is a gray area that has yet to be defined, and may result in your upload being removed.

Future additions: options for multiple contributors, i.e. author2,author3 et cetera.

Parameters

author The author of the Essay. If this parameter does not exist, then the Essay will be credited to you, the editor who added the template itself.
user If this value is set to no, then the author parameter will appear with no hyperlink to a User page on Leftypedia. If any other value is inputted, including leaving the parameter blank, then the User hyperlink will appear normally. You will automatically be credited for sharing this person's work unless you use the contrib parameter. - contrib If you set the user parameter to no but did not originally upload this work to Leftypedia, set contrib to the username of the user who did, and it will credit them.