I hate the wiki markup

I can't stand this wiki markup and how it behaves. I know HTML and CSS but this sh*t is aweful.

I want to wrap an image in a div with a class

{div:class=header}!https://confluence.workday.com/download/attachments/106074275/sales-club-header-2012.jpg!{div}

done.

then I view the page and this sh*t happens:

<p></p>

<div class="header></div>

!https://confluence.workday.com/download/attachments/106074275/sales-club-header-2012.jpg!

<p></p>



2 answers

This widget could not be displayed.
David Simpson Community Champion Jan 12, 2012

If the image is attached to the current page, try

{div:class=header}!sales-club-header-2012.jpg!{div}

Otherwise, perhaps

{div:class=header}{img:src=/download/attachments/106074275/sales-club-header-2012.jpg}{div}

Or perhaps if you have the HTML macro...

{html}
  <div class="header">
    <img src="https://confluence.workday.com/download/attachments/106074275/sales-club-header-2012.jpg" />
  </div>
{html}

Aside: Wiki markup is an aquired taste and isn't for everyone.

David Simpson Community Champion Jan 12, 2012

Check the update ;-)

thank you I will try.

David Simpson Community Champion Jan 12, 2012

Nope. I get the login screen -- Perhaps share a screenshot ;-)

second one worked, but still not the result I wanted:

https://confluence.workday.com/display/sales/Sales+Club+2012

can you view this? it's prematurely ending my div tags. I have a container wrapping the header and the deck, and its just picking the header div's end tag to end the container div. WHY? ugh.

David Simpson Community Champion Jan 12, 2012

If you're nesting {div} macros, you might be asking for trouble.

If you have admin access, you could just wrap the correct HTML in a user macro -- that's likely to fix things up for you quicker :)

Thank you. I'll talk to my admin then.

This widget could not be displayed.

Screenshot1 shows the firebug code that is prematurely closed off after the header div.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published 12 hours ago in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

60 views 0 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you