Template:FollowerTable: Difference between revisions
TheGmaster (talk | contribs) No edit summary |
TheGmaster (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude>''<big>Editing this template will '''not''' change what the template displays, see [[Template:FollowerTable#Editing|#Editing]] for more information</big>'' | ||
{{#invoke:Creatures|singleFollower|{{{1|{{PAGENAME}}}}}||{{{image|{{{ | |||
{{PAGENAME}} generates a table for a follower with data pulled from a data module, like the example below of a Polar Bear: | |||
{{FollowerTable|Polar Bear}} | |||
If the requested creature is not a known tameable, the template will look for a summon-able creature with the same name. There are some creatures summoned with the "Summon Creature" spell that are also tameable, in these instances the "summon" type can be specified: | |||
{{FollowerTable|Polar Bear|summon}} | |||
''As of writing summoned creatures have identical stats to their tameable counterparts, so the type really only changes the table's format. In the event that this changes the data is stored separately.'' | |||
== Parameters == | |||
{| class="wikitable" style="text-align:center" | |||
! Name | |||
! Alias | |||
! Default Value | |||
! Function | |||
! Example | |||
|- | |||
| name | |||
| 1 | |||
| {{PAGENAME}} | |||
| style="text-align:left"| The name of the follower to display, case-sensitive. | |||
| Warpig | |||
|- | |||
| type | |||
| 2 | |||
| tame* | |||
| style="text-align:left"| The type of follower to display; Tame or Summon. Not case-sensitive | |||
| tame/TaMeaBle/summon/sUmMoNable | |||
|- | |||
| image | |||
| 3 | |||
| <followername>.jpg | |||
| style="text-align:left"| The name of the image file of the creature, by default the template links a jpg image with the creature's name, in all lowercase with no spaces. | |||
| warpig.jpg | |||
|- | |||
| section | |||
| 4 | |||
| | |||
| style="text-align:left"| The section to add before the table, if a value is given | |||
| Tameable Creature Stats | |||
|} | |||
== Editing == | |||
This template is generated by [[Module:Creatures]], which conditionally formats the follower's data, this cannot be edited without a basic understanding of Lua, or at least general programming. However the data can be edited with little to no knowledge of programming. The follower's data is pulled from one of two sources depending on the type specified, and some from the normal creature data: | |||
* [[Module:TameableCreatureData]] | |||
* [[Module:SummonableCreatureData]] | |||
* [[Module:WildCreatureData]] (slayer, location, etc) | |||
Each modules documentation (linked at the top of their pages) gives details on how to structure data in the Lua tables, after editing it is recommended that editors make sure the template still functions properly. | |||
These modules were created by [[User:TheGmaster]], feel free to dm any questions/concerns/requests directly via Discord @thegmaster1. | |||
</noinclude><onlyinclude>{{#invoke:Creatures|singleFollower|name={{{name|{{{1|{{PAGENAME}}}}}}}}|type={{{type|{{{2|}}}}}}|image={{{image|{{{3|}}}}}}|section={{{section|{{{4|}}}}}}|namespace={{NAMESPACE}}}}</onlyinclude> |
Latest revision as of 20:59, 10 November 2024
Editing this template will not change what the template displays, see #Editing for more information
FollowerTable generates a table for a follower with data pulled from a data module, like the example below of a Polar Bear:
Polar Bear | |||||||
---|---|---|---|---|---|---|---|
Min Taming | Control Slots | Hits | Class | Melee Damage | Armor | Wrestling | |
55 | 1 | 175 | Attack | 18 - 22 | 25 | 55 | |
Attack Speed | Magic Resist | Poison Resist | Special Resist | Poison | Poisoning | Stealth | Underdog Scalar |
? | 50 | 1.371 |
If the requested creature is not a known tameable, the template will look for a summon-able creature with the same name. There are some creatures summoned with the "Summon Creature" spell that are also tameable, in these instances the "summon" type can be specified:
Polar Bear | ||||||
---|---|---|---|---|---|---|
Spell | Control Slots | Hits | Melee Damage | Armor | Wrestling | |
Summon Creature | 1 | 175 | 18 - 22 | 25 | 55 | |
Attack Speed | Magic Resist | Poison Resist | Special Resist | Poison | Poisoning | Stealth |
? | 50 |
As of writing summoned creatures have identical stats to their tameable counterparts, so the type really only changes the table's format. In the event that this changes the data is stored separately.
Parameters
Name | Alias | Default Value | Function | Example |
---|---|---|---|---|
name | 1 | FollowerTable | The name of the follower to display, case-sensitive. | Warpig |
type | 2 | tame* | The type of follower to display; Tame or Summon. Not case-sensitive | tame/TaMeaBle/summon/sUmMoNable |
image | 3 | <followername>.jpg | The name of the image file of the creature, by default the template links a jpg image with the creature's name, in all lowercase with no spaces. | warpig.jpg |
section | 4 | The section to add before the table, if a value is given | Tameable Creature Stats |
Editing
This template is generated by Module:Creatures, which conditionally formats the follower's data, this cannot be edited without a basic understanding of Lua, or at least general programming. However the data can be edited with little to no knowledge of programming. The follower's data is pulled from one of two sources depending on the type specified, and some from the normal creature data:
- Module:WildCreatureData (slayer, location, etc)
Each modules documentation (linked at the top of their pages) gives details on how to structure data in the Lua tables, after editing it is recommended that editors make sure the template still functions properly.
These modules were created by User:TheGmaster, feel free to dm any questions/concerns/requests directly via Discord @thegmaster1.