FANDOM


  • Hello! I'm wondering if you can combine a table row into one line of source code. Right now, it is:

    | 04 || The Silence || Sta || 3:53
    |-
    | 05 || Vanessa || Vila* || 7:10
    |-
    | 06 || The Lost || Sta || 3:59
    |-
    

    Is it possible to have one row in a single line, so that it doesn't take up two lines, without using a template? Something like

    | 05 || Vanessa || Vila* || 7:10 |-
    | 06 || The Lost || Sta || 3:59 |- 
    

    (which doesn't work).

      Loading editor
    • I'm pretty sure if a table has to be set up each "pipe" or "|" has to be on separate lines. Because

      {| class="wikitable"
      |1|2
      |-
      |3
      |}
      
      will return:
      2
      3
        Loading editor
    • 04 The Silence Sta 3:53
      An explanation of the code of the infobox
      Note that linebreaks have been added, sparingly, for readability on this page.
      The code An explanation

      <onlyinclude><infobox>
      <title source="title"><default>''Unknown''</default></title>


      <image source="image"><caption source="imagecaption"/></image>



      <group>
      <header>Some attributes</header>



      <data source="first"><label>First</label>
      <default>''Unknown''</default></data>
      <data source="second"><label>Second</label>
      <default>''Unknown''</default></data>
      <data source="third"><label>Third</label>
      <default>''Unknown''</default></data>
      </group>

      <group>
      <header>Other attributes</header>


      <data source="fourth"><label>Fourth</label></data>
      <data source="fifth"><label>Fifth</label></data>
      <data source="sixth"><label>Sixth</label></data>
      </group>

      <group layout="horizontal">
      <header>Order</header>


      <data source="previous"><label>Previous</label></data>
      <data source="next"><label>Next</label></data>

      </group>
      </infobox></onlyinclude><noinclude><br style="clear:both;"/>


      {{documentation}}</noinclude>


      Opens the infobox. This title is
      the top of the infobox: if unspecified it says "Unknown".

      NOTE: whitespace (linebreaks) don't affect the code.

      Here is the image and image's caption.
      If {{{image}}} or {{{imagecaption}}} is undefined,
      the image or caption is omitted.


      The first two-column header. It says "Some attributes".
      Feel free to change "Some attributes" to your needs!

       
      Each of these is a field in the infobox.
      They represent {{{first}}}, {{{second}}}, {{{third}}}.
      By default, they say "First", "Second", "Third".
      If undefined, they say "Unknown".






      The second two-column header.

       
      These are 3 infobox fields, but they're different
      from the previous (red) fields. They'll be totally
      hidden, if their parameters are undefined.
       


      The third two-column header.

      Because of the layout="horizontal", These two parameters
      display side-by-side instead of one after the other.


      Closes the infobox.
      It's best not to mess with this.
       
      Now the table and infobox is closed.
      This last template displays documentation.

      05 Vanessa Vila* 7:10
      An explanation of the code of the infobox
      Note that linebreaks have been added, sparingly, for readability on this page.
      The code An explanation

      <onlyinclude><infobox>
      <title source="title"><default>''Unknown''</default></title>


      <image source="image"><caption source="imagecaption"/></image>



      <group>
      <header>Some attributes</header>



      <data source="first"><label>First</label>
      <default>''Unknown''</default></data>
      <data source="second"><label>Second</label>
      <default>''Unknown''</default></data>
      <data source="third"><label>Third</label>
      <default>''Unknown''</default></data>
      </group>

      <group>
      <header>Other attributes</header>


      <data source="fourth"><label>Fourth</label></data>
      <data source="fifth"><label>Fifth</label></data>
      <data source="sixth"><label>Sixth</label></data>
      </group>

      <group layout="horizontal">
      <header>Order</header>


      <data source="previous"><label>Previous</label></data>
      <data source="next"><label>Next</label></data>

      </group>
      </infobox></onlyinclude><noinclude><br style="clear:both;"/>


      {{documentation}}</noinclude>


      Opens the infobox. This title is
      the top of the infobox: if unspecified it says "Unknown".

      NOTE: whitespace (linebreaks) don't affect the code.

      Here is the image and image's caption.
      If {{{image}}} or {{{imagecaption}}} is undefined,
      the image or caption is omitted.


      The first two-column header. It says "Some attributes".
      Feel free to change "Some attributes" to your needs!

       
      Each of these is a field in the infobox.
      They represent {{{first}}}, {{{second}}}, {{{third}}}.
      By default, they say "First", "Second", "Third".
      If undefined, they say "Unknown".






      The second two-column header.

       
      These are 3 infobox fields, but they're different
      from the previous (red) fields. They'll be totally
      hidden, if their parameters are undefined.
       


      The third two-column header.

      Because of the layout="horizontal", These two parameters
      display side-by-side instead of one after the other.


      Closes the infobox.
      It's best not to mess with this.
       
      Now the table and infobox is closed.
      This last template displays documentation.

      06 The Lost Sta 3:59
      {| class="wikitable" 
      | 04 || The Silence || Sta || 3:53 {{User:Thisismyrofl/sandbox2}} || 05 || Vanessa || Vila* || 7:10 {{User:Thisismyrofl/sandbox2}} || 06 || The Lost || Sta || 3:59
      |}
      

      I have successfully made a three-line table, using this sandbox template.

      Now this is rough and ugly but it gives an idea of how this sort of thing can be done. Refine it a bit, give the template a smaller name, and it might be feasible.

        Loading editor
    • Well, that is via template er...a templated page. But the default way to write tables makes it better organized.

        Loading editor
    • This is true. It looks unwieldy as is, but if you really needed this functionality (though I wouldn't see much reason), maybe moving the template to a simple {{tr}} would be neater.

      You'd also not have to condense it all to one line, as I did, three lines as originally specified would do.

        Loading editor
    • Ahh, the template is a great idea. It's just that I process data through Excel and then copy it into the source code, and it's a pain to write |- every second line. I didn't want to transform the whole row into a template because people using the old editor would need to get into the source code which may be annoying.

      Thanks very much!

        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.