FANDOM


Forums: Index Help desk Templates and table issues
Tabelhelp

Heres my problem, I do not want that annoying square there.

Hi I'm Okamifan1, and I am an admin for the Robogames Wiki. Anyway I need help with templates, I'm trying to do something that to my knowledge has not been done before. Anyway I am deeply weaving templates with a multi column table and the columns themselves are a template to help with this.
Tabelhelp 2

Notice how the Event, Opponent(s), Round, and Results are seperated from the rest of the table. I have concluded that annoying square is causing this.

But I have an issue, here are my screenshots of the problem, please read the captions.

Anyway here is the code: {| style="margin:6px;clear:both;" class="toc colour" width=550
| style="background:{{{1}}}; border:1px solid #AFA3BF; color:{{{2}}}; font-size:10pt; padding:4px;" align=center colspan="4"|
! scope="col"|Event
! scope="col"|Opponent(s)
! scope="col"|Round
! scope="col"|Results

Also here is the code for the table: {| border="0" cellspacing="1" cellpadding="1" style="width:500px;" class="article-table"

WARNING: You are using the {{Table}} template without the parameters Template:Mono and/or Template:Mono. When applying this template, the appearance of the text "Template:Tnf" in the code/markup indicates an incorrect use. Please ensure Template:Tnf is used according to its documentation, otherwise use wiki markupTemplate:\HTML (see Help:Tables).
{| style="background:transparent;"

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|-

|}


|-
Template:Results Top
|-
Template:Version
|-
Template:Competition
|-
| colspan="1" rowspan="4"|(Robogames Event)
|(Opponent)
|(Round)
|(Result)
|-
|(Opponent)
|(Round)
|(Result)
|-
|(Opponent)
|(Round)
|(Result)
|-
|(Opponent)
|(Round)
|(Result)
|}

Please help, I do want to know what, if anything I'm doing wrong.OkamiFan1 01:35, July 14, 2018 (UTC)

A link to a page where the bug is actually happening will be helpful. That way we can explore the code and see where the square is coming from. Miiohau (talk) 04:20, July 11, 2018 (UTC)

Alright the area where the square is happening is here, and the pages with the issues are here, and here. Sorry about that I was in such a panic to get it fixed.OkamiFan1 01:35, July 14, 2018 (UTC)

What is happening is you extra cell at the beginning see each | marks off a cell so the style="background:{{{1}}}; border:1px solid #AFA3BF; color:{{{2}}}; font-size:10pt; padding:4px;" align=center colspan="4" is being put in it own cell. Your Second problem is actually caused by you having tables within a table and the problematic template is actually Results Top I recommend you make the headers one template. I made example of what you need the final template to output here. Miiohau (talk) 23:08, July 14, 2018 (UTC)

Thanks a bunch that seemed to have solved it.OkamiFan1 13:44, July 16, 2018 (UTC)