Wiki users...

RWBRWB Icrontian
edited May 2007 in Internet & Media
I am using DokuWiki for a pet project, I am using its own built in code for editing content and it looks good, but I think I am limited in what I want to do to take it further. Basically I have a table of information I created, but because the table is small it doesn't take up much space so about half a page vertically is being wasted and any other information I want put in has to go in the next line down. I'd like to position some text to the left of it so that I can make up some space.

Anyone know what I mean? I'm new to wiki's and I see it done allot of the Wikipedia but I can't figure out how they do it because that code seems to be hidden or I can't find the edit button to allow me to see it.

Take this wiki article for example on Gliese 581 c, there is a table of info containing some bits of information about the planet to the side with more text to the right explaining in depth more info. This is precisely what I want, but can't figure out.

Any help would be greatly appreciated, thanks!

Comments

  • mmonninmmonnin Centreville, VA
    edited April 2007
    Tables are your friend. A big table for the entire box (table of info on the right and text lines on the left) and a smaller table aligned to upper right inside that. (There are probably many more tables than this, fyi, but I dont have any editing software installed.)

    View->Source to see the source code of a page.

    Attached is the source code .
  • RWBRWB Icrontian
    edited April 2007
    Well I can't make it overly complicated for the guys who are going to be updating this... otherwise I'd use HTML and go crazy... I am using just the wikicode syntax they have, but if there is a plugin that can help, that'd be great.

    Just curious, have you edited a wiki before? I dunno what all you know which is why I ask. If not, you click the edit this page button for example, and it brings up the relevant info on that particular page... nothing like viewing the source and editing the page. My wiki supports embedded HTML, but I am reserving that for embedded PHP and such when needed as to not scare the other guys away from editing the wiki. This page is for my work, a knowledge base of info and training material needed for everyone.
  • mmonninmmonnin Centreville, VA
    edited April 2007
    I'm barely know HTML but Wiki is doing something other than letting just anyone edit the entire page. Like I just search for Ohio, the crap on the right table I cant seem to edit with the link at the top but the code is all in the source. They must have something between the editing section and the code that is actually used for the page, which is a must these days for security reasons. :)
  • RWBRWB Icrontian
    edited April 2007
    Found the edit button for the page itself... found this:

    [PHP]{{Planetbox begin
    | name = Gliese 581 c
    }}|
    {{Planetbox image

    | image = 250px|
    | caption = Gliese 581 c and its star as rendered in Celestia.<br/>The Sun is visible as a magnitude 3.8 star <br/>to the right of a slightly distorted Taurus constellation.<br/>The true orientation of the system is unknown.
    }}
    {{Planetbox star
    | star = Gliese 581
    | constell = Libra
    | RA = {{RA|15|19|26}}
    | DEC = {{DEC|−07|43|20}}
    | class = M2.5V
    }}
    {{Planetbox orbit
    | period = 12.93<ref name="planetcharacteristics">http://exoplanet.eu/planet.php?p1=Gl+581&p2=c</ref&gt;
    | eccentricity = 0.16±0.07<ref name="planetcharacteristics"/>
    | semimajor = 0.073<ref name="planetcharacteristics"/>
    }}
    {{Planetbox character
    | mass_earth = > 5.03
    | density = > 8191.45
    | temperature = ~290
    | radius_earth = ~1.5<ref name="BBC1">{{cite news |url=http://news.bbc.co.uk/1/hi/sci/tech/6589157.stm |title=New 'super-Earth' found in space |accessdate = 2007-04-25 |date=25 April 2007 |publisher=BBC News }}</ref>
    }}
    {{Planetbox discovery
    | discovery_date = 2007-04-24
    | discoverers = Udry et al.
    | discovery_method = Radial Velocity
    | discovery_status = published
    }}
    {{Planetbox end}}[/PHP]

    Looks to be a plugin specifically for this function called "Planetbox".... doh....
  • mmonninmmonnin Centreville, VA
    edited April 2007
    The Planetbox is a template they made for displaying info about planets across the universe. Hit the Edit button at the top (which I think you did) and scroll to the bottom and it shows the Templates listed.

    "This template is part of a group of templates that are used to display information about a specific extrasolar planet."

    Whatever they have between the edit box a user enters 'code' into and the actual HTML takes the info from the template and creates HTML.
  • RWBRWB Icrontian
    edited May 2007
    Looks to be a plugin... something I'm gonna try to build. I never done one before, but if it's just some php/javascript work then I should be fine.
Sign In or Register to comment.