Difference between revisions of "Template:RacePerks"

From Archives of Lusternian Lore
Jump to navigation Jump to search
(Made a template based on the tables that some race pages already have but others do not.)
 
(→‎Example: Yay, I have learned how to make the documentation more readable AND not screw up the template!)
 
(3 intermediate revisions by the same user not shown)
Line 16: Line 16:


==Example==
==Example==
<code><nowiki>{{RacePerks|1|2|3|4|5}}</nowiki></code> will look similar to what's below.
<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'''
|-
|-
| align="right" bgcolor="lightblue" | '''Level 1'''
| align="right" bgcolor="lightblue" | '''Level 1'''|| {{{1}}}
| ''{{{1}}}}''
|-
|-
| align="right" bgcolor="lightblue" | '''Level 25'''
| align="right" bgcolor="lightblue" | '''Level 25'''|| {{{2}}}
| ''{{{2}}}''
|-
|-
| align="right" bgcolor="lightblue" | '''Level 50'''
| align="right" bgcolor="lightblue" | '''Level 50'''|| {{{3}}}
| ''{{{3}}}''
|-
|-
| align="right" bgcolor="lightblue" | '''Demigod'''
| align="right" bgcolor="lightblue" | '''Demigod'''|| {{{4}}}
| ''{{{4}}}''
|-
|-
| align="right" bgcolor="lightblue" | '''Demigod+'''
| align="right" bgcolor="lightblue" | '''Demigod+'''|| {{{5}}}
| ''{{{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