Forum:Advanced Templates
Wikia - creating communities
How can I make templates with {{{1}}}, {{{2}}}, etc. I tried creating them here but when i test with the preview, it doesn't turn out right. Thanks for any help. -AMK152 01:26, 4 June 2007 (UTC)
- you where missing certain wiki tags:
-
{|means start of a table. -
|-this means that what is next is a another row. -
|}means that here ends your table - i already change your text hopes this helps --Cizagna (Talk) 03:19, 4 June 2007 (UTC)
- Because it i coded the table as rows and not as columns, you did not tell how you wanted the table... you will have to remove the |- from the template.
- If you are going to code the header code {| and the bottom code |} separate from the template then you will have to remove it from the template or use the <noinclude> tags --Cizagna (Talk) 07:50, 5 June 2007 (UTC)
- Something is still wrong. Did I mess up the code? -AMK152 20:44, 6 June 2007 (UTC)
yes and no, it depends on what you doing with the template, when you are putting the start of a table, and then in the talk page where you are putting again a start of another table well you get nested tables. i already fix it by adding <noinclude> tags so it would work under your current requirements, i recomend you to go and read a little the MediaWiki Editing Help Page it will help you understand more what you are doing, and remember when you are using a template its like copying all what is inside the template and putting it on the page that you want to so you must harmonize the diferent elements you are combining, in this case like i told the issue was that you where nesting templates. So you had 2 options a) removing the start table code and the end table code, or hide it like i did, so it looks good on the template page, and still works as you want to in the page where you are using the template --Cizagna (Talk) 00:56, 7 June 2007 (UTC)
- Thanks. Is there anyway that on field {{{4}}} that color patterns can result from typing in a particular text? Like if I type in "First Editions" it would result in white background, black text, or if i type in "Treasure Hunt" it would result in green background, white text? There wasn't any mention of how to do color on that help article. I don't really want to go through with a |bgcolor="{{{6}}}"|<font color="{{{7}}}">{{{4}}}</font> because it will make the lines o nthe articles too long; i hope there is a good solution. Thanks for any help.AMK152 21:03, 10 June 2007 (UTC)