Difference between revisions of "Template:RacePerks"
Jump to navigation
Jump to search
(→Example: Removed italics from the perk text boxes. It seemed unnecessary and caused oddities.) |
(→Example: Yay, I have learned how to make the documentation more readable AND not screw up the template!) |
||
Line 16: | Line 16: | ||
==Example== | ==Example== | ||
<code><nowiki>{{RacePerks| | <code><nowiki>{{RacePerks|Feeling|Hearing|Smelling|Tasting|Seeing}}</nowiki></code> will look similar to what's below. | ||
{{RacePerks|Feeling|Hearing|Smelling|Tasting|Seeing}} | |||
<!-- Between the onlyinclude tags is where the actual template code happens. --> | <!-- Between the onlyinclude tags is where the actual template code happens. --> | ||
<onlyinclude>{| border="0" cellpadding="5" cellspacing="3" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; font-size: 95%;" style="margin:2 2 1em 1em;" | <includeonly><onlyinclude>{| border="0" cellpadding="5" cellspacing="3" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; font-size: 95%;" style="margin:2 2 1em 1em;" | ||
|- | |- | ||
| style="font-size: larger; color:white" align="center" colspan="2" bgcolor="darkblue" | '''Perks''' | | style="font-size: larger; color:white" align="center" colspan="2" bgcolor="darkblue" | '''Perks''' | ||
Line 33: | Line 34: | ||
| align="right" bgcolor="lightblue" | '''Demigod+'''|| {{{5}}} | | align="right" bgcolor="lightblue" | '''Demigod+'''|| {{{5}}} | ||
|- | |- | ||
|}</onlyinclude> | |}</onlyinclude></includeonly> | ||
[[Category: Templates]] | [[Category: Templates]] |
Latest revision as of 00:35, 10 July 2022
Template for listing racial perks in a structured way.
Syntax
{{RacePerks|<L1Perk>|<L25Perk>|<L50Perk>|<DemigodPerk>|<Demigod+Perk>}}
Parameters
NOTE: parameters must be in order
<L1Perk>
should be the text for the Level 1 perk.<L25Perk>
should be the text for the Level 25 perk.<L50Perk>
should be the text for the Level 50 perk.<DemigodPerk>
should be the text for the Demigod perk.<Demigod+Perk>
should be the text for the Demigod+ perk.
Returns
This appears on the page as a nifty table.
Example
{{RacePerks|Feeling|Hearing|Smelling|Tasting|Seeing}}
will look similar to what's below.
Perks | |
Level 1 | Feeling |
Level 25 | Hearing |
Level 50 | Smelling |
Demigod | Tasting |
Demigod+ | Seeing |