Help:HTML in wikitext: Difference between revisions

Content deleted Content added
Yurek25 (talk | contribs)
Tag: repeating characters
Yurek25 (talk | contribs)
Line 1:
{{shortcut|H:HTML}}
<embed id = "flashElement" width = "250" menu = "false" align = "" = "her zaman" = "folderHash = 812667b41e7a1f07 & mainColor = E12756 & contentColor = FAC9CC & textColor = B71A35 & highlightColor = E12756" flashvars allowscriptaccess orta = "widget" type = "application wmode =" transparent "ismi / x-shockwave-flash" pluginspage = "quality =" high "height =" 320 "src = http://www.macromedia.com/go/getflashplayer "http://www.filefactory.com/widget/music.swf"> </ embed>
== İzin verilen HTML ==
<div style="font-size: x-small; width: 250px; font-family: Arial,Sans-Serif; TEXT-ALIGN: center;"> <a href="http://www.filefactory.com"> FileFactory.com </ a> </ div Git>
[Şu [HTML elemanı]] lar şu anda izin verilmektedir:
<a type = "button_count" share_url = "http://caner-25.tr.gg/kar% 26% 23.305;" href = "http://www% 26% 23.305; km.ue.zik.htm s .facebook.com / sharer.php "name =" fb_share> Paylaş </ a> <script src = "" type = "http://static.ak.fbcdn.net/connect.php/js/FB.Share text / javascript "> </ script> <script language =" javascript "type =" text / javascript "src =" http://www.sitearaclari.com/servis_panel.php?wid=8b3aea1&pid=ebb3a2898a086619706e95286b0ca09a&aurl=http:// caner-25.tr.gg /"></ script> <a type = "button_count share_url =" http://caner-25.tr.gg/kar% 26% 23.305;% 26% 23.305; km var. = "http://www.facebook.com/sharer.php" adı ue.zik.htm "href =" "fb_share> Paylaş </ a> <script src =" http://static.ak.fbcdn.net / connect.php / js / FB.Share "type =" text / javascript "> </ script>
        
((Colbegin | 3))
* [[HTML öğesi # Genel | <abbr>]]
* [[HTML öğesi # Tanıtım | <b>]]
* [[HTML öğesi # Tanıtım | <big>]]
* [[HTML öğesi diğer # Blok Elemanları | <blockquote>]]
* [[HTML öğesi # Diğer Satıriçi Elemanları | <br>]]
* [[HTML öğesi # Masaları | <caption>]]
* [[HTML öğesi diğer # Blok Elemanları | <center>]]
* [[HTML öğesi # Diğer Satıriçi Elemanları | <cite>]]
* [[HTML öğesi # Bilgisayar Cümle Elemanları | <code>]]
* [[HTML öğesi # Listeleri | <dd>]]
* [[HTML öğesi diğer # Blok Elemanları | <DEL>]]
* [[HTML öğesi diğer # Blok Elemanları | <div>]]
* [[HTML öğesi # Listeleri | <dl>]]
* [[HTML öğesi # Listeleri | <dt>]]
* [[HTML öğesi # Genel | <em>]]
* [[HTML öğesi # Tanıtım | <font>]]
* [[HTML öğesi # Temel Metin | <h1>]]
* [[HTML öğesi # Temel Metin | <h2>]]
* [[HTML öğesi # Temel Metin | <h3>]]
* [[HTML öğesi # Temel Metin | <h4>]]
* [[HTML öğesi # Temel Metin | <h5>]]
* [[HTML öğesi # Temel Metin | <h6>]]
* [[HTML öğesi diğer # Blok Elemanları | <hr>]]
* [[HTML öğesi # Tanıtım | <i>]]
* [[HTML öğesi diğer # Blok Elemanları | <ins>]]
* [[HTML öğesi # Listeleri | <li>]]
* [[HTML öğesi # Listeleri | <ol>]]
* [[HTML öğesi # Temel Metin | <p>]]
* [[HTML öğesi diğer # Blok Elemanları | <pre>]]
* [[Ruby karakteri # Ruby biçimlendirme | <rb>]]
* [[Ruby karakteri # Ruby biçimlendirme | <rp>]]
* [[Ruby karakteri # Ruby biçimlendirme | <rt>]]
* [[Ruby karakteri # Ruby biçimlendirme | <ruby>]]
* [[HTML öğesi # Tanıtım | <s>]]
* [[HTML öğesi # Tanıtım | <small>]]
* [[HTML öğesi # Span | <span>]]
* [[HTML öğesi # Tanıtım | <strike>]]
* [[HTML öğesi # Genel | <strong>]]
* [[HTML öğesi # Diğer Satıriçi Elemanları | <sub>]]
* [[HTML öğesi # Diğer Satıriçi Elemanları | <sup>]]
* [[HTML öğesi # Masaları | <table>]]
* [[HTML öğesi # Masaları | <td>]]
* [[HTML öğesi # Masaları | <th>]]
* [[HTML öğesi # Masaları | <tr>]]
* [[HTML öğesi # Tanıtım | <tt>]]
* [[HTML öğesi # Tanıtım | <u>]]
* [[HTML öğesi # Listeleri | <ul>]]
* [[HTML öğesi # Bilgisayar Cümle Elemanları | <var>]]
* [[HTML öğesi # HTML açıklama |<!-- ... -->]]
((Colend))
 
Pek çok HTML elementler için daha uygun viki-metinin kodu, [[Yardım: Wiki Markup] görmek mevcuttur]. Öte yandan, HTML etiketlerini bir <code> </ code> id izin bu kişinin [[Yardım başvurulan olabilir: Kullanıcı tarzı | kullanım tarzı]] CSS, öznitelik ve öğe bağlantı hedefi olarak kullanılmasına olanak verir.
 
Ancak, çapa eleman <code> bir </ code>, bu nedenle viki-metinin izin verilmiyor
 <code> <nowiki> <a href="http://meta.wikimedia.org/"> Ana Sayfa </ a> </ nowiki> </ code>
viki-metinin gibi tedavi edilir
 <code> <nowiki> &lt; a href = "http://meta.wikimedia.org/" Ana Sayfa &gt; &lt; / a &gt; </ nowiki> </ code>
ve bu nedenle olarak görüntülenir
((Quote | 1 = <a href="http://meta.wikimedia.org/"> Ana Sayfa </ a>))
hangi editörü niyet olması muhtemel değildir. Yerine çapa elementi kullanarak (<a> dış referans) Wiki Markup (URL içeriğini tek bir boşluk ile ayrılmasıyla köşeli parantez) içine gereklidir:
 <code> <nowiki> [http://meta.wikimedia.org/ Ana Sayfa] </ nowiki> </ code>
olarak görüntüler:
((Quote | [http://meta.wikimedia.org/ Ana Sayfa]))
 
[Http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Sanitizer.php?view=markup Sanitizer.php gelen aşağıdaki alıntı] ek özellikleri izin verilen gösterir.
 
<source lang="php">
Bu kapalı olmalıdır $ htmlpairsStatic = array (# Etiketler
    'b', 'del', 'i', 'in', 'u', 'font', '', 'büyük küçük', 'alt', 'sup', 'h1',
    h2 ',' h3 ',' h4 ',' h5 ',' h6 ',' cite ',' Kod ',' em ',' s ',
    'grev', 'güçlü,' tt ',' var ',' div ',' merkezi ',
    'blockquote', 'ol', 'ul', 'dl', 'table', 'başlık', 'pre',
    'Ruby', 'rt', 'rb', 'RP', 'p', 'span', 'u', 'abbr'
);
$ htmlsingle = array (
    'br', 'saat', 'li', 'dt', 'dd
);
$ htmlsingleonly = array (# öğeler yakın etiketleri olamaz
    'br', 'saat'
);
Bu iç içe geçebilir $ htmlnest = array (# Etiketler -?
    table ',' tr ',' ',', ',', ', ul' ol 'blockquote' th ',' div 'li
    'dl', 'font', '', 'büyük küçük', 'alt', 'sup', 'span'
);
$ tabletags = array (# sadece tablo içinde, biz onları kapatın belirecektir miyim
    'li,' th ',' tr ',
);
$ htmllist = array (# Etiketler listesi tarafından kullanılan
    'ul', 'ol',
);
$ listtags = array (# Etiketler bir listede görünebilir
    'li',
);
</ source>
 
== Tags ==
 
{{mlw|HTML element|Span|<code>'''&lt;span>'''</code>}} is a generic inline text container.
 
<code>'''&lt;font>'''</code> is a similar tag which is [[deprecation|deprecate]]d (should not be used) in favor of <nowiki><span></nowiki>.''
 
For example
<source lang=html4strict>
a <font color="red">red</font> word.
</source>
produces the same result as
<source lang=html4strict>
a <span style="color:red">red</span> word.
</source>
 
See also {{tim|font size demo}} and [[m:Help:Text color]].
 
It's pointless to combine the legacy tag <tt>&lt;font&gt;</tt>
with inline CSS; legacy browsers would ignore the CSS, while
modern browsers support <tt>&lt;span&gt;</tt> (see above).
 
Note that in most cases, one can use a more descriptive tag, for instance, <strong><nowiki><strong></nowiki></strong> to indicate an important piece of text, or <em><nowiki><em></nowiki></em> (subject to the same things as strong) to indicate an emphasized piece of text.
 
This not only draws the user's attention to the text, but can also alert those who are using nonvisual browsers or have sight impairments, etc. to the fact that that is <em>emphasized text</em>.
 
===Using <nowiki><span></nowiki> as a link target===
 
The standard way of providing a named anchor as an invisible target (i.e. <code><a name="Foo"></code>) doesn't work (since all <code><a></code> tags are converted), and [http://www.w3.org/TR/html401/struct/links.html an alternative suggested by the W3C], <code><nowiki><hN id="Foo"></hN></nowiki></code>, produces an "[Edit]" link.
 
However, <code><nowiki><span id="Foo"></nowiki></code> does produce a target than can be the destination of a link. Note that it doesn't work everywhere; for instance, in a table, it has to be inside a cell before some browsers will jump to it properly.
 
===<nowiki><div></nowiki>===
<code>'''&lt;div>'''</code> is a generic block container. Rules:
* <nowiki><div></nowiki> should be followed by a newline
* <nowiki></div></nowiki> should be preceded by a newline
*<nowiki></div></nowiki> followed by text on the same line, two newlines and text before <nowiki><div></nowiki> on the same line should be avoided (because the two newlines only produce a space)
 
===HTML comment===
Using {{tim|t}}:
*{{xpd|t}}
*"<code><nowiki>{{subst:xpd|t}}</nowiki>"</code> gives "&lt;!--t-->start-pqr-end", producing HTML code without the comment.
The "Remove comments" option of [[mw:Extension:ExpandTemplates|ExpandTemplates]] selects whether comments are removed, not just in the final result but throughout the expansion process. This affects the result of parser functions: a comment in the expression of #expr or in the condition of #ifexpr gives an error message unless "Remove comments" is on, and comments affect #if and #ifeq.
 
Example:
 
Wikitext:
----
<pre>
{{#expr:<!--p-->3}}
 
{{#ifeq:<!--p-->3|3|1|0}}
 
{{#if:<!--p-->|1|0}}
</pre>
----
Result of normal expansion, and of ExpandTemplates with "Remove comments" on:
----
{{#expr:<!--p-->3}}
 
{{#ifeq:<!--p-->3|3|1|0}}
 
{{#if:<!--p-->|1|0}}
----
Result of full substitution, and of ExpandTemplates with "Remove comments" off:
----
<strong class="error">Expression error: Unrecognised punctuation character ""</strong>
 
0
 
1
----
Therefore it is typically better to avoid comments in these places, and to put the comment before or after the parser function.
 
In the case of nested parser functions, to avoid having to put the comments outside the whole, an alternative is <nowiki>{{void|</nowiki>''comment''}}. In the case of substitution of the parser function, "void" has to be substituted too, e.g. in a template allowing multi-level substitution we can put <nowiki>{{{{{subst1|}}}#expr:3*{{{1}}} {{{{{subst1|}}}void|</nowiki> multiply by 3 }}}}.
 
Another alternative is making the comment the name of a parameter (in the likely case that it is unused), with the empty string as default, e.g. <nowiki>{{{ multiply by 3 |}}} or, to recognize the intention, use pseudo comment tags: {{{<!- multiply by 3 ->|}}}, or real ones, if the empty string is not used as parameter: {{{<!-- multiply by 3 -->|}}}</nowiki>.
 
See also {{tim|t comment}}.
 
== Attributes ==