(→Tb item templates: new section) |
m (Reply) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== Tb item templates == | == Tb item templates == | ||
How about having a single template with all items in the game indexed in it (name/image/id) with a switch statement to return given item upon entering its in-game name in the template's parameter? Is that feasible, would it have effects on performance or rendering the content on the wiki pages? | How about having a single template with all items in the game indexed in it (name/image/id) with a switch statement to return given item upon entering its in-game name in the template's parameter? Is that feasible, would it have effects on performance or rendering the content on the wiki pages? | ||
[[User:Nextej|Nextej]] ([[User talk:Nextej|talk]]) 19:20, 20 February 2025 (UTC) | [[User:Nextej|Nextej]] ([[User talk:Nextej|talk]]) 19:20, 20 February 2025 (UTC) | ||
: Yeah, that sounds way better than a million individual templates. [[User:ABC-DEFG|ABC-DEFG]] ([[User talk:ABC-DEFG|talk]]) 14:08, 22 February 2025 (UTC) | |||
: Okay, I just got all the food items loaded into {{tlx|tb}}. Materials are next. [[User:ABC-DEFG|ABC-DEFG]] ([[User talk:ABC-DEFG|talk]]) 18:07, 1 March 2025 (UTC) | |||
Latest revision as of 18:07, 1 March 2025
Tb item templatesEdit
How about having a single template with all items in the game indexed in it (name/image/id) with a switch statement to return given item upon entering its in-game name in the template's parameter? Is that feasible, would it have effects on performance or rendering the content on the wiki pages?