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

2 votes
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.

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

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 6 hours ago in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

83 views 4 4
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