Hey all, I'm from https://vortox.miraheze.org and having some confusion in regards to templates and potentially tables. I've created a template for a preformatted InputBox so that I can use it in a table without so many line breaks. Here's what the template looks like:
<inputbox>
type=create
width=10
break=no
useve=true
preload=Template:{{{type|Blank}}}/preload
</inputbox>
This template has a parameter, type, that I was hoping would complete the InputBox preload syntax (Template:Type/preload). However, this doesn't seem to work as expected, and it always tries to load the Template:Blank/preload template, no matter what parameter is passed. So it always falls back on the default parameter. If I omit this default parameter from the TinyInputBox template, it simply tries to load Template:{{{type}}}/preload, which... doesn't exist, either.
Here's an example of me trying to use the template:
{|
| '''Items:''' || <span style="float: right;">Artifact</span> || {{TinyInputBox|type=Artifact}}
|}
I was wondering if it was the table that messed up the template syntax, but it doesn't seem to work outside of tables, either. I'm at a loss. Using anonymous parameters doesn't work, either.
I may be overlooking a really simple solution, but I've read the [[mw:Help:Templates]] page about 3 times now and I can't figure it out. I'll link the template I created and where I'm trying to use it:
https://vortox.miraheze.org/wiki/Template:TinyInputBox
https://vortox.miraheze.org/wiki/Template:Other_templates
Final Frontier is a collaborative sci-fi project set in a distant future, where the galaxy is ruled by the overreaching Galactic Union. Final Frontier comprises numerous homebrew tabletop campaigns, where players' ideas have brought the galaxy alive with unique races, characters, societies, and legends. All are welcome to add their own creations...