Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

I hate the wiki markup

nwsd02 January 12, 2012

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 at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
January 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 at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
January 12, 2012

Check the update ;-)

nwsd02 January 12, 2012

thank you I will try.

David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
January 12, 2012

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

nwsd02 January 12, 2012

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 at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
January 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 :)

nwsd02 January 12, 2012

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

0 votes
nwsd02 January 12, 2012

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events