Template:Expand

From Warcraft Wiki
Jump to navigation Jump to search

Creates a pretend blue link to a page that, when clicked, causes content from that page to transclude underneath. Do not use multiple times for the same transclusion on one page.

Advanced usage

  • Use inline= to also make an inline link to text on the next line
  • For API pages, use {{Expand/API}} to automatically shorten the name of constans, structs and enumerations

Example

This is the previous paragraph of text with an expand template right underneath.
{{Expand|battlePetTypeID|Battle pet types}}
This is the another paragraph of text with an inline link: {{Expand|Enum Club.ClubType|Club.ClubType|inline=}}
This is a final paragraph of text

This is the previous paragraph of text with an expand template right underneath.

⊞ Battle pet types
battlePetTypeID
ID English NameEnglish: _G["PET_TYPE_SUFFIX"][id]
Localized: _G["BATTLE_PET_NAME_"..id]
1
Humanoid
2
Dragonkin
3
Flying
4
Undead
5
Critter
6
Magic
7
Elemental
8
Beast
9
Aquatic
10
Mechanical

This is the another paragraph of text with an inline link: Enum.ClubType

Enum.ClubType
Value Field Description
0 BattleNet
1 Character
2 Guild
3 Other

This is a final paragraph of text