Template:Literature: Difference between revisions

From Greyhawk Wiki
Jump to navigation Jump to search
Ari5av (talk | contribs)
mNo edit summary
updating to {{infobox}} format; changed "title" to "name"; adding "language", "footnotes" parameters
Line 1: Line 1:
<includeonly>
<includeonly>{{Italic title}}{{Infobox
{| style="float: right; clear: right; width:265px; border:1px solid midnightblue; padding: 2px; margin:1em;"
|+'''Greyhawk Literature (in-world)'''
| title        = {{#if:{{{title|}}} | '''{{{title|}}}''' | '''Greyhawk Literature (in-world)'''}}
<tr>
| autoheaders  = y
   <td colspan="2" style="background: steelblue; line-height: 150%; text-align: center; font-family: Arial Black, Arial, sans-serif; font-size: 1.3em; color: white; font-weight: bold;">{{#if:{{{title|}}} |{{{title}}} |{{PAGENAME}}}}</td>
| bodystyle    = float: right; clear: right; width:250px; border:1px solid midnightblue; padding: 2px; margin:1em;
</tr><tr>
   <td colspan="2" style="text-align:center">{{{image|}}}</td>
| above        = {{#if:{{{name|}}} | ''{{{name|}}}'' | ''{{PAGENAME}}'' }}
</tr><tr>
| abovestyle   = background:steelblue; line-height: 150%; text-align:center; font-family: Arial Black; font-size: 14pt; color:white
  <td colspan="2" style="text-align:center; line-height: 1em;"> <span style="font-size:8pt;">{{{caption}}}</td>
</tr><tr>
| imagestyle   = text-align:center;
   <td colspan="2" style="background: midnightblue; line-height: 1px;"></td>
| image        = {{{image|}}}
</tr>{{#if:{{{type|}}}|<tr style="vertical-align: top;">
| captionstyle = text-align:center; line-height: 1em; font-size:8pt; padding:2pt;
   <th>'''Type:'''</th>
| caption      = {{{caption|{{{image_caption|{{{name|{{PAGENAMEBASE}}}}}} logo}}}}}}<tr>
  <td>{{{type|}}}</td>
   <td colspan="2" style="background: midnightblue; line-height: 1px;"></td></tr>
</tr>|}}{{#if:{{{author|}}}|<tr style="vertical-align: top;">
   <th>'''Author:'''</th>
| headerstyle  = background: #DEDEE2;
  <td>{{{author|}}}</td>
| labelstyle  = width: 34%; text-align:left; vertical-align:top; font-size:10pt; line-height: 1.3em;
</tr>|}}{{#if:{{{published|}}}|<tr style="vertical-align: top;">
| datastyle    = text-align:left; vertical-align:top; line-height: 1.3em;
   <th>'''Published:'''</th>
  <td>{{{published|}}}</td>
|header11  = General information
</tr>|}}{{#if:{{{alignment|}}}|<tr style="vertical-align: top;">
| label12  = {{#if:{{{type|}}} | Type: }}
  <th>'''Alignment:'''</th>
| data12   = {{#if:{{{type|}}} | {{{type|}}} }}
   <td>{{{alignment|}}}</td>
| label13  = {{#if:{{{author|}}} | Author: }}
</tr>|}}{{#if:{{{location|}}}|<tr style="vertical-align: top;">
| data13   = {{#if:{{{author|}}} | {{{author|}}} }}
   <th>'''Location:'''</th>
| label14  = {{#if:{{{published|}}} | Published: }}
  <td>{{{location|}}}</td>
| data14   = {{#if:{{{published|}}} | {{{published|}}} }}
</tr>|}}{{#if:{{{first|}}}|<tr style="vertical-align: top;">
| label15  = {{#if:{{{language|}}} | Language:  }}
   <th>'''First Appearance:'''</th>
| data15  = {{#if:{{{language|}}} | {{{language|}}} }}
  <td>{{{first|}}}</td>
| label16  = {{#if:{{{alignment|}}} | Alignment: }}
</tr>|}}
| data16   = {{#if:{{{alignment|}}} | {{{alignment|}}} }}
|}
| label17  = {{#if:{{{location|}}} | Location:  }}
 
| data17  = {{#if:{{{location|}}} | {{{location|}}} }}
[[Category:Literature]]</includeonly>
| label18  = {{#if:{{{first|}}} | First appearance: }}
<noinclude>
| data18   = {{#if:{{{first|}}} | {{{first|}}} }}
|header31  = Stuff
| label32  = {{#if:{{{stuff|}}} | Stuff:  }}
| data32  = {{#if:{{{stuff|}}} | {{{stuff|}}} }}
| belowstyle = text-align:left; line-height: 1.2em; font-size:9pt; padding:2pt;
| below   = {{{footnotes|}}}
| nocat      = {{{nocat|false}}}
}}{{#ifeq:{{lc:{{{nocat|false}}}}}|true|<!-- Category suppressed -->|{{#switch:{{lc:{{{type|}}}}}
| artifact        = [[Category:Literature]][[Category:Artifacts]]
| artifacts        = [[Category:Literature]][[Category:Artifacts]]
| major artifact  = [[Category:Literature]][[Category:Artifacts]]
| minor artifact  = [[Category:Literature]][[Category:Artifacts]]
}} }}
</includeonly><noinclude>
{{Literature
{{Literature
|image   = [[Image:Codex of the Infinite Planes01.jpg]]
| image     = [[Image:Codex of the Infinite Planes01.jpg]]
|caption = The ''Codex of the Infinite Planes'', as depicted in ''Book of Artifacts'' (1993).
| caption   = The ''Codex of the Infinite Planes'', as depicted in ''Book of Artifacts'' (1993).
|title    = ''Codex of the Infinite Planes''
| name      = Codex of the <br>Infinite Planes
|type     = Artifact
| type       = Artifact
|author   = Unknown
| author     = A really weird person.  Stephen King(?)
|published= N/A
| published = Long, long ago ...
|alignment= Unspecified
| language  = [[Common]]
|location = [[Elemental Plane of Fire]] as of [[591 CY]]
| alignment = Icky evil
|first   = ''[[Eldritch Wizardry]]'' (1976)
| location   = Your local library
| first     = ''[[Eldritch Wizardry]]'' (1976)
| footnotes  = This infobox may not be accurate to the actual item, and has parameters filled in for display purposes only.
| nocat      = true
}}
}}
This infobox covers all sorts of in-world literature from the <span style="font-variant: small-caps;">World of Greyhawk</span>™.  Items both magical and mundane may use this template.   
This infobox covers all sorts of in-world literature from the <span style="font-variant: small-caps;">World of Greyhawk</span>™.  Items both magical and mundane may use this template.   
Line 53: Line 72:
If any fields are left undefined they will not appear.
If any fields are left undefined they will not appear.


Add wiki links to articles by putting the name of the place inside double brackets, <nowiki>[[like this]]</nowiki>.
Add wiki links to articles by putting the name of places or NPCs inside double brackets, <nowiki>[[like this]]</nowiki>.


<pre>
<pre>
{{Literature
{{Literature
| image         =  
| image     =
| caption       =  
| caption   =  
| title        =  
| name      =  
| type         =  
| type       =  
| author       =  
| author     =  
| published     =  
| published =
| alignment     =  
| language  =  
| location      =  
| alignment =  
| first        =  
| location   =
}}</pre>
| first     =  
| footnotes  =  
}}
</pre>


A brief description of how to fill out each parameter follows:
A brief description of how to fill out each parameter follows:
* '''Image:''' Link to a relevant uploaded image
* '''Image:''' Link to a relevant uploaded image
* '''Caption:''' Description of the image
* '''Caption:''' Description of the image
* '''Title:''' The title of the work
* '''Name:''' The title of the work.  Only use this if the title of the work is different than the page name.
* '''Type:''' Type of literature, such as a book, play, poem, manuscript, etc.
* '''Type:''' Type of literature, such as a book, play, poem, manuscript, etc.
* '''Author:'''  In-world author, if known
* '''Author:'''  In-world author, if known
* '''Published:''' In-world place and date in which the literature was published
* '''Published:''' In-world place and/or date in which the literature was published, e.g <code><nowiki>[[Furyondy]], [[fourth century CY]]</nowiki></code> or <code><nowiki>[[spring]] [[471 CY]]</nowiki></code>
* '''Language:'''  the in-world language in which the literature is published
* '''Alignment:''' In the case of magical items, if the item itself is aligned, put the alignment here.  Do not add wikilinks to alignments
* '''Alignment:''' In the case of magical items, if the item itself is aligned, put the alignment here.  Do not add wikilinks to alignments
* '''Location:''' If the item is in or from a specific place, place the name of it here, in wikilinks <nowiki>[[like this]]</nowiki>
* '''Location:''' If the item is in or from a specific place, place the name of it here, in wikilinks <nowiki>[[like this]]</nowiki>
* '''First:''' The name of the officially published source in which the item originally appeared.
* '''First:''' The name of the officially published source in which the item originally appeared.
* '''Footnotes :'''  a descriptive note, including other significant details not covered by the above parameters


[[Category:Items| ]]
[[Category:Items| ]]
[[Category:Magic items| ]]
[[Category:Magic items| ]]
[[Category:Mundane items| ]]
[[Category:Mundane items| ]]
[[Category:Literature| ]]
[[Category:Infoboxes|Literature]]
[[Category:Infoboxes|Literature]]
</noinclude>
</noinclude>

Revision as of 10:45, 9 June 2025

Greyhawk Literature (in-world)
Codex of the
Infinite Planes
The Codex of the Infinite Planes, as depicted in Book of Artifacts (1993).
General information
Type:Artifact
Author:A really weird person. Stephen King(?)
Published:Long, long ago ...
Language:Common
Alignment:Icky evil
Location:Your local library
First appearance:Eldritch Wizardry (1976)
This infobox may not be accurate to the actual item, and has parameters filled in for display purposes only.

This infobox covers all sorts of in-world literature from the World of Greyhawk™. Items both magical and mundane may use this template.

Usage

Copy and paste the code section below to the top of the article being written and fill in the information ("parameter") areas.

The image and caption parameters are optional, but are preferred. The recommended image size is a width of 250px so that it will completely fill the infobox without increasing its size.

If any fields are left undefined they will not appear.

Add wiki links to articles by putting the name of places or NPCs inside double brackets, [[like this]].

{{Literature
| image      =  
| caption    = 
| name       = 
| type       = 
| author     = 
| published  = 
| language   = 
| alignment  = 
| location   = 
| first      = 
| footnotes  = 
}}

A brief description of how to fill out each parameter follows:

  • Image: Link to a relevant uploaded image
  • Caption: Description of the image
  • Name: The title of the work. Only use this if the title of the work is different than the page name.
  • Type: Type of literature, such as a book, play, poem, manuscript, etc.
  • Author: In-world author, if known
  • Published: In-world place and/or date in which the literature was published, e.g [[Furyondy]], [[fourth century CY]] or [[spring]] [[471 CY]]
  • Language: the in-world language in which the literature is published
  • Alignment: In the case of magical items, if the item itself is aligned, put the alignment here. Do not add wikilinks to alignments
  • Location: If the item is in or from a specific place, place the name of it here, in wikilinks [[like this]]
  • First: The name of the officially published source in which the item originally appeared.
  • Footnotes : a descriptive note, including other significant details not covered by the above parameters