Difference between revisions of "Template:GuideBox"

From NovaRO: Wiki
Jump to navigation Jump to search
(Incorporated GuideBox2 and GuideBox3 behaviors)
 
Line 2: Line 2:
 
! colspan="2" style="{{#if: {{{bgColor|}}} | background-color: {{{bgColor}}} | background-color: #a3cdd2}};" |{{{job}}}
 
! colspan="2" style="{{#if: {{{bgColor|}}} | background-color: {{{bgColor}}} | background-color: #a3cdd2}};" |{{{job}}}
 
|-
 
|-
! colspan="2" |[[File:{{{image}}}.png|center|frameless|300x300px]]
+
! colspan="2" |[[File:{{{image}}}{{#if: {{#pos:{{{image}}}|.|0}}|<!--Do Nothing if there is an extension-->|.png}}|center|frameless|300x300px]]
 
|-
 
|-
 
|'''Job Base:'''
 
|'''Job Base:'''
Line 10: Line 10:
 
|{{{author}}}
 
|{{{author}}}
 
|-
 
|-
| colspan="2" |
+
|style="{{#if: {{{str|}}}|display: table-cell;|display:none;}}" colspan=2|
 
{| class="wikitable" style="margin: auto; text-align:center;"
 
{| class="wikitable" style="margin: auto; text-align:center;"
 
! colspan="6" style="{{#if: {{{bgColor|}}} | background-color: {{{bgColor}}} | background-color: #a3cdd2}};" |Job Bonuses
 
! colspan="6" style="{{#if: {{{bgColor|}}} | background-color: {{{bgColor}}} | background-color: #a3cdd2}};" |Job Bonuses
Line 29: Line 29:
 
|}
 
|}
 
|}
 
|}
 
 
<br clear=all></includeonly><noinclude>
 
<br clear=all></includeonly><noinclude>
  
Line 40: Line 39:
 
; Parameters
 
; Parameters
 
; job : The job that the guide is about.
 
; job : The job that the guide is about.
; image : The name of image file that was uploaded to the wiki, the image needs to be a PNG.
+
; image : The name of image file that was uploaded to the wiki, if the file extension is not present it will default to PNG.
 
; basejob : The name of the first job of the class.
 
; basejob : The name of the first job of the class.
 
; author : The author name.
 
; author : The author name.
Line 49: Line 48:
 
; dex : The DEX job bonus of the class.
 
; dex : The DEX job bonus of the class.
 
; luk : The LUK job bonus of the class.
 
; luk : The LUK job bonus of the class.
 +
;: To omit the job bonuses table just don't use any of the stats.
 
; bgColor : '''(Optional)''' Changes the title background color, if it's not specified the default will be used.
 
; bgColor : '''(Optional)''' Changes the title background color, if it's not specified the default will be used.
 
;: ''bgColor'' accepts colors value according to the W3C [https://www.w3schools.com/colors/default.asp CSS Colors] specification.
 
;: ''bgColor'' accepts colors value according to the W3C [https://www.w3schools.com/colors/default.asp CSS Colors] specification.
Line 57: Line 57:
  
 
{{GuideBox|job=Guillotine Cross|image=Guillotinecross|basejob=Thief|author=WikiAuthor|str=8|agi=16|vit=6|int=5|dex=9|luk=4}}
 
{{GuideBox|job=Guillotine Cross|image=Guillotinecross|basejob=Thief|author=WikiAuthor|str=8|agi=16|vit=6|int=5|dex=9|luk=4}}
 +
 +
Using <code><nowiki>{{GuideBox|job=Guillotine Cross|image=Guillotinecross|basejob=Thief|author=WikiAuthor}}</nowiki></code> will result into:
 +
 +
{{GuideBox|job=Guillotine Cross|image=Guillotinecross|basejob=Thief|author=WikiAuthor}}
 
</noinclude>
 
</noinclude>

Latest revision as of 12:23, 30 June 2020


GuideBox is used to give basic information about the class the guide refers, the author name and the job stats bonus.

Syntax

{{GuideBox|job=|image=|basejob=|author=|str=|agi=|vit=|int=|dex=|luk=|bgColor=}}

Parameters
job 
The job that the guide is about.
image 
The name of image file that was uploaded to the wiki, if the file extension is not present it will default to PNG.
basejob 
The name of the first job of the class.
author 
The author name.
str 
The STR job bonus of the class.
agi 
The AGI job bonus of the class.
vit 
The VIT job bonus of the class.
int 
The INT job bonus of the class.
dex 
The DEX job bonus of the class.
luk 
The LUK job bonus of the class.
To omit the job bonuses table just don't use any of the stats.
bgColor 
(Optional) Changes the title background color, if it's not specified the default will be used.
bgColor accepts colors value according to the W3C CSS Colors specification.

Example

Using {{GuideBox|job=Guillotine Cross|image=Guillotinecross|basejob=Thief|author=WikiAuthor|str=8|agi=16|vit=6|int=5|dex=9|luk=4}} will result into:

Guillotine Cross
Guillotinecross.png
Job Base: Thief
Written By: WikiAuthor
Job Bonuses
STR AGI VIT INT DEX LUK
8 16 6 5 9 4


Using {{GuideBox|job=Guillotine Cross|image=Guillotinecross|basejob=Thief|author=WikiAuthor}} will result into:

Guillotine Cross
Guillotinecross.png
Job Base: Thief
Written By: WikiAuthor
Job Bonuses
STR AGI VIT INT DEX LUK
{{{str}}} {{{agi}}} {{{vit}}} {{{int}}} {{{dex}}} {{{luk}}}