I've started figuring out how to use attachments and templates and I've been setting up a basic infobox template. The template is supposed to contain an image. However, the attachment loses it's link when I place it in the template.
This is the template code:
And this is what I have in my article:Code:<div class="infobox" style="font-size:89%; width:300px;"> <div class="infobox_header">[var]PAGENAME[/var] <div class="infobox_image">{{{Image|Image}}}</div> Mythborn</div> <div class="infobox_body"> <dl> <dd>Alignment</dd><dt>{{{alignment|}}}</dt> <dd>LIfespan</dd><dt>{{{Lifespan|}}}</dt> <dd>Special Abilities</dd><dt>{{{Special Abilities|}}}</dt> <dd>Weaknesses</dd><dt>{{{Weaknesses|}}}</dt> </dl> </div></div>
Is there a better way to set this up so that the attached file retains the link?Code:[template]InfoboxMythborn |Image = [file]Image:Cindalqai|thumb|none[/file] |Alignment = Any, but stereotyped as neutral to evil |Lifespan = 400 years |Special Abilities = Gem-weaving, night vision |Weaknesses = Sunlight, reliance on gems for magic[/template]
Reply With Quote
Bookmarks