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ć
 
Xqbot (diskusija | přinoški)
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:
 
<sourcesyntaxhighlight lang="xml">
<div>
<div>Joe Doe</div>
Rjadka 15:
<a href="http://example.com/">http://example.com/</a>
</div>
</sourcesyntaxhighlight>
 
Z microformat markup, to je:
 
<sourcesyntaxhighlight lang="xml">
<div class="vcard">
<div class="fn">Joe Doe</div>
Rjadka 27:
<a class="url" href="http://example.com/">http://example.com/</a>
</div>
</sourcesyntaxhighlight>
 
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:
 
<sourcesyntaxhighlight lang="xml">
<div class="vcard">
<div class="fn org">Wikimedia Foundation Inc.</div>
Rjadka 76:
</div>
</div>
</sourcesyntaxhighlight>
 
 
(Ordinarily, one would use
 
<sourcesyntaxhighlight lang="xml">
<abbr class="region" title="Florida">FL</abbr>
</sourcesyntaxhighlight>
 
so that the output included <code>region="Florida"</code>, but the <code>abbr</code> element is not supported on Wikipedia.)
Z Wikipedije, swobodneje encyklopedije