[Mediawiki-l] Problem with Template:Infobox_Settlement

Momma mommahatesspam at gmail.com
Tue Dec 23 04:08:09 UTC 2008


Hi, I'm having a problem making Template:Infobox_Settlement work on my
wiki.  All of the html tags are having the "<" and ">" encoded in the
resultant page where the template is included, e.g. &lt;/tr&gt;

I went to

http://en.wikipedia.org/wiki/Special:Export

specified: Template:Infobox_Settlement

and checked all 3 boxes and then imported it into my site.

Here is the resulting HTML extracted from a page that includes the template:

<table class="infobox geography vcard" style="width:23em; text-align:left;">
		&lt;td colspan="2" align="center" style="width:100%; font-size:
1.25em; white-space: nowrap;"&gt;<b><span class="fn org">St. Leonard,
Maryland</span>&lt;/td&gt;</b>

	&lt;/tr&gt;

&lt;tr class="mergedrow"&gt;
		&lt;td colspan="2" style="text-align: center;"&gt;<div
class="floatnone"><span><a
href="/index.php/Image:Calvert_County_Maryland_Incorporated_and_Unincorporated_areas_St._Leonard_Highlighted.svg"
class="image" title="Location of St. Leonard, Maryland"><img
alt="Location of St. Leonard, Maryland"
src="/uploads/thumb/d/d9/Calvert_County_Maryland_Incorporated_and_Unincorporated_areas_St._Leonard_Highlighted.svg/200px-Calvert_County_Maryland_Incorporated_and_Unincorporated_areas_St._Leonard_Highlighted.svg.png"
width="200" height="200" border="0" /></a></span></div><small>Location
of St. Leonard, Maryland</small>
<p>		&lt;/td&gt;

	&lt;/tr&gt;
</p><p><br />
</p><p>&lt;tr class="mergedbottomrow"&gt;
</p>
<pre>       &lt;td colspan="2" style="text-align: center; font-size:
smaller; padding-bottom: 0.7em;"&gt;Coordinates: <span
style="white-space: nowrap;"><span class="plainlinksneverexpand"><a
href="http://stable.toolserver.org/geohack/geohack.php?pagename=Saint_Leonard%2C_Maryland&amp;params=38_28_23_N_76_30_13_W_type:city"
class="external text"
title="http://stable.toolserver.org/geohack/geohack.php?pagename=Saint_Leonard%2C_Maryland&amp;params=38_28_23_N_76_30_13_W_type:city"
rel="nofollow"><span class="geo-default"><span class="geo-dms"
title="Maps, aerial photos, and other data for 38°28?23?N
76°30?13?W"><span class="latitude">38°28?23?N</span> <span
class="longitude">76°30?13?W</span></span></span><span
class="geo-multi-punct">? / ?</span><span class="geo-nondefault"><span
class="geo-dec geo" title="Maps, aerial photos, and other data for
38.47306 -76.50361"><span class="latitude">38.47306</span>, <span
class="longitude">-76.50361</span></span></span></a></span></span>&lt;/td&gt;

     &lt;/tr&gt;
</pre>
<p>&lt;tr class="mergedtoprow"&gt;
		&lt;th&gt;<a href="/index.php?title=List_of_countries&amp;action=edit&amp;redlink=1"
class="new" title="List of countries (not yet written)">Country</a>
</p>
<pre>               &lt;th&gt;<a
href="/index.php?title=United_States&amp;action=edit&amp;redlink=1"
class="new" title="United States (not yet written)">United States</a>
</pre>
<p>	&lt;/tr&gt;&lt;tr class="mergedrow"&gt;

		&lt;th&gt;<a href="/index.php?title=Political_divisions_of_the_United_States&amp;action=edit&amp;redlink=1"
class="new" title="Political divisions of the United States (not yet
written)">State</a>
</p>
<pre>               &lt;th&gt;<a
href="/index.php?title=Maryland&amp;action=edit&amp;redlink=1"
class="new" title="Maryland (not yet written)">Maryland</a>
</pre>
<p>	&lt;/tr&gt;&lt;tr class="mergedrow"&gt;
		&lt;th&gt;<a href="/index.php?title=List_of_counties_in_Maryland&amp;action=edit&amp;redlink=1"
class="new" title="List of counties in Maryland (not yet
written)">County</a>

		&lt;th&gt;<a href="/index.php/Calvert_County%2C_Maryland"
title="Calvert County, Maryland">Calvert</a>
	&lt;/tr&gt;
</p><p><br />
</p><p>&lt;tr  class="mergedtoprow"&gt;
		&lt;td colspan="2"&gt;<b><a
href="/index.php?title=Area&amp;action=edit&amp;redlink=1" class="new"
title="Area (not yet written)">Area</a></b> &lt;/td&gt;
	&lt;/tr&gt;

&lt;tr class="mergedrow"&gt;
		&lt;th&gt; &nbsp;-&nbsp;Total
		&lt;/th&gt;
		&lt;td&gt;3.3&nbsp;sq&nbsp;mi&nbsp;(8.4&nbsp;km²)&lt;/td&gt;

	&lt;/tr&gt;&lt;tr class="mergedrow"&gt;
		&lt;th&gt;&nbsp;-&nbsp;Land&lt;/th&gt;
		&lt;td&gt;3.3&nbsp;sq&nbsp;mi&nbsp;(8.4&nbsp;km²)&lt;/td&gt;

	&lt;/tr&gt;&lt;tr class="mergedrow"&gt;
		&lt;th&gt;&nbsp;- Water&lt;/th&gt;
		&lt;td&gt;0.0&nbsp;sq&nbsp;mi&nbsp;(0.0&nbsp;km²)&lt;/td&gt;

	&lt;/tr&gt;
&lt;tr class="mergedtoprow"&gt;
		&lt;td&gt;<b><a
href="/index.php?title=Elevation&amp;action=edit&amp;redlink=1"
class="new" title="Elevation (not yet written)">Elevation</a></b>
&lt;/td&gt;
		&lt;td&gt;108&nbsp;ft (33&nbsp;m)&lt;/td&gt;

	&lt;/tr&gt;
&lt;tr class="mergedtoprow"&gt;
		&lt;td colspan="2"&gt;<b>Population</b> (<a
href="/index.php?title=United_States_Census%2C_2000&amp;action=edit&amp;redlink=1"
class="new" title="United States Census, 2000 (not yet
written)">2000</a>)&lt;/td&gt;
	&lt;/tr&gt;

&lt;tr class="mergedrow"&gt;
		&lt;th&gt;&nbsp;-&nbsp;Total&lt;/th&gt;
		&lt;td&gt;536&lt;/td&gt;
	&lt;/tr&gt;&lt;tr class="mergedrow"&gt;

		&lt;th&gt;&nbsp;-&nbsp;<a
href="/index.php?title=Population_density&amp;action=edit&amp;redlink=1"
class="new" title="Population density (not yet
written)">Density</a>&lt;/th&gt;
		&lt;td&gt;164.8/sq&nbsp;mi&nbsp;(63.6/km²)&lt;/td&gt;
	&lt;/tr&gt;
&lt;tr class="mergedtoprow"&gt;

		&lt;th&gt;<a href="/index.php?title=Time_zone&amp;action=edit&amp;redlink=1"
class="new" title="Time zone (not yet written)">Time
zone</a>&lt;/th&gt;
		&lt;td&gt;<a href="/index.php?title=North_American_Eastern_Time_Zone&amp;action=edit&amp;redlink=1"
class="new" title="North American Eastern Time Zone (not yet
written)">Eastern (EST)</a> (<a
href="/index.php?title=UTC-5&amp;action=edit&amp;redlink=1"
class="new" title="UTC-5 (not yet written)">UTC-5</a>)
	&lt;/tr&gt;
&lt;tr class="mergedbottomrow"&gt;
		&lt;th style="white-space: nowrap;"&gt;&nbsp;-&nbsp;Summer&nbsp;(<a
href="/index.php?title=Daylight_saving_time&amp;action=edit&amp;redlink=1"
class="new" title="Daylight saving time (not yet
written)">DST</a>)&lt;/th&gt;

		&lt;td&gt;EDT (<a
href="/index.php?title=UTC-4&amp;action=edit&amp;redlink=1"
class="new" title="UTC-4 (not yet written)">UTC-4</a>)&lt;/td&gt;
	&lt;/tr&gt;
</p><p><br />
</p><p>&lt;tr class="mergedtoprow"&gt;
		&lt;th&gt;<a href="/index.php?title=Federal_Information_Processing_Standard&amp;action=edit&amp;redlink=1"
class="new" title="Federal Information Processing Standard (not yet
written)">FIPS code</a>&lt;/th&gt;

		&lt;td&gt;24-69675&lt;/td&gt;
	&lt;/tr&gt;
&lt;tr class="mergedrow"&gt;
		&lt;th&gt;<a href="/index.php?title=Geographic_Names_Information_System&amp;action=edit&amp;redlink=1"
class="new" title="Geographic Names Information System (not yet
written)">GNIS</a> feature ID&lt;/th&gt;

		&lt;td&gt;0591216&lt;/td&gt;
	&lt;/tr&gt;
</p><p><br />
</p>
</table>



More information about the MediaWiki-l mailing list