Difference between revisions of "Template:Literature"

From The Coppermind
Jump to navigation Jump to search
m (Protected "Template:Literature": High traffic page: We'd like all infobox changes to be discussed and agreed to by consensus ahead of time ([Edit=Allow only keepers] (indefinite) [Move=Allow only keepers] (indefinite)))
m (Actually, {{cat tag|books}} shouldn't even be used at all)
(4 intermediate revisions by 2 users not shown)
Line 6: Line 6:
   
 
<!-- about -->
 
<!-- about -->
{{#if:{{{type|}}} |{{row/kv| Type |{{{type}}}<!-- -->}}|}}
+
{{#if:{{{type|}}} |{{row/kv| Type |{{{type}}}<!-- -->}}|}}
{{#if:{{{author|}}} |{{row/kv| Author |{{{author}}}<!-- -->}}|}}
+
{{#if:{{{author|}}} |{{row/kv| Author |{{{author}}}<!-- -->}}|}}
{{#if:{{{language|}}} |{{row/kv| Language |{{{language}}}<!-- -->}}|}}
+
{{#if:{{{language|}}} |{{row/kv| Language |{{{language}}}<!-- -->}}|}}
{{#if:{{{created|}}} |{{row/kv| Created in |{{{era}}}<!-- -->}}|}}
+
{{#if:{{{era|}}} |{{row/kv| Created in |{{{era}}}{{era/{{{era}}}|}}<!-- -->}}|}}
   
 
<!-- world & universe -->
 
<!-- world & universe -->
Line 48: Line 48:
 
|author=
 
|author=
 
|language=
 
|language=
|created=
+
|era=
 
|world= / earth=
 
|world= / earth=
 
|universe=
 
|universe=
Line 77: Line 77:
 
<small>See [[#Types]] for further details.</small>
 
<small>See [[#Types]] for further details.</small>
 
|eg=
 
|eg=
<code><nowiki>|type={{cat tag|book}}</nowiki></code>
+
<code><nowiki>|type=Book</nowiki></code>
 
<code><nowiki>|type=Opera</nowiki></code>
 
<code><nowiki>|type=Opera</nowiki></code>
 
}}
 
}}
Line 102: Line 102:
   
 
<!-- ------------ -->
 
<!-- ------------ -->
<!-- ROW: created -->
+
<!-- ROW: era -->
 
<!-- ------------ -->
 
<!-- ------------ -->
 
{{docs/row/optional
 
{{docs/row/optional
|param= created
+
|param= era
|desc= Use this to specify when the literary work was created. This be either specific (e.g. year) or generic (e.g. era).
+
|desc= Use this to specify when the literary work was created. This forwards to {{t|era}}, so it must be defined there. As a result, it cannot be a link.
 
|eg=
 
|eg=
<code><nowiki>|created=[[Era of Solitude]]</nowiki></code><br>
+
<code><nowiki>|era=Era of Solitude</nowiki></code>
<code><nowiki>|created=331 PC</nowiki></code>
 
 
}}
 
}}
   
Line 133: Line 132:
   
 
Applying a category to the type is not necessary, but if you can find one in the list of [[:Special: Categories|category]], use it.
 
Applying a category to the type is not necessary, but if you can find one in the list of [[:Special: Categories|category]], use it.
  +
  +
'''Note:''' do not use <code><nowiki>{{cat tag|books}}</nowiki></code>. [[:Category:Books]] is for the books written by [[Brandon Sanderson]], not in-world literature.
   
 
=== Categories & Tags ===
 
=== Categories & Tags ===
Line 139: Line 140:
   
 
[[Category: Infoboxes]]
 
[[Category: Infoboxes]]
  +
== Articles using Template ==
  +
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages.}}
  +
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}

Revision as of 00:57, 27 April 2020

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=
|era=
|world= / earth=
|universe=
|books=
}}

Parameters

Highlighted lines indicate mandatory parameters.

Template:Docs/books
{{Literature}} Parameters
Parameter Description Examples
image Use this to display a relevant image hosted on the Coppermind.

See Help:Infoboxes for further details.

|image=The Elendel Daily header.png

type Use this to specify the type of the literary work.

See #Types for further details.

|type=Book |type=Opera

author Use this to specify the author(s) of the literary work, if known.

|author=[[Taravangian]]
|author=[[Hoid]], [[Frost]]

language Use this to specify the original language of the literary work.

|language=[[Dawnchant]]

era Use this to specify when the literary work was created. This forwards to {{era}}, so it must be defined there. As a result, it cannot be a link.

|era=Era of Solitude

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 'world.
See Help:Infoboxes for further details.

|world=Roshar
|earth=Reckoners
|'world=Mars

universe Use this to indicate the (connected) universe where the literary work can be found.

See Help: Infoboxes for further details.

|universe=[[Cosmere]]
|universe=[[Cytoverse]]
|universe=[[Wode]] [[State]]s
|universe=''Standalone''

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.

Note: do not use {{cat tag|books}}. Category:Books is for the books written by Brandon Sanderson, not in-world literature.

Categories & Tags

Pages that make use of the {{Literature}} template will be added to Category: Literature.

Articles using Template