Wužiwar:Tlustulimu/hCard: Rozdźěl mjez wersijomaj
Inhalt gelöscht Inhalt hinzugefügt
nastawk z jendźelskeje wikipedije, kotryž hišće chcu přełožić |
S Bot: Ersetze veraltetes <source> tag und veralteten "enclose"-Parameter [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html] |
||
Rjadka 7:
Consider the HTML:
<
<div>
<div>Joe Doe</div>
Rjadka 15:
<a href="http://example.com/">http://example.com/</a>
</div>
</
Z microformat markup, to je:
<
<div class="vcard">
<div class="fn">Joe Doe</div>
Rjadka 27:
<a class="url" href="http://example.com/">http://example.com/</a>
</div>
</
Here the formal name (''fn''), organization (''org''), telephone number (''tel'') and [[URL|web address]] (''url'') have been identified using specific class names; and the whole thing is wrapped in <code>class="vcard"</code> which indicate that the other classes form an hcard, and are not just coincidentally named. If the hCard is for an organisation or venue, the ''fn'' and ''org'' classes are used on the same element, as in <code><nowiki><span class="fn org">Wikipedia</span></nowiki></code> or <code><nowiki><span class="fn org">Wembley Stadium</span></nowiki></code>. Other, optional, hCard classes also exist.
Rjadka 58:
The mark-up (wrapped for clarity) used is:
<
<div class="vcard">
<div class="fn org">Wikimedia Foundation Inc.</div>
Rjadka 76:
</div>
</div>
</
(Ordinarily, one would use
<
<abbr class="region" title="Florida">FL</abbr>
</
so that the output included <code>region="Florida"</code>, but the <code>abbr</code> element is not supported on Wikipedia.)
|