|
|
Line 1: |
Line 1: |
| '''[[wikipedia:HTML|HTML]]''' is a basic markup language used in designing web pages. Only a certain few HTML tags, listed below, are permitted by the MediaWiki software, and many have perfectly acceptable wikicode equivalents (see [[#HTML tags with preferred wikicode equivalents|here]]). Where possible, it is preferable to use the wikicode equivalents, unless you wish to make use of IDs, attributes, or similar in the tags.
| | Butt |
| | | Butt |
| == Permitted HTML ==
| | Butt |
| The following [[wikipedia:HTML element|HTML elements]] are permitted as of version 1.27 of the MediaWiki software (current as of January 26, 2017, from the [https://meta.wikimedia.org/w/index.php?title=Help:HTML_in_wikitext&oldid=16007804 Wikimedia Meta-Wiki]):
| | Butt |
|
| | Butt |
| {| border="0" cellpadding="5"
| |
| | valign="top"|
| |
| * [[wikipedia:HTML element#abbr|<abbr>]]
| |
| * [[wikipedia:HTML element#b|<b>]]
| |
| * [[wikipedia:HTML element#bdi|<bdi>]]
| |
| * [[wikipedia:HTML element#bdo|<bdo>]]
| |
| * [[wikipedia:HTML element#big|<big>]]
| |
| * [[wikipedia:HTML element#blockquote|<blockquote>]]
| |
| * [[wikipedia:HTML element#br|<br>]]
| |
| * [[wikipedia:HTML element#caption|<caption>]]
| |
| * [[wikipedia:HTML element#center|<center>]]
| |
| * [[wikipedia:HTML element#cite|<cite>]]
| |
| * [[wikipedia:HTML element#code|<code>]]
| |
| * [[wikipedia:HTML element#data|<data>]]
| |
| * [[wikipedia:HTML element#dd|<dd>]]
| |
| * [[wikipedia:HTML element#del|<del>]]
| |
| * [[wikipedia:HTML element#dfn|<dfn>]]
| |
| * [[wikipedia:HTML element#div|<div>]]
| |
| * [[wikipedia:HTML element#dl|<dl>]]
| |
| * [[wikipedia:HTML element#dt|<dt>]]
| |
| * [[wikipedia:HTML element#em|<em>]]
| |
| * [[wikipedia:HTML element#font|<font>]]
| |
| | valign="top"|
| |
| * [[wikipedia:HTML element#h1|<h1>]]
| |
| * [[wikipedia:HTML element#h2|<h2>]]
| |
| * [[wikipedia:HTML element#h3|<h3>]]
| |
| * [[wikipedia:HTML element#h4|<h4>]]
| |
| * [[wikipedia:HTML element#h5|<h5>]]
| |
| * [[wikipedia:HTML element#h6|<h6>]]
| |
| * [[wikipedia:HTML element#hr|<hr>]]
| |
| * [[wikipedia:HTML element#i|<i>]]
| |
| * [[wikipedia:HTML element#ins|<ins>]]
| |
| * [[wikipedia:HTML element#kbd|<kbd>]]
| |
| * [[wikipedia:HTML element#li|<li>]]
| |
| * [[wikipedia:HTML element#mark|<mark>]]
| |
| * [[wikipedia:HTML element#ol|<ol>]]
| |
| * [[wikipedia:HTML element#p|<p>]]
| |
| * [[wikipedia:HTML element#pre|<pre>]]
| |
| * [[wikipedia:HTML element#q|<q>]]
| |
| * [[wikipedia:HTML element#rb|<rb>]]
| |
| * [[wikipedia:HTML element#rp|<rp>]]
| |
| * [[wikipedia:HTML element#rt|<rt>]]
| |
| * [[wikipedia:HTML element#rtc|<rtc>]]
| |
| | valign="top"|
| |
| * [[wikipedia:HTML element#ruby|<ruby>]]
| |
| * [[wikipedia:HTML element#s|<s>]]
| |
| * [[wikipedia:HTML element#samp|<samp>]]
| |
| * [[wikipedia:HTML element#small|<small>]]
| |
| * [[wikipedia:HTML element#span|<span>]]
| |
| * [[wikipedia:HTML element#strike|<strike>]]
| |
| * [[wikipedia:HTML element#strong|<strong>]]
| |
| * [[wikipedia:HTML element#sub|<sub>]]
| |
| * [[wikipedia:HTML element#sup|<sup>]]
| |
| * [[wikipedia:HTML element#table|<table>]]
| |
| * [[wikipedia:HTML element#td|<td>]]
| |
| * [[wikipedia:HTML element#th|<th>]]
| |
| * [[wikipedia:HTML element#time|<time>]]
| |
| * [[wikipedia:HTML element#tr|<tr>]]
| |
| * [[wikipedia:HTML element#tt|<tt>]]
| |
| * [[wikipedia:HTML element#u|<u>]]
| |
| * [[wikipedia:HTML element#ul|<ul>]]
| |
| * [[wikipedia:HTML element#var|<var>]]
| |
| * [[wikipedia:HTML element#wbr|<wbr>]]
| |
| * [[wikipedia:HTML element#Comments|<!-- ... -->]]
| |
| |}
| |
| | |
| == HTML tags with preferred wikicode equivalents ==
| |
| * The <p> element is assumed every time a clear line is left between paragraphs. Its usage is not necessary in a MediaWiki wiki such as Fire Emblem Wiki.
| |
| * <b> and <strong> are used to bold a word. They have the same effect as enclosing a word in two sets of three apostrophes (<nowiki>'''Bolded words'''</nowiki>), the preferred wikicode equivalent.
| |
| * Similar to the above, for italicisation, two sets of two apostrophes (<nowiki>''Italicised words''</nowiki>) are preferred to <i> and <em>.
| |
| * Using an equivalent number of equals symbols (=) is preferred when designating headers to the series of HTML header tags <h1> to <h6>.
| |
| * The table tags <table>, <td>, <th>, <tr> should not be used unless necessary, as the MediaWiki software has its own extensive [[Help:Tables#Basic coding|list of equivalents]].
| |
| * The effect of <hr> can be achieved with four consecutive hyphens (<nowiki>----</nowiki>).
| |
| * Listing tags <ol>, <ul>, <li>:
| |
| ** Ordered (numbered) lists can be created by beginning each line in the list with a hash symbol (#).
| |
| ** Bulleted lists (like this one) can be created by beginning each line in the list with an asterisk (*).
| |
| ** Both cases automatically assume the existence of <li> when a new line with a listing designator is created; i.e. <li> is not needed.
| |
| * Notably, the <a> tag is excluded from the above list of permitted HTML elements; meaning, it is incompatible with the MediaWiki software. Do not attempt to use this at all for linking, as it simply won't work. Instead, use the wikicode equivalents of <nowiki>[[Internal page|Internal link title]]</nowiki> and <nowiki>[http://external-site.org/ External link title]</nowiki>. The same applies to <img>; images must first be uploaded to the wiki before use.
| |
| | |
| All other tags are perfectly acceptable, and some even see wide usage throughout the wiki in cases where there is no wikicode equivalent, e.g. <div> and <span>.
| |
| {{NavHelp}}
| |