I have created a table inside my template, using the Mediawiki programming language as explained in the documentation. In the table cells are an image and a text. Now I would like to make the whole table clickable, so that it links to a different page. To do this I use the wiki syntax and define the page, where the user should get referred. Then using the Pipe-character, I set the table code instead of a standard text.
Unfortunately, only the table gets displayed, while the source code of the Link syntax gets print out as a text. Is there a fix you can recommend me?
Or at least something temporary?
Here is my wiki source code:
[[:Category:{{{1|}}} Products|
{|
|[[File:Apple.png|50px|left|link=]]
|Order our apples
|}]]
This should be the html code it should generate:
<a href="http://example.com/Category:Apple_Products">
<table>
<tbody>
<tr>
<td>
<div class="floatleft">
<img src="http://example.com/Apple.png">
</div>
</td>
<td>
Order our apples
</td>
</tr>
</tbody>
</table>
</a>
(I also tried adding the following instead of the Link syntax:
<a href="http://example.com/</nowiki>{{#replace:{{{1|}}}| |_}}_Songs">
It did not work, because the parsing caused a conversion of ">" and "<" characters..
Related
why jupyter notebook cannot display html 'table', but other html elements are okay, and how can I solve this problem?
below is my source code and my result
source code
<table style="width:20%">
<tr>
<td> **L1** </td>
<td> 1.1 </td>
</tr>
</table>
result
<tr>
<td> **L1** </td>
<td> 1.1 </td>
</tr>
it only removes tag <table> and does nothing else.
That's interesting, because the table (created by pasting your code) comes out just fine for me:
From my personal experience, I can definitely say that Markdown in jupyter notebooks is somehow volatile/unpredictable when it comes to HTML. For example, I myself have been looking for a fix for Jupyter just arbitrarily doing line breaks in the table header (esp. in formulas) and I have found this fix, but it doesn't work for me at all.
I know this is not particularly helpful, but at least it demonstrates that the table not being rendered correctly in your case was either some unexpected behaviour or some bug which maybe, or maybe not, has been fixed in the course of the last year.
You can also add the magic command before the table tag, which worked for me.
Working on an email blast and for the life of me I cannot get the text to center in mobile view. The URL is: http://strictpixel.com/clients/relevant/fbc/email/
I am referencing the top navigation, under the logo. In mobile, it slides to the left and I am not sure why.
I know this is something simple but I have been pulling my hair out for an hour.
Thanks!
Yeah that really is a mess and you should consider refactoring. There's no way you need all those nested tables.
However, if you plan to keep it this way, the problem is likely stemming from your HTML being invalid. First, the <center> tag is dead and should not be used. Second, you break the flow of your table structure beginning after the comment I inserted below:
<p class="template-label">469-952-6404</p></td>
<td class="expander"></td>
</tr>
</table>
</td>
<!-- You can't start the new table below here without first either
opening a new <td> or closing the <tr> and <table> that is open!! -->
<table class="container">
<tr>
<td class="wrapper">
<table class="twelve columns" style="background-color:#f1f5f8;vertical-align:center;">
...
My best guess is that you missed opening up the next <td> tag just before that table begins.
Use an online HTML validator to help you find where your table structure is broken. Something like http://www.freeformatter.com/html-validator.html may prove useful.
The web site donedeal.ie does not provide the capability to search or filter by certain fields which I want to filter by. I am trying to get the link to each result page from the search results pages. Then I would like to extract some text from these result web pages which have the same structure.
I have downloaded some search result list pages and have examined the HTML. I looked into using sed to extract the links to each individual result. Then I thought I should use the DOM somehow. I have been using PhantomJS and the Javascript console in Chrome developer tools.
This is an example of a results list page.
http://cars.donedeal.ie/find/cars/for-sale/Ireland/?filters%5BbodyType%5D=Saloon&ranges%5Bprice_from%5D=1000&ranges%5Bprice_to%5D=10000&sort=price&source=ALL
This is an example of an individual result page.
http://cars.donedeal.ie/cars-for-sale/01-passat/8313920
Each link is in a div with class="listing-info". The first element of that div is another div and the first element of this div is an a element.
<div class="listing-info">
<div class="title"><a href="http://cars.donedeal.ie/cars-for-sale/renault-megane/7911289" title="renault megane" > ... </a></div>
...
</div>
It is this href link that I am trying to get for all results on all pages at the moment.
The following is markup from an individual result page.
<div class="mainAdArea">
...
<table class="extraAdDetails">
<tbody>
...
<tr>
<td class="value">Manual</td>
<td class="value">Petrol</td>
<td class="value">1.6 litre</td>
</tr>
...
<tr>
...
<td class="value">
Mar 2015 </td>
</tr>
</tbody>
</table>
</div>
I would like the extracted information to look something like this:
Manual,Petrol,1.6 litre, ... ,Mar 2015
I think the easiest way to use the information would be to extract the information for each page onto 1 line in CSV format. I am completely open to suggestions however.
What is the easiest way to do any of this?
I've actually created a template on Mailchimp. I used a basic template of Mailchimp and transformed it into the design they gave me. I used the the CSS inline tool of Mailchimp to insert all the code in an inline mode as Gmail does not accept any style on the header. I only have this issue on Gmail, the rest work perfectly. What can I do?
As the code is long I inserted it in a fiddle if you wish to check it out:
http://jsfiddle.net/z27Bw/
I need an answer as its a mystery for me!
You have 2 unclosed <td> tags in the HTML -- one on line 476, one on 482. That might be what's causing the issue in Gmail. If that doesn't fix it, I'd say yeah, it might be a colspan issue.
you can try this
Write first tr code like this
<tr>
<td colspan="2" height="281"> </td>
</tr>
instead of
<tr>
<td width="35" height="281"> </td>
<td class="headerContent"> </td>
</tr
>
and then put that big header image inside it.
In vs 2012 asp.net empty site I am using html4.01 for table desgin
I have a <div> (a couple actually) and i keep getting a warning that reads:
</div>
<div style="text-align:center;">
<table style="text-align:left; border-color:aqua;background-color:gold;border-width:2px;"cellspacing ="0" cellpadding ="8" rules ="none" width ="540">
<tr>
<td valign ="top">
Me
</td>
</tr>
</table>
</div>
Warning 1 Validation (HTML 4.01): Element 'tr' cannot be nested within element 'div'.
what would cause this?
Looking at the code you've posted:
You have a table, and the nesting looks like you intended to put the <tr> inside it.
However, the table is closed on the same line as it is started, so the <tr> is actually outside the table, after it.
Find the closing </table> tag, and move it to where it should be, after the rest of the code that is meant to be inside the table.
[EDIT]
Okay, you've now fixed that in the code in the question.
The next problem I can see is that your table tag has the following:
border-width:2px;"cellspacing ="0"
^^^
missing space here
The missing space before the cellspacing attribute will cause the tag to be invalid, which could also be breaking it.
For further HTML validation, I recommend you put your HTML code through the W3C's validator, which will highlight any further issues you may have with your HTML.