FANDOM


  • Hello, I'm trying to make a table like this:



    Tableissue



    But I don't know how to do it.

    Could someone help me with this?



    Thank you for your time

    "The Phenomenal" Team69Roll(talk) 11:07, September 28, 2019 (UTC)

    Link of the template:

    https://puroresusystem.fandom.com/wiki/Template:Table_test

      Loading editor
    • That table you included doesn't work because it's not closed with |}. I'd also recommend not using includeonly tags during testing as you can't preview it.

      Have you read Help:Tables?

        Loading editor
    • ok thank you

        Loading editor
    • Sorry, but I read and tried but nothing, it didn't get the result I wanted, how can I do the table?

        Loading editor
    • Well... what is the result you wanted? You still haven't closed the table like I mentioned above.

        Loading editor
    • I have closed the table. Now, is that what you want? 

        Loading editor
    • Also, for testing, better use onlyinclude tags, instead of includeonly tags, since the text surrounded in that tag will appear when you preview it for onlyinclude

        Loading editor
    • More or less, the size is not like in the image, also the issue is not to close because I wanna make these two templates based on this and this templates but in a simple way kinda like the table in this article.

        Loading editor
    • TableWiz
      TableWiz removed this reply because:
      superseded
      23:11, September 28, 2019
      This reply has been removed
    • I would like also to add an option if I would like blue (#e3e3e3) or green (#ccffcc), how can I do it?

        Loading editor
    • Team69Roll wrote: I wanna make these two templates based on this and this templates but in a simple way kinda like the table in this article.

      Let's work backwards...

      Template:BundleEnd is to close the template which is only → |}
      As it just a small coding, it is not worth creating

      Template:Professional wrestling title history top is the not closed header. I will name the template as Template:ChampionshipHeader

      {| class="wikitable" style="text-align: center; width=100%;"
      ! style="background: #e3e3e3; |#
      ! style="background: #e3e3e3; width: 25%;" |Wrestler
      ! style="background: #e3e3e3;" |Reign
      ! style="background: #e3e3e3;" |Date
      ! style="background: #e3e3e3;" |Location
      ! style="background: #e3e3e3;" |Event
      ! style="background: #e3e3e3;" |Length
      ! style="background: #e3e3e3;" |Defenses
      ! style="background: #e3e3e3;" |Notes
      ! style="background: #e3e3e3;" |Notes
      |-
      


      I find the easiest way to create Template:Professional wrestling title history middle is to use an existing row replacing the data with variables. "Naruki Doi" has a pink background so use it as my example.

      |-
      | style="background: #FFDDF4" |—
      | style="background: #FFDDF4" |[[Naruki Doi]]
      | style="background: #FFDDF4" |{{sort|-001|{{center|Provisional}}}}
      | style="background: #FFDDF4" |August 5, 2014
      | style="background: #FFDDF4" |Tokyo
      | style="background: #FFDDF4" |[[Scandal Gate (2014)|Scandal Gate 2014]]
      | style="background: #FFDDF4" |{{age in days nts|month1=08|day1=05|year1=2014|month2=08|day2=17|year2=2014}} Days
      | style="background: #FFDDF4" |0
      | style="background: #FFDDF4" |
      | style="background: #FFDDF4" |<small>Defeated Hulk in a four-on-one Handicap match where is partners were [[Kzy]], [[Cyber Kong]] and [[Mondai Ryu]]. Afterwards Doi was recognized as a "provisional" champion, pending a rematch.</small>
      


      ...becomes which I have named as Template:Championship

      |- style="background:#{{#switch:{{{Background|f8f9fa}}}
      |pink  = ffddf4
      |blue  = e3e3e3
      |green = ccffcc
      }}"
      | {{{#|}}}
      | {{{Wrestler|}}}
      | {{{Reign|}}}
      | {{{Date|}}}
      | {{{Location|}}}
      | {{{Event|}}}
      | {{{Length|}}}
      | {{{Defenses|}}}
      | {{{Successful|}}}
      | {{{Notes|}}}
      

      I used "Background" to switch background color

      • pink = ffddf4
      • blue = e3e3e3
      • green = ccffcc


      Example

      {{ChampionshipHeader}}
      
      {{Championship
       |Background = green
       |#          = 20
       |Wrestler   = BxB Hulk
       |Reign      = 1
       |Date       = July 20, 2014
       |Location   = Kobe
       |Event      = Kobe World Pro Wrestling Festival 2014
       |Length     = 16 Days
       |Defenses   = 0
       |Successful = 
       |Notes      = 
      }}
      
      {{Championship
       |Background = pink
       |#          = —
       |Wrestler   = Naruki Doi
       |Reign      = Provisional
       |Date       = August 5, 2014
       |Location   = Tokyo
       |Event      = Scandal Gate 2014
       |Length     = 12 Days
       |Defenses   = 0
       |Successful = 
       |Notes      = Defeated Hulk in a four-on-one Handicap match where is partners were Kzy, Cyber Kong and Mondai Ryu. Afterwards Doi was recognized as a "provisional" champion, pending a rematch.
      }}
      
      |}<!-- closes template -->
      


      Wrestling Championship
        Loading editor
    • Also, if I wanna do the rowspan=thing code to merge one or more parts, how can I do it?

      Such as this for example: 
      WrestlingTable example
        Loading editor
    • Yes, you can. Go to Template:Championship and copy the following:

      |- 
      | style="background: #ccffcc" |{{{#|}}}
      | rowspan="2" style="background: #ccffcc"| {{{Wrestler|}}}
      | style="background: #ccffcc"|{{{Reign|}}}
      | style="background: #ccffcc" |{{{Date|}}}
      | style="background: #ccffcc" |{{{Location|}}}
      | style="background: #ccffcc" |{{{Event|}}}
      | style="background: #ccffcc" |{{{Length|}}}
      | style="background: #ccffcc" |{{{Defenses|}}}
      | style="background: #ccffcc" | {{{style="background: #FFDDF4" Successful|}}}
      | style="background: #ccffcc" |{{{Notes|}}}
      {{Professional wrestling title history middle}}
      

      You can place rowspawn"2" in anywhere in the first row (the row below the header), if you wanted to merge that part into the bottom row.

      Go to Template:Professional wrestling title history middle and copy the following:

      |-
      | style="background: #FFDDF4" |—
      | style="background: #FFDDF4" |{{sort|-001|{{center|Provisional}}}}
      | style="background: #FFDDF4" |August 5, 2014
      | style="background: #FFDDF4" |Tokyo
      | style="background: #FFDDF4" |[[Scandal Gate (2014)|Scandal Gate 2014]]
      | style="background: #FFDDF4" |{{age in days nts|month1=08|day1=05|year1=2014|month2=08|day2=17|year2=2014}} Days
      | style="background: #FFDDF4" |0
      | style="background: #FFDDF4" |
      | style="background: #FFDDF4" |<small>Defeated Hulk in a four-on-one Handicap match where is partners were [[Kzy]], [[Cyber Kong]] and [[Mondai Ryu]]. Afterwards Doi was recognized as a "provisional" champion, pending a rematch.</small>
      
      

      Go to the page and copy the following:

      {{ChampionshipHeader}}
      
      {{Championship
       |#           = 20
       |Wrestler    = BxB Hulk
       |Reign       = 1
       |Date        = July 20, 2014
       |Location    = Kobe
       |Event       = Kobe World Pro Wrestling Festival 2014
       |Length      = 16 Days
       |Defenses    = 0
       |Successful  = 
       |Notes       = 
      }}
      
      |}<!-- closes template -->
      
      

      Note that I didn't include the Championship template for the second row because {{Professional wrestling title history middle}} is already in Template:Championship for rowspawn.

        Loading editor
    • But I would like to add the rowspan code as a value in case I want to expand a part of the row or someting such as the one in the example 

        Loading editor
    • Kinda like this code:

      |- style="background:#{{#switch:f8f9fa
      |pink  = ffddf4
      
        Loading editor
    • Team69Roll#14
      But I would like to add the rowspan code as a value in case I want to expand a part of the row or someting such as the one in the example

      Well, if you follow the step by step in this reply then it will end up exactly like the one in the image you have posted.

      The rowspawn code that I provided is already as a value (which is 2).

        Loading editor
    • oh ok

        Loading editor
    • Wait, perhaps I didn't explain well, I would like to add the rowspan value to make something like this:

       |- style="background:#{{#switch:{{{Background|f8f9fa}}}
        |pink  = ffddf4
        |blue  = e3e3e3
        |green = ccffcc
        }}"


      To make something like this:
      WrestlingTable example2
        Loading editor
    • Nothing much in coding for the last row. Copy the following HTML and past into Template:Professional wrestling title history middle.

      |-
      | style="background: #FFDDF4" |—
      | style="background: #FFDDF4" |{{sort|-001|{{center|Provisional}}}}
      | style="background: #FFDDF4" |August 5, 2014
      | style="background: #FFDDF4" |Tokyo
      | style="background: #FFDDF4" |[[Scandal Gate (2014)|Scandal Gate 2014]]
      | style="background: #FFDDF4" |{{age in days nts|month1=08|day1=05|year1=2014|month2=08|day2=17|year2=2014}} Days
      | style="background: #FFDDF4" |0
      | style="background: #FFDDF4" |
      | style="background: #FFDDF4" |<small>Defeated Hulk in a four-on-one Handicap match where is partners were [[Kzy]], [[Cyber Kong]] and [[Mondai Ryu]]. Afterwards Doi was recognized as a "provisional" champion, pending a rematch.</small>
      |-
      | style="background: #FFDDF4" |—
      | style="background: #FFDDF4" |Naruki Doi
      | style="background: #FFDDF4" |{{sort|-001|{{center|Provisional}}}}
      | style="background: #FFDDF4" |August 5, 2014
      | style="background: #FFDDF4" |Tokyo
      | style="background: #FFDDF4" |[[Scandal Gate (2014)|Scandal Gate 2014]]
      | style="background: #FFDDF4" |{{age in days nts|month1=08|day1=05|year1=2014|month2=08|day2=17|year2=2014}} Days
      | style="background: #FFDDF4" |0
      | style="background: #FFDDF4" |
      | style="background: #FFDDF4" |<small>Defeated Hulk in a four-on-one Handicap match where is partners were [[Kzy]], [[Cyber Kong]] and [[Mondai Ryu]]. Afterwards Doi was recognized as a "provisional" champion, pending a rematch.</small>
      

      If you follow the rest of my step-by-step instructions mentioned above, the table looks exactly like WrestlingTable example2.

        Loading editor
    • But I would like something like this to make it: 

      {{ChampionshipHeader}}
      
      {{Championship
       |#           = 20
       |rowspan     =
       |Wrestler    = BxB Hulk
       |Reign       = 1
       |Date        = July 20, 2014
       |Location    = Kobe
       |Event       = Kobe World Pro Wrestling Festival 2014
       |Length      = 16 Days
       |Defenses    = 0
       |Successful  = 
       |Notes       = 
      }}
      
      |}
      <pre/>
      to make that table like in the example.
        Loading editor
    • WrestlingTable example2

      If it only needs to be either 1 row or 2 rows like the example above

      Template:ChampionshipMiddle

      |- style="background:#{{#switch:{{{Background1|f8f9fa}}}
      |pink  = ffddf4
      |blue  = e3e3e3
      |green = ccffcc
      }}"
      | {{{#1|}}}
      | {{#if:{{{#2|}}}|rowspan=2}} | {{{Wrestler|}}}
      | {{{Reign1|}}}
      | {{{Date1|}}}
      | {{{Location1|}}}
      | {{{Event1|}}}
      | {{{Length1|}}}
      | {{{Defenses1|}}}
      | {{{Successful1|}}}
      | {{{Notes1|}}}
      
      |- style="background:#{{#switch:{{{Background2|f8f9fa}}}
      |pink  = ffddf4
      |blue  = e3e3e3
      |green = ccffcc
      }}; {{#if:{{{#2|}}}||display:none}}"
      | {{{#2|}}}
      | {{{Reign2|}}}
      | {{{Date2|}}}
      | {{{Location2|}}}
      | {{{Event2|}}}
      | {{{Length2|}}}
      | {{{Defenses2|}}}
      | {{{Successful2|}}}
      | {{{Notes2|}}}
      


      A separate Template:ChampionshipMiddle for each Wrestler

      {{ChampionshipHeader}}
      
      <!-- BxB Hulk -->
      {{ChampionshipMiddle
       |Background1 = green
       |#1          = 20
       |Wrestler    = BxB Hulk
       |Reign1      = 1
       |Date1       = July 20, 2014
       |Location1   = Kobe
       |Event1      = Kobe World Pro Wrestling Festival 2014
       |Length1     = 16 Days
       |Defenses1   = 0
       |Successful1 = 
       |Notes1      = 
      
       |Background2 = pink
       |#2          = —
       |Reign2      = Provisional
       |Date2       = August 5, 2014
       |Location2   = Tokyo
       |Event2      = Scandal Gate 2014
       |Length2     = 12 Days
       |Defenses2   = 0
       |Successful2 = 
       |Notes2      = Defeated Hulk in a four-on-one Handicap match where is partners were Kzy, Cyber Kong and Mondai Ryu. Afterwards Doi was recognized as a "provisional" champion, pending a rematch.
      }}
      
      <!-- Naruki Doi -->
      {{ChampionshipMiddle
       |Background1 = pink
       |#1          = —
       |Wrestler    = Naruki Doi
       |Reign1      = Provisional
       |Date1       = August 5, 2014
       |Location1   = Tokyo
       |Event1      = Scandal Gate 2014
       |Length1     = 12 Days
       |Defenses1   = 0
       |Successful1 = 
       |Notes1      = Defeated Hulk in a four-on-one Handicap match where is partners were Kzy, Cyber Kong and Mondai Ryu. Afterwards Doi was recognized as a "provisional" champion, pending a rematch.
      }}
      
      |}<!-- closes template -->
      
        Loading editor
    • www.w3schools.com/html/html_tables.asp

        Loading editor
    • Sorry to be annoying but how can I do the rowspan thing in the other rows, because I would like to make with this template also to simplify the code of the table such as this page, how can I simplify it using this template?

        Loading editor
    • Also, how can I change the wrestlers part to Tag Team
      (Individual Reigns), if selected a tag team such as this page or Trios Team (Individual Reigns), if selected a trio such as this page?

        Loading editor
    • did u read my 1st reply here?

        Loading editor
    • I'll give a look.

        Loading editor
    • good

        Loading editor
    • Sorry, I saw your link but I don't think it helps, all it's showing is a table different that one I want.

        Loading editor
    • A FANDOM user
        Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message
Community content is available under CC-BY-SA unless otherwise noted.