ढाँचा:Sortname

स्वतन्त्र विश्वकोश, नेपाली विकिपिडियाबाट
यसमा जानुहोस्: परिचालन, खोज्नुहोस्

<span style="display:none;">{{{last}}}, {{{first}}}</span>[[{{{first}}} {{{last}}} ({{{dab}}})|{{{first}}} {{{last}}}]]

Template documentation[view] [edit] [history] [purge]
Usage
{{sortname|first|last|optional link target|optional sort key}}

Creates a wikilinked name that can be used in a sortable table (created with class="wikitable sortable").

  • The default sort key is "last, first".
  • The link label is "first last".
  • The default link target is "first last"

The optional link target is useful when "first last" is a disambiguation page instead of the desired article, or when linking to a section of a page.

The optional sort key is useful in the case of special characters such as é.

Optional parameter
|nolink=1

Suppresses wikilinking the name, useful for list entries which are never likely to have articles so shouldn't be redlinked.

Microformat[सम्पादन गर्ने]

The HTML markup produced by this template includes an hCard microformat, which makes the person's name parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book. For more information about the use of microformats on Wikipedia, please see the microformat project.

To include a URL, use {{URL}}.

The hCard in this template uses at least some of these HTML classes:

  • agent
  • family-name
  • fn (required)
  • given-name
  • honorific-prefix
  • honorific-suffix
  • n
  • nickname
  • org
  • url
  • vcard

Please do not rename or remove these classes; nor collapse nested elements which use them.

See also[सम्पादन गर्ने]

  • {{sort}} – see talk for central sorting talk
  • {{dts}} – for using dates in sortable tables
  • {{nts}} – for using alphabetic sort mode for numbers in sortable tables