Template:Race: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(16 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{{1|}}}
<includeonly>{{#switch:{{{1|}}}
| Human = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[{{{1}}}]]
| Human
| Githyanki = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[{{{1}}}]]
| Githyanki
| Half-Orc = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[{{{1}}}]]
| Half-Orc
| Dwarf = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[{{{1}}}]]
| Dwarf
| Elf = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[{{{1}}}]]
| Elf
| Drow = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[{{{1}}}]]
| Drow
| Tiefling = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[{{{1}}}]]
| Tiefling
| Halfling = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[{{{1}}}]]
| Halfling
| Half-Elf = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[{{{1}}}]]
| Half-Elf
| Gnome = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[{{{1}}}]]
| Gnome
| Dragonborn = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[{{{1}}}]]
| Dragonborn
| Hill Dwarf = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Dwarf#Hill Dwarves|Hill Dwarf]]
| Hill Dwarf
| Mountain Dwarf = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Dwarf#Mountain Dwarves|Mountain Dwarf]]
| Gold Dwarf
| Duergar = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Dwarf#Duergar|Duergar]]
| Mountain Dwarf
| High Elf = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Elf#High Elves|High Elf]]
| Shield Dwarf
| Wood Elf = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Elf#Wood Elves|Wood Elf]]
| Duergar
| Seldarine Drow = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Drow#Seldarine Drow|Seldarine Drow]]
| High Elf
| Lolth-Sworn Drow = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Drow#Lolth-Sworn Drow|Lolth-Sworn Drow]]
| Wood Elf
| Asmodeus Tiefling = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Tiefling#Asmodeus Tieflings|Asmodeus Tieflings]]
| Seldarine Drow
| Mephistopheles Tiefling = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Tiefling#Mephistopheles Tieflings|Mephistopheles Tieflings]]
| Lolth-Sworn Drow
| Zariel Tiefling = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Tiefling#Zariel Tieflings|Zariel Tieflings]]
| Asmodeus Tiefling
| Lightfoot Halfling = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Halfling#Lightfoot Halflings|Lightfoot Halfling]]
| Mephistopheles Tiefling
| Strongheart Halfling = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Halfling#Strongheart Halflings|Strongheart Halfling]]
| Zariel Tiefling
| Wood Half-Elf = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Half-Elf#Wood Half-Elves|Wood Half-Elf]]
| Lightfoot Halfling
| High Half-Elf = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Half-Elf#High Half-Elves|High Half-Elf]]
| Strongheart Halfling
| Drow Half-Elf = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Half-Elf#Drow Half-Elves|Drow Half-Elf]]
| Wood Half-Elf
| Rock Gnome = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Gnome#Rock Gnomes|Rock Gnome]]
| High Half-Elf
| Deep Gnome = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Gnome#Deep Gnomes|Deep Gnome]]
| Drow Half-Elf
| Forest Gnome = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Gnome#Forest Gnomes|Forest Gnome]]
| Rock Gnome
| Black Dragonborn = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Dragonborn#Black Dragonborn|Black Dragonborn]]
| Deep Gnome
| Blue Dragonborn = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Dragonborn#Blue Dragonborn|Blue Dragonborn]]
| Forest Gnome
| Brass Dragonborn = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Dragonborn#Brass Dragonborn|Brass Dragonborn]]
| Black Dragonborn
| Bronze Dragonborn = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Dragonborn#Bronze Dragonborn|Bronze Dragonborn]]
| Blue Dragonborn
| Copper Dragonborn = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Dragonborn#Copper Dragonborn|Copper Dragonborn]]
| Brass Dragonborn
| Gold Dragonborn = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Dragonborn#Gold Dragonborn|Gold Dragonborn]]
| Bronze Dragonborn
| Green Dragonborn = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Dragonborn#Green Dragonborn|Green Dragonborn]]
| Copper Dragonborn
| Red Dragonborn = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Dragonborn#Red Dragonborn|Red Dragonborn]]
| Gold Dragonborn
| Silver Dragonborn = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Dragonborn#Silver Dragonborn|Silver Dragonborn]]
| Green Dragonborn
| White Dragonborn = {{Icon|Race {{{1}}}.png|{{{2|25}}}|link={{{1}}}}}{{nbts}}[[Dragonborn#White Dragonborn|White Dragonborn]]
| Red Dragonborn
| {{{1|}}}
| Silver Dragonborn
}}</includeonly><noinclude>
| White Dragonborn = {{IconLink|Race {{{1}}}.png|{{{1}}}|{{{2|{{{1}}}}}}|size={{{w|25}}}|nowrap=y}}
Usage (case sensitive! Capitalize Half-Elf and Half-Orc!):
| #default = [[{{{1}}}|{{{2|{{{1}}}}}}]]
}}</includeonly><noinclude>{{documentation|content=
Insert a link to one of the [[Races|playable races]] accompanied by the associated icon.


{{code|<nowiki>{{Race|Half-Elf}}</nowiki>}}<br>
== Usage ==
{{code|<nowiki>{{Race|Duergar}}</nowiki>}}
This is intended mainly for lists, not in-line in body content as per the [[Help:Style manual|Style Manual]]. The race name is case sensitive and needs to exactly match (e.g. Half-Elf, not Half Elf).


Result:<br>{{Race|Half-Elf}}<br>{{Race|Duergar}}
== Examples ==
{{Template demo
| style = table
| caption 1 = Basic usage
| <nowiki>{{Race|Duergar}}</nowiki>
| caption 2 = Adjusted icon size
| <nowiki>{{Race|Half-Orc|w=35}}</nowiki>
| caption 3 = Link alias
| <nowiki>{{Race|Half-Elf|Half-Elves}}</nowiki>
}}


If you want a bigger or smaller image specify so:
== See also ==
{{code|<nowiki>{{Race|Half-Orc|35}}</nowiki>}}
* {{t link|Ability}} - An equivalent template for [[abilities|ability scores]]
 
* {{t link|Background}} - An equivalent template for [[backgrounds]]
Result: {{Race|Half-Orc|35}}
* {{t link|Deity}} - An equivalent template for [[deities]]
* {{t link|Class}} - An equivalent template for [[classes]]
* {{t link|Skill}} - An equivalent template for [[skills]]


== Template data==
<templatedata>
{
    "description": "Insert a link to a race accompanied by the associated icon. For use in lists and similar contexts only. This should not be used inline in the body of a paragraph as per the style manual. In those cases, use a normal link instead.",
    "format": "inline",
"params": {
"1": {
"label": "Race name",
"description": "The name of the race. This is case sensitive.",
"type": "string",
            "suggestedvalues": [
                "Human",
                "Githyanki",
                "Half-Orc",
                "Dwarf",
                "Elf",
                "Drow",
                "Tiefling",
                "Halfling",
                "Half-Elf",
                "Gnome",
                "Dragonborn",
                "Hill Dwarf",
                "Gold Dwarf",
                "Mountain Dwarf",
                "Shield Dwarf",
                "Duergar",
                "High Elf",
                "Wood Elf",
                "Seldarine Drow",
                "Lolth-Sworn Drow",
                "Asmodeus Tiefling",
                "Mephistopheles Tiefling",
                "Zariel Tiefling",
                "Lightfoot Halfling",
                "Strongheart Halfling",
                "Wood Half-Elf",
                "High Half-Elf",
                "Drow Half-Elf",
                "Rock Gnome",
                "Deep Gnome",
                "Forest Gnome",
                "Black Dragonborn",
                "Blue Dragonborn",
                "Brass Dragonborn",
                "Bronze Dragonborn",
                "Copper Dragonborn",
                "Gold Dragonborn",
                "Green Dragonborn",
                "Red Dragonborn",
                "Silver Dragonborn",
                "White Dragonborn"
            ],
"required": true
},
        "2": {
"label": "Alias",
"description": "A user-defined alias to be shown instead of the race name.",
"type": "string"
},
"w": {
"label": "Icon size",
"description": "The pixel size of the accompanying icon.",
"type": "number"
}
}
}
</templatedata>}}
[[Category:Templates]]
[[Category:Templates]]
[[Category:Link templates]]
</noinclude>
</noinclude>

Latest revision as of 21:43, 29 July 2024

Template documentation

Insert a link to one of the playable races accompanied by the associated icon.

Usage

This is intended mainly for lists, not in-line in body content as per the Style Manual. The race name is case sensitive and needs to exactly match (e.g. Half-Elf, not Half Elf).

Examples

Example Markup Renders as
Basic usage
{{Race|Duergar}}
Duergar Duergar
Adjusted icon size
{{Race|Half-Orc|w=35}}
Half-Orc Half-Orc
Link alias
{{Race|Half-Elf|Half-Elves}}
Half-Elves Half-Elves

See also

Template data

Insert a link to a race accompanied by the associated icon. For use in lists and similar contexts only. This should not be used inline in the body of a paragraph as per the style manual. In those cases, use a normal link instead.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Race name1

The name of the race. This is case sensitive.

Suggested values
Human Githyanki Half-Orc Dwarf Elf Drow Tiefling Halfling Half-Elf Gnome Dragonborn Hill Dwarf Gold Dwarf Mountain Dwarf Shield Dwarf Duergar High Elf Wood Elf Seldarine Drow Lolth-Sworn Drow Asmodeus Tiefling Mephistopheles Tiefling Zariel Tiefling Lightfoot Halfling Strongheart Halfling Wood Half-Elf High Half-Elf Drow Half-Elf Rock Gnome Deep Gnome Forest Gnome Black Dragonborn Blue Dragonborn Brass Dragonborn Bronze Dragonborn Copper Dragonborn Gold Dragonborn Green Dragonborn Red Dragonborn Silver Dragonborn White Dragonborn
Stringrequired
Alias2

A user-defined alias to be shown instead of the race name.

Stringoptional
Icon sizew

The pixel size of the accompanying icon.

Numberoptional