Forum:Template and Frame Questions

Ok I have 2 quick questions that have me stumped...

1) I am working with a templateand cannot figure out for the life of me; how to make it so I can have the image clicked and get redirected to a wiki page, rather than the image location.

2) How would I get a frame to show up around a box of text? The div tags I used show up in the editing box but not on the updated wikia page.

Thanks

~Fin


 * 1) Add link=ARTICLE NAME as an image parameter as seen here:
 * Example.jpg


 * 2) There are various ways to do that depending on the context of the text block and where it's placed. Easiest way to do it would be like that but you'd need to be more specific; is it for a table, infobox, stand-alone template? Where will it be used? Links might be helpful. Sovq 08:19, February 7, 2011 (UTC)

It seems you did not fully read my question...

1) This is a template so the code is different then what you say. Being a template, I would like to add something like this below...

and do a link = (Insert Link name here) command that the user can edit on any page. This way the template can be used for more then one thing... This does not seem to work and I am stumped as to how to make this work...

2) That doesn't seem to work... I tried many forms of the div command above and it will not show up on the page, only in the edit box.

Here is a link of the wikia I am currently working on... its still a WIP but its getting there ^__^ http://dungeondefenders.wikia.com


 * 1) I did read your question, you never mentioned you wanted the image link to be a separate parameter defined by the contributor. I have modified the template to do what I think you want it to do. How it works can be seen in my sandbox.


 * 2)In the same sandbox is the above text block with a white border. Don't you see it? Is that what you wanted?


 * EDIT - In the template the image height and width parameters are defined wrong. They won't work as intended. Also, if you're using the Rich Text Editor you may want to go back to source mode; div blocks and templates are easier to edit in source mode and the risk of breaking something is lower. But again; it would be useful to know where exactly you want the border to be? If it's the template, you'd be better off by defining the .template class in your MediaWiki:Wikia.css. Sovq 09:14, February 8, 2011 (UTC)

Thank you very much! ^__^

Next question, is there any way to line them up horizontally? Other then repeating the code in the template a few times?


 * If you want the images to show up horizontally and are not planning to add more features to the template I suggest you use tags instead. I have created a gallery based on where you used the template in my sandbox, so if that's the look you're trying to get I suggest you use galleries instead - the syntax is easier. If not; you can nest the templates in a table each cell containing a new template, but I imagine that requires more work and is less transparent than using galleries.Sovq 14:17, February 8, 2011 (UTC)

Pro... thank you very much ^__^

~Fin