Difference between revisions of "Template:Quality"

From ShadowHaven Reloaded
Jump to navigation Jump to search
(Created page with "<includeonly> {| cellpadding=5 cellspacing=0 style="border: gray 2px solid; width: 15%; -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #444" |- | {| class="wikitable" style="border-style: solid; border-width: 10px;" ! style="text-align:left;max-width: 70%" | {{{Name}}} ! style="text-align:left;max-width: 30%" | {{{KarmaCost}}} |- ! colspan="2" style="text-align:left; width: 100%" | {{{Description}}} |}</includeonly> <noi...")
 
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{| cellpadding=5 cellspacing=0 style="border: gray 2px solid; width: 15%;  -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #444"
{| cellpadding=5 cellspacing=0 style="border: gray 2px solid; width: {{{ScreenWidthPercentage|30}}}%;  -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #444"
|-  
|-  
|
|


{| class="wikitable" style="border-style: solid; border-width: 10px;"
{| style="width: 100%;"
! style="text-align:left;max-width: 70%" | {{{Name}}}
! colspan="2" style="font-size:110%; border-bottom: 1px solid red; color: red; text-align:left;max-width: 100%" | {{{Name}}}
! style="text-align:left;max-width: 30%" | {{{KarmaCost}}}
|-
|-
! colspan="2" style="text-align:left; width: 100%" | {{{Description}}}  
| style="font-size:100%; text-align:left; max-width: 60%" | Requires: {{{Requires| }}}
|}</includeonly>
| style="font-size:100%; text-align:left; max-width: 40%" | Cost: {{{KarmaCost}}} karma
|-
| colspan="2" style="font-size:80%; border-top: 1px solid; text-align:left; width: 100%" | {{{Description}}}  
|}
|}
</includeonly>
<noinclude>
<noinclude>
{| cellpadding=5 cellspacing=0 style="border: gray 2px solid; width: 100%;  -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #444"
{| cellpadding=5 cellspacing=0 style="border: gray 2px solid; width: 100%;  -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #444"
Line 18: Line 22:


*Name The name of the quality.
*Name The name of the quality.
*ScreenWidthPercentage This is an optional param which tells the box to only take up X% of the area its assigned to. This will default to 30 but might need to be changed to something else if placed within its own table or something.
*KarmaCost The base cost of the quality in karma (bonus or penalty).
*KarmaCost The base cost of the quality in karma (bonus or penalty).
*Requires Any special requirements that might exist.
*Description The text associated with the quality.
*Description The text associated with the quality.


Line 25: Line 31:
<pre>
<pre>
{{Quality|
{{Quality|
|Name="Test Quality"
|ScreenWidthPercentage=30 (optional, defaults to 30)
|Name=Test Quality
|KarmaCost=14
|KarmaCost=14
|Description="This is some text"
|Requires=Requirement
|Description=This is some text
|}}
|}}
</pre>
</pre>
Line 33: Line 41:
The template will return the characters current essence/total essence.  
The template will return the characters current essence/total essence.  
{{Quality|
{{Quality|
|Name="Test Quality"
|ScreenWidthPercentage=50
|Name=Test Quality
|KarmaCost=14
|KarmaCost=14
|Description="This is some text this is lots of text and I am going to write a bunch of it"
|Requires=Requirement
|Description=This is some text
|}}
|}}



Latest revision as of 12:57, 25 August 2024


Usage

This template helps create a standard display format for custom qualities.

  • Name The name of the quality.
  • ScreenWidthPercentage This is an optional param which tells the box to only take up X% of the area its assigned to. This will default to 30 but might need to be changed to something else if placed within its own table or something.
  • KarmaCost The base cost of the quality in karma (bonus or penalty).
  • Requires Any special requirements that might exist.
  • Description The text associated with the quality.

So, if you enter this:

{{Quality|
|ScreenWidthPercentage=30 (optional, defaults to 30)
|Name=Test Quality
|KarmaCost=14
|Requires=Requirement
|Description=This is some text
|}}

The template will return the characters current essence/total essence.

Test Quality
Requires: Requirement Cost: 14 karma
This is some text