Jump to content

Template:Trait/doc: Difference between revisions

From Mango's Lewd Diplomacy: Official Wiki
MLD>Lorenerd11
 
Mango Stellaris (talk | contribs)
m 1 revision imported
 
(No difference)

Latest revision as of 20:38, 10 May 2025

This is the documentation page for Template:Trait.
When it is viewed directly, links using variables may appear broken; do not replace these with hardcoded page names or URLs.

Template used for leader traits. See Category:Leader trait icons for the trait images and Category:Leader trait icon elements for the trait background and overlay images.

Parameters[edit source]

Parameter Description Required Default
1 Image file name, not including "Leader_trait_" or "png" required
2 Name of the icon, unnecessary if it matches 1 optional [1]
w Size of the icon
Cannot use x24px format
optional 34px
bg Icon background, uses basic trait background by default: optional basic File:Leader trait bg basic.png
rarity Trait rarity, used to determine trait frame and overlay.
veteran=yes or destiny=yes can also be used instead.
optional
tier Used to indicate trait tier/level optional
council Adds the councilor overlay File:Leader trait bg basic.pngFile:Leader trait overlay councilor.png optional
class Sets which leader class the trait belongs to, used to determine which page is linked by default optional Common leader traits
link Sets a custom link optional [class] traits#[3]
hover Sets a custom hover text, overrides tier number. optional [3]
image Sets an alternate image for trait icon optional Leader trait [1].png

Examples[edit source]

Wikitext Icon
{{trait|Architectural Sense|class=official|rarity=veteran|council=yes}} File:Leader trait bg basic.pngFile:Leader trait overlay veteran.pngFile:Leader trait architectural sense.pngFile:Leader trait overlay councilor.pngArchitectural Sense
{{trait|space miner|Geology Expert|w=34px|veteran=yes|tier=3}} File:Leader trait bg basic.pngFile:Leader trait overlay veteran.pngFile:Leader trait space miner.pngFile:Leader trait tier 3.pngGeology Expert III
{{trait|Scholarium Explorer|bg=spec|class=scientist}} File:Leader trait bg specialist.pngFile:Leader trait scholarium explorer.pngScholarium Explorer
Cookies help us deliver our services. By using our services, you agree to our use of cookies.