Difference between revisions of "Template:Literature"
m |
m |
||
Line 1: | Line 1: | ||
+ | {{infobox |
||
− | {{infobox|title={{{literature|{{PAGENAME}}|}}}|id=literature |
||
+ | |title={{{literature|{{PAGENAME}}|}}} |
||
+ | |id=literature |
||
|1= |
|1= |
||
− | {{#if:{{{image|}}} |{{row/image+artist |{{{image}}}<!-- -->}}|}} |
+ | {{#if:{{{image|}}} |{{row/image+artist |{{{image}}}<!-- -->}}|}} |
+ | <!-- about --> |
||
− | {{#if:{{{type|}}} |{{row/kv| Type |{{{type}}}<!-- -->}}|}} |
||
− | {{#if:{{{ |
+ | {{#if:{{{type|}}} |{{row/kv| Type |{{{type}}}<!-- -->}}|}} |
− | {{#if:{{{ |
+ | {{#if:{{{author|}}} |{{row/kv| Author |{{{author}}}<!-- -->}}|}} |
− | {{#if:{{{ |
+ | {{#if:{{{language|}}} |{{row/kv| Language |{{{language}}}<!-- -->}}|}} |
− | + | {{#if:{{{created|}}} |{{row/kv| Created in |{{{era}}}<!-- -->}}|}} |
|
+ | |||
− | {{#if:{{{universe|}}} |{{row/kv| Universe | {{{universe}}}<!-- -->}}|}} |
||
+ | <!-- world & universe --> |
||
− | {{{location|}}} |
||
− | + | {{#if:{{{earth|}}} |{{row/kv| World |[[Earth ({{{earth}}})]]<!-- -->}}|}} |
|
+ | {{#if:{{{world|}}} |{{row/kv| World |[[{{{world}}}]]<!-- -->}}|}} |
||
+ | {{#if:{{{'world|}}} |{{row/kv| World |{{{'world}}}{{raw/world}}<!-- -->}}|}} |
||
+ | {{#if:{{{raw-world|}}} |{{row/kv| World |{{{raw-world}}}{{raw/world}}<!-- -->}}|}} |
||
+ | {{#if:{{{universe|}}} |{{row/kv| Universe |{{{universe}}}<!-- -->}}|}} |
||
+ | |||
+ | <!-- featured in -->{{row/kv| Featured In |''{{{books}}}''<!-- -->}} |
||
}}<includeonly><!-- |
}}<includeonly><!-- |
||
− | -->[[ |
+ | -->[[Category: Literature]]<!-- |
+ | -- check for world & universe -- |
||
-->{{#if:<!-- |
-->{{#if:<!-- |
||
+ | -->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{'world|}}}<!-- -->{{{world-raw|}}}<!-- -->{{{raw-world|}}}<!-- -->{{{universe|}}}<!-- |
||
− | -->{{{world|}}}<!-- |
||
-->||{{infobox/no-world}}<!-- |
-->||{{infobox/no-world}}<!-- |
||
-->}}<!-- |
-->}}<!-- |
||
Line 24: | Line 33: | ||
--></includeonly><noinclude> |
--></includeonly><noinclude> |
||
+ | {{for|Template:Book|the template describing real world literature|pre=This is the infobox for in-world literature}} |
||
− | This template allows you to describe the many attributes of a work of literature, such as a book, story, or poem. The {{{world}}} and {{{books}}} parameters are required The other parameters are optional and can be described in groups: |
||
+ | The '''literature''' infobox template is used to describe literary works, both written (e.g. books, newspapers) and oral (e.g. songs, poems), from any of Brandon Sanderson's stories. |
||
− | ;Type: The {{{type}}} parameter allows for the description of the type of literature, such as book, play, poem, or etc. |
||
+ | |||
− | ;Author: The {{{author}}} parameter allows for the description of the person who authored the piece of literature. |
||
+ | |||
− | ;Language: The {{{language}}} parameter is used to annotate what in-universe language(s) the piece is written in. |
||
+ | __TOC__ |
||
− | ;Era: The {{{era}}} parameter allows for the description of the time period the piece of literature was written in. |
||
+ | |||
− | ;Art: Using the {{{image}}} parameter will show the passed file as a header image in the infobox along with automatically citing the artist responsible |
||
+ | === Template === |
||
+ | <pre class=mw-code> |
||
+ | {{literature |
||
+ | |image= |
||
+ | |type= |
||
+ | |author= |
||
+ | |language= |
||
+ | |created= |
||
+ | |world= / earth= |
||
+ | |universe= |
||
+ | |books= |
||
+ | }} |
||
+ | </pre> |
||
+ | |||
+ | === Parameters === |
||
+ | Highlighted lines indicate '''mandatory''' parameters. |
||
+ | |||
+ | {{docs|title={{t|Literature}} Parameters}} |
||
+ | |||
+ | <!-- ---------- --> |
||
+ | <!-- ROW: image --> |
||
+ | <!-- ---------- --> |
||
+ | {{docs/image |
||
+ | |eg= |
||
+ | <code><nowiki>|image=The Elendel Daily header.png</nowiki></code> |
||
+ | }} |
||
+ | |||
+ | <!-- --------- --> |
||
+ | <!-- ROW: type --> |
||
+ | <!-- --------- --> |
||
+ | {{docs/row/optional |
||
+ | |param=type |
||
+ | |desc= |
||
+ | Use this to specify the type of the literary work. |
||
+ | <small>See [[#Types]] for further details.</small> |
||
+ | |eg= |
||
+ | <code><nowiki>|type={{cat tag|book}}</nowiki></code> |
||
+ | <code><nowiki>|type=Opera</nowiki></code> |
||
+ | }} |
||
+ | |||
+ | <!-- ----------- --> |
||
+ | <!-- ROW: author --> |
||
+ | <!-- ----------- --> |
||
+ | {{docs/row/optional |
||
+ | |param=author |
||
+ | |desc= Use this to specify the author(s) of the literary work, if known. |
||
+ | |eg= |
||
+ | <code><nowiki>|author=[[Taravangian]]</nowiki></code><br> |
||
+ | <code><nowiki>|author=[[Hoid]], [[Frost]]</nowiki></code> |
||
+ | }} |
||
+ | |||
+ | <!-- ------------- --> |
||
+ | <!-- ROW: language --> |
||
+ | <!-- ------------- --> |
||
+ | {{docs/row/optional |
||
+ | |param= language |
||
+ | |desc= Use this to specify the original language of the literary work. |
||
+ | |eg= <code><nowiki>|language=[[Dawnchant]]</nowiki></code> |
||
+ | }} |
||
+ | |||
+ | <!-- ------------ --> |
||
+ | <!-- ROW: created --> |
||
+ | <!-- ------------ --> |
||
+ | {{docs/row/optional |
||
+ | |param= created |
||
+ | |desc= Use this to specify when the literary work was created. This be either specific (e.g. year) or generic (e.g. era). |
||
+ | |eg= |
||
+ | <code><nowiki>|created=[[Era of Solitude]]</nowiki></code><br> |
||
+ | <code><nowiki>|created=331 PC</nowiki></code> |
||
+ | }} |
||
+ | |||
+ | <!-- ------------------ --> |
||
+ | <!-- ROW: world / earth --> |
||
+ | <!-- ------------------ --> |
||
+ | {{docs/world|subject=literary work}} |
||
+ | |- |
||
+ | |||
+ | <!-- ------------- --> |
||
+ | <!-- ROW: universe --> |
||
+ | <!-- ------------- --> |
||
+ | {{docs/universe|subject=literary work}} |
||
+ | |||
+ | <!-- ---------- --> |
||
+ | <!-- ROW: books --> |
||
+ | <!-- ---------- --> |
||
+ | {{docs/books|subject=literary work}} |
||
+ | |||
+ | |} |
||
+ | |||
+ | === Types === |
||
+ | When specifying a type for a literary work, stick to the most generic type only. For example, [[An Accountability of Virtue]] is both a '''book''' and a (romance) '''novel''', but for the purposes of this template it is of the same type as [[Shadows Remembered]] - a book. |
||
+ | |||
+ | Applying a category to the type is not necessary, but if you can find one in the list of [[:Special: Categories|category]], use it. |
||
+ | |||
+ | === Categories & Tags === |
||
+ | Pages that make use of the ''{{t|Literature}}'' template will be added to [[:Category: Literature]]. |
||
+ | |||
− | [[ |
+ | [[Category: Infoboxes]] |
Revision as of 20:38, 19 April 2019
Literature | |
---|---|
Featured In | {{{books}}} |
The literature infobox template is used to describe literary works, both written (e.g. books, newspapers) and oral (e.g. songs, poems), from any of Brandon Sanderson's stories.
Template
{{literature |image= |type= |author= |language= |created= |world= / earth= |universe= |books= }}
Parameters
Highlighted lines indicate mandatory parameters.
Template:Docs/booksParameter | Description | Examples |
---|---|---|
image
|
Use this to display a relevant image hosted on the Coppermind.
See Help:Infoboxes for further details. |
|
type
|
Use this to specify the type of the literary work.
See #Types for further details. |
|
author
|
Use this to specify the author(s) of the literary work, if known. |
|
language
|
Use this to specify the original language of the literary work. |
|
created
|
Use this to specify when the literary work was created. This be either specific (e.g. year) or generic (e.g. era). |
|
world or earth
|
Use this to specify the planet where the literary work can be found. Note: Automatically generates a link. To bypass this, use |
|
universe
|
Use this to indicate the (connected) universe where the literary work can be found.
See Help: Infoboxes for further details. |
|
Types
When specifying a type for a literary work, stick to the most generic type only. For example, An Accountability of Virtue is both a book and a (romance) novel, but for the purposes of this template it is of the same type as Shadows Remembered - a book.
Applying a category to the type is not necessary, but if you can find one in the list of category, use it.
Categories & Tags
Pages that make use of the {{Literature}}
template will be added to Category: Literature.