Difference between revisions of "Template:Deity infobox"

From Project: Gorgon Wiki
Jump to: navigation, search
m
(Updated infobox to use new header image.)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="margin:0 0 0.5em 1em; border:1px solid #ccc; float:right; text-align:left; background:#f9f9f9;" cellpadding="5"
+
{| style="margin:1px; border:1px solid#423930; float:right; text-align:left; position:relative; border-radius:5px; background:#1e1615ff;" cellpadding="5"
! colspan="2" style="font-size:17px; text-align:center; background-color:#B97FBA;color:#ffffff;" | {{{name|name}}}
+
! colspan="2"|<div class="ib-tbl-hd">[[File:Button_Pink.png|300px]]</div> <div class="ib-tbl-hdt">{{{name|name}}}</div>
 
|-
 
|-
| style= "width:250px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}.png{{pipe}}300px{{pipe}}]]}}} <br><div style="font-size:14px;">{{{caption|}}}</div>  
+
| style= "width:250px;" colspan="2" align="center" | {{{image|[[Image:{{PAGENAME}}.png{{pipe}}300px{{pipe}}]]}}} <br><div style="font-size:14px; color:#e5b964ff;">{{{caption|}}}</div>
 
|- valign="top"
 
|- valign="top"
! style="background:#eee; width:100px;" align="center" | Title:
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;" align="center" | Title:
| {{{title|-}}}
+
| <div style="color:#e5b964ff;">{{{title|-}}}</div>
 
|-
 
|-
! style="background:#eee; width:100px;"  align="center" | Location:
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" |Location:
| {{{location|-}}}
+
| <div style="color:#e5b964ff;">{{{location|-}}}</div>
 
|-
 
|-
 
{{ #if:{{{classification|}}} |
 
{{ #if:{{{classification|}}} |
 
{{pipe}}-
 
{{pipe}}-
! style="background:#f4e6d4; width:100px;"  align="center" {{pipe}} Class:
+
! style="background:#eee; color:#000000; border-radius:2px; width:100px;"  align="center" {{pipe}} Classification:
{{pipe}} {{{classification}}}
+
{{pipe}} <div style="color:#e5b964ff;">{{{classification}}}</div>
}}
 
{{ #if:{{{skilltrainer|}}} |
 
{{pipe}}-
 
! style="background:#f5e0c7; width:100px;" align="center" {{pipe}} Skill Trainer:
 
{{pipe}} {{{skilltrainer}}}
 
 
}}
 
}}
 
{{ #if:{{{dead|}}} |
 
{{ #if:{{{dead|}}} |
 
{{pipe}}-
 
{{pipe}}-
! style="background:#CB5140;color:#ffffff; width:250px;" colspan="2" align="center" {{pipe}} Deceased
+
! style="background:#CB5140;color:#ffffff; text-align:center; border-radius:2px; width:250px;" colspan="2" align="center"{{pipe}}Deceased
{{pipe}}
 
 
}}
 
}}
 
|}
 
|}
 +
{{ #if: {{{name|}}} | [[Category:Deity]] }}
 
<noinclude>
 
<noinclude>
 
{{clear}}__NOTOC__
 
{{clear}}__NOTOC__
Line 34: Line 29:
 
{{NPC infobox
 
{{NPC infobox
 
|name            =
 
|name            =
|image           =
+
|image           =
|caption         =
+
|caption         =
|title=
+
|title           =
|location         =
+
|location       =
|beastspeak      =
+
|classification  =  
|skilltrainer    =
+
|dead           =
|dead =
 
 
}}
 
}}
 
</pre>
 
</pre>
 
==Parameters==
 
==Parameters==
Long parameters will extend the width of the infobox. To keep it the correct size keep text short or use the  "< br>" function  
+
Long parameters will extend the width of the infobox. To keep it the correct size keep text short or use the  "< br>" function.
 
; name
 
; name
: Optional. Defaults to article name.
+
: Not Optional. Name of the deity.
 
; image
 
; image
: Optional. Defaults to a .jpg image of the article's name. If specified, use <code><nowiki>[[Image:Creature name.jpg|200px|]]</nowiki></code>
+
: Defaults to a .png image based on the article's name. Once the page is first created or previewed, a link will be generated for file uploading.
 
;caption
 
;caption
:Optional. Usually the description above the NPCs head.
+
: Optional. Provides a description of the image.
;title
+
; title
:Required. What the deity is often refereed to as (Norala=Goddess of Hunts,Vol=God of Death).  
+
: Required. What the deity is often refereed to as (Norala=Goddess of Hunts,Vol=God of Death).  
 
;location  
 
;location  
:Required. What realm or continent does the Desity reside on? Alharth? Verta? A Fae Realm?
+
: Required. What realm or continent does the Desity reside on? Alharth? Verta? A Fae Realm?
 
;classification
 
;classification
:Optional. Which Council Classification is the deity. See [[Guide To Nature Spirit Classification]] for details.
+
: Optional. Which Council Classification is the deity. See [[Guide to Nature Spirit Classification]] for details.
;skilltrainer
 
:Optional. Use to show if NPC can train a player in a skill. See below for example use.
 
 
;dead
 
;dead
 
:Optional. Enter "yes" to show that a Deity is Deceased.
 
:Optional. Enter "yes" to show that a Deity is Deceased.
  
 
==Description==
 
==Description==
Create an attractive "info card" for Deities. This is another way to liven up the pages. It also provides a consistent "at a glance" information box with vital information that is consistent across all creatures.
+
Create an attractive "info card" for Deities. This is another way to liven up the pages. It also provides a consistent "at a glance" information box with vital information that is consistent across all deities.
Note that the goal is not to cover everything that can fit into the card, as that is in the body of the article. If you have any suggestions for what should/could go in the infobox, please comment on the Talk page or the author's talk page. <span style="color:#484">This template will have more parameters, but is awaiting Wiki Extensions.</span>
+
Note that the goal is not to cover everything that can fit into the card, as that is in the body of the article. If you have any suggestions for what should/could go in the infobox, please comment on the Talk page or the author's talk page.
===Image===
+
=== Images  ===
 
The typical usage is to use this in a new article, save, and THEN upload the image by clicking the image link (which then is pre-set with the article name)
 
The typical usage is to use this in a new article, save, and THEN upload the image by clicking the image link (which then is pre-set with the article name)
 
If an image already exists which name does not match the article name, or in a different format, specify it.  
 
If an image already exists which name does not match the article name, or in a different format, specify it.  
Line 73: Line 65:
 
<pre>
 
<pre>
 
{{Deity infobox
 
{{Deity infobox
|name            = Mushroom Jack
+
|name            = Norala
|image            = [[File:Mushroom_Jack.jpg]]
+
|image            = [[File:Norala.png]]
|caption          = He smells kind of funny.
+
|caption          = She is strong and proud.
 
|title            = Goddess of Hunts
 
|title            = Goddess of Hunts
 
|location        = Alharth
 
|location        = Alharth
 
|classification  = Class 3
 
|classification  = Class 3
 
|dead = yes
 
|dead = yes
|beastspeak      = Cows, Pigs, Mushrooms.
 
 
}}
 
}}
  
 
</pre>
 
</pre>
 +
text
 
{{Deity infobox
 
{{Deity infobox
 
|name            = Norala
 
|name            = Norala
|image            = [[File:Mushroom_Jack.jpg]]
+
|image            = [[File:Norala.png]]
|caption          = He smells kind of funny.
+
|caption          = She is strong and proud.
 
|title            = Goddess of Hunts
 
|title            = Goddess of Hunts
 
|location        = Alharth
 
|location        = Alharth
 
|classification  = Class 3
 
|classification  = Class 3
 
|dead = yes
 
|dead = yes
|beastspeak      = Cows, Pigs, Mushrooms.
 
 
}}
 
}}
[[Category:Formatting templates|NPC infobox]]
+
[[Category:Formatting templates|Deity infobox]]
 
</noinclude>
 
</noinclude>

Latest revision as of 12:47, 16 June 2019

Button Pink.png
name
File:Deity infobox.png
Title:
-
Location:
-




Syntax

{{NPC infobox
|name            =
|image           =
|caption         =
|title           =
|location        =
|classification  = 
|dead            =
}}

Parameters

Long parameters will extend the width of the infobox. To keep it the correct size keep text short or use the "< br>" function.

name
Not Optional. Name of the deity.
image
Defaults to a .png image based on the article's name. Once the page is first created or previewed, a link will be generated for file uploading.
caption
Optional. Provides a description of the image.
title
Required. What the deity is often refereed to as (Norala=Goddess of Hunts,Vol=God of Death).
location
Required. What realm or continent does the Desity reside on? Alharth? Verta? A Fae Realm?
classification
Optional. Which Council Classification is the deity. See Guide to Nature Spirit Classification for details.
dead
Optional. Enter "yes" to show that a Deity is Deceased.

Description

Create an attractive "info card" for Deities. This is another way to liven up the pages. It also provides a consistent "at a glance" information box with vital information that is consistent across all deities. Note that the goal is not to cover everything that can fit into the card, as that is in the body of the article. If you have any suggestions for what should/could go in the infobox, please comment on the Talk page or the author's talk page.

Images

The typical usage is to use this in a new article, save, and THEN upload the image by clicking the image link (which then is pre-set with the article name) If an image already exists which name does not match the article name, or in a different format, specify it. If the image is larger/smaller the box will expand/shrink to fit it, have to specify what size you want it to appear(see below) keep in mind that the text will only be 300px in length.

Examples

{{Deity infobox
|name            = Norala
|image            = [[File:Norala.png]]
|caption          = She is strong and proud.
|title            = Goddess of Hunts
|location         = Alharth
|classification   = Class 3
|dead = yes
}}

text

Button Pink.png
Norala
File:Norala.png
She is strong and proud.
Title:
Goddess of Hunts
Location:
Alharth
Classification:
Class 3
Deceased