ਫਰਮਾ:ਲੇਖਕ: ਰੀਵਿਜ਼ਨਾਂ ਵਿਚ ਫ਼ਰਕ

ਵਿਕੀਸਰੋਤ ਤੋਂ
ਸਮੱਗਰੀ ਮਿਟਾਈ ਸਮੱਗਰੀ ਜੋੜੀ
imported>Angr
rv: if you're gonna totally change the template, you have to change its transclusions too. In three months that hasn't happened.
No edit summary
ਲਾਈਨ 1: ਲਾਈਨ 1:
<!--
<small><[[Wikisource:Authors-{{{FirstLetterLastName}}}]]</small>
BEGIN MAIN TEMPLATE SECTION
{{#if: {{{Image|}}} | [[File:{{{Image}}}|thumb|{{{Name}}}]] }}
'''{{{Name}}}'''{{#if:{{{Dates|{{{BirthDate|{{{DeathDate|}}} }}} }}} | <span style="margin:5px;"> - ''{{{Dates| {{{BirthDate|}}} - {{{DeathDate|}}} }}}''</span>}}


-->{| class="authortemplate"
<div style="float:right;clear:right;" {{HideIfEmpty|{{{TOC}}}}}>__TOC__</div>
|-<!--
{{#if:{{{Wikipedia|}}} | <div style="margin:5px;"> ''<div style="display: table-cell; vertical-align: middle;">[[File:Wikipedia-logo.png|20px]] Biography at '''[[w:{{{Wikipedia}}}|Wikipedia]]'''</div>''</div> }}
{{#if:{{{Wikiquote|}}} | <div style="margin:5px;"> ''<div style="display: table-cell; vertical-align: middle;">[[File:Wikiquote-logo.svg|20px]] Quotes at '''[[q:{{{Wikiquote}}}|Wikiquote]]'''</div>'' </div> }}
{{#if:{{{Wikicommons|}}} | <div style="margin:5px;"> ''<div style="display: table-cell; vertical-align: middle;">[[File:Commons-logo.svg|20px]] Images, Videos and Audio at '''[[commons:{{{Wikicommons}}}|Wikicommons]]'''</div>'' </div> }}


Link to author name-wise index (suppress is == !NO_INITIAL (used *only* for disambiguation.) -->
{{#if:{{{MiscBio|}}} | <div style="margin:5px;"> ''<div style="display: table-cell; vertical-align:middle;">{{{MiscBio}}}</div>'' </div> }}
| class="gen_header_backlink" |<!--
<includeonly>[[Category:Authors|{{{FileUnder}}}]] [[Category:Authors-{{{FirstLetterLastName}}}|{{{FileUnder}}}]]</includeonly>
<div id="ws-data" class="vcard ws-noexport" style="display:none; speak:none;">
{{#if:{{{Name|}}}|<span id="ws-name" class="fn">{{{Name}}}</span>|}}
{{#if:{{{FileUnder|}}}|<span id="ws-key">{{{FileUnder}}}</span>|}}
{{#if:{{{Image|}}}|<span id="ws-image">{{{Image}}}</span>|}}
{{#if:{{{MiscBio|}}}|<span id="ws-description" class="label">{{{MiscBio}}}</span>|}}
{{#if:{{{BirthDate|}}}|<span id="ws-birthdate" class="bday">{{{BirthDate|}}}</span>|}}
{{#if:{{{DeathDate|}}}|<span id="ws-deathdate" class="dday">{{{DeathDate|}}}</span>|}}
{{#if:{{{Wikipedia|}}}|<span id="ws-wikipedia">{{{Wikipedia|}}}</span>|}}
{{#if:{{{Wikiquote|}}}|<span id="ws-wikiquote">{{{Wikiquote|}}}</span>|}}
{{#if:{{{Wikicommons|}}}|<span id="ws-commons">{{{{Wikicommons|}}}</span>|}}
</div>


Filter out !NO_INITIALS, and send blanks to maintenance cats
==Works== <noinclude>[[Category:Article templates|{{PAGENAME}}]]
--> {{#ifeq:{{{last_initial|}}}|!NO_INITIALS||<!--


-->←{{#if:{{{last_initial|}}}|<!--
== Usage ==
-->[[Wikisource:Authors-{{{last_initial}}}|Author Index: {{{last_initial|}}}]]|<!--
<pre><nowiki>{{Author
-->[[:Category:Authors without initials|Authors without initials]]}}}}<!--
| Name =
| FileUnder=
| FirstLetterLastName=
| BirthDate=
| DeathDate=
| Wikipedia=
| Wikiquote=
| Wikicommons=
| TOC=
| Image=
| MiscBio=
}}
</nowiki></pre>


The central header title-->
| class="gen_header_title" | '''{{#ifeq:{{{invert_names|}}}|yes|{{{lastname}}} {{{firstname}}}|{{{firstname}}} {{{lastname}}}}}'''{{#if:{{{dates|}}}{{{birthyear|}}}{{{deathyear|}}}|<br />({{{dates|{{#if:{{{birthyear|}}}|{{#if:{{#titleparts:{{{birthyear|}}}|1|2}}|{{#switch:{{#titleparts:{{{birthyear|}}}|1|1}}| C | C. | Ca | Ca. | Circa = c. {{#titleparts:{{{birthyear|}}}|1|2}}| #default = {{#ifeq:{{#titleparts:{{{birthyear|}}}|1|2}}|?|{{#titleparts:{{{birthyear|}}}|1|1}}?|{{{birthyear}}}}}}}|{{{birthyear}}}}}{{#if:{{{deathyear|}}}|–{{#if:{{#titleparts:{{{deathyear|}}}|1|2}}|{{#switch:{{#titleparts:{{{deathyear|}}}|1|1}}| C | C. | Ca | Ca. | Circa = c. {{#titleparts:{{{deathyear|}}}|1|2}}| #default = {{#ifeq:{{#titleparts:{{{deathyear|}}}|1|2}}|?|{{#titleparts:{{{deathyear|}}}|1|1}}?|{{{deathyear}}}}}}}|{{{deathyear}}}}}|—}}|{{#if:{{{deathyear}}}|?–{{#if:{{#titleparts:{{{deathyear|}}}|1|2}}|{{#switch:{{#titleparts:{{{deathyear|}}}|1|1}}| C | C. | Ca | Ca. | Circa = c. {{#titleparts:{{{deathyear|}}}|1|2}}| #default = {{#ifeq:{{#titleparts:{{{deathyear|}}}|1|2}}|?|{{#titleparts:{{{deathyear|}}}|1|1}}?|{{{deathyear}}}}}}}|{{{deathyear}}}}}}}}}}}})|}}<!--

Forelink field is blank-->
| class="gen_header_forelink" |
|}<!--

BEGIN NOTES SECTION-->
{| class="author_notes"
|-
| <!--

-->{{Plain sister
| wikipedia = {{{wikipedia|}}}
| commons = {{{commons|}}}
| commonscat = {{{commonscat|}}}
| wikiquote = {{{wikiquote|}}}
| wikinews = {{{wikinews|}}}
| wiktionary = {{{wiktionary|}}}
| wikibooks = {{{wikibooks|}}}
| wikiversity = {{{wikiversity|}}}
| wikispecies = {{{wikispecies|}}}
| wikivoyage = {{{wikivoyage|}}}
| wikidata = {{{wikidata|}}}
| wikilivres = {{{wikilivres|}}}
| meta = {{{meta|}}}
| portal = {{{portal|}}}
| related_author = {{{related_author|}}}
| disambiguation = {{{disambiguation|}}}
| wikidataswitch = X
}}<!--

-->{{{description|}}}
|}<!--

image
-->{{#if:{{{image|}}}|[[<!--
Filename
-->File:{{{image}}}|<!--

Adjust size for upright images
-->thumb{{#if:{{{upright|}}}|{{!}}upright=0.6}}|<!--

Image caption
-->{{#if:{{{image_caption|}}}|{{center|{{{image_caption}}}}}|{{center|{{{firstname|}}} {{{lastname|}}}}}}}<!--

End image
-->]]}}<!--

CATEGORIES
--><includeonly><!--

Default sort by Last name, First name
-->{{DEFAULTSORT:{{{defaultsort|{{ucfirst:{{#if:{{{lastname|}}}|{{{lastname}}},_}}{{{firstname}}}}}}}}}}<!--

Allow category parameter to override all others (subpages, etc)
-->{{{category|<!--

Author index category
--> {{#ifeq:{{{last_initial|}}}|!NO_INITIALS||<!--

--> {{#if:{{{last_initial|}}}|<!--
-->[[Category:Authors-{{{last_initial}}}]]|<!--
-->[[Category:Authors without initials]]}}}}<!--

Categorisation of author pages by birth and/or death year
-->{{Author/year|{{{birthyear|}}}|b}}<!-- use subroutine (subpage of template) to categorise by the birthyear
-->{{#if:{{{birthyear|}}}
|{{Author/year|{{{deathyear|}}}|d|x}}<!-- categorise by deathyear (with birthyear present, ie. living author if blank) -->
|{{Author/year|{{{deathyear|}}}|d}}<!-- categorise by deathyear (with no birthyear present) -->
}}<!--

Categorisation of author pages with and without interwiki links
-->{{#if:{{{wikipedia|}}}|[[Category:Author pages linking to Wikipedia]]|[[Category:Author pages not linking to Wikipedia]]}}<!--
-->{{#if:{{{wikiquote|}}}|[[Category:Author pages linking to Wikiquote]]|[[Category:Author pages not linking to Wikiquote]]}}<!--
-->{{#if:{{{commons|}}}|[[Category:Author pages linking to Wikimedia Commons]]|[[Category:Author pages not linking to Wikimedia Commons]]}}<!--
-->{{#if:{{{commonscat|}}}|[[Category:Author pages linking to Wikimedia Commons categories]]|[[Category:Author pages not linking to Wikimedia Commons categories]]}}<!--
-->{{#ifeq:{{#invoke:Wikibase|id}}|(no item connected)|[[Category:Author pages not connected to Wikidata]]|[[Category:Author pages connected to Wikidata]]}}<!--


End categories
-->}}}<!--

Microformat data
--><div id="ws-data" class="vcard ws-noexport" style="display:none; speak:none;"><!--
--><span id="ws-article-id">{{{{{|safesubst:}}}PAGEID}}</span><!--
-->{{#ifeq:{{#invoke:Wikibase|id}}|(no item connected)||<span id="ws-wikibase-id">{{#invoke:Wikibase|id}}</span>}}<!--
-->{{#if:{{{firstname|}}}{{{lastname|}}}|<span id="ws-name" class="fn">{{#ifeq:{{{invert_names|}}}|yes|{{{lastname|}}} {{{firstname|}}}|{{{firstname|}}} {{{lastname|}}}}}</span><span class="n"><span class="given-name">{{{firstname|}}}</span><span class="family-name">{{{lastname|}}}</span></span>|}}<!--
-->{{#if:{{{defaultsort|}}}{{{firstname|}}}{{{lastname|}}}|<span id="ws-key">{{{defaultsort|{{ucfirst:{{#if:{{{lastname|}}}|{{{lastname}}},_}}{{{firstname|}}}}}}}}</span>|}}<!--
-->{{#if:{{{image|}}}|<span id="ws-image">{{{image}}}</span>|}}<!--
-->{{#if:{{{birthyear|}}}|<span id="ws-birthdate" class="bday">{{{birthyear|}}}</span>|}}<!--
-->{{#if:{{{deathyear|}}}|<span id="ws-deathdate" class="dday">{{{deathyear|}}}</span>|}}<!--
-->{{#if:{{{wikipedia|}}}|<span id="ws-wikipedia">{{{wikipedia|}}}</span>|}}<!--
-->{{#if:{{{wikiquote|}}}|<span id="ws-wikiquote">{{{wikiquote|}}}</span>|}}<!--
-->{{#if:{{{commons|}}}{{{commonscat|}}}|<span id="ws-commons">{{#if:{{{commonscat|}}}|Category:{{{commonscat|}}}|{{{commons|}}}}}</span>|}}<!--
-->{{#if:{{{description|}}}|<span id="ws-description" class="label">{{{description}}}</span>|}}
</div></includeonly><noinclude>
{{documentation}}
</noinclude>
</noinclude>

12:27, 19 ਮਈ 2014 ਦਾ ਦੁਹਰਾਅ

{{{firstname}}} {{{lastname}}}
ਫਰਮੇ ਦੇ ਦਸਤਾਵੇਜ਼[ਵੇਖੋ] [ਸੋਧੋ] [ਅਤੀਤ] [ਸਾਫ਼ ਕਰੋ]

This template can be preloaded via the Gadgets, alternatively, one can preload Template:Author/preload.

Usage

{{author
 | firstname    = 
 | lastname     = 
 | last_initial = 
 | description  = 
}}

This template is meant to be used on author pages. Fill in any relevant information, and leave unknown or inapplicable parameters empty. Please don't remove or reorder parameters, as this makes reuse and automated maintenance more difficult. Any override parameters (see below) should be added at the bottom.

To also note that this template automatically applies some categorisation based on the years of life of the author (see Module:Author for more information), and a default sort based on the lastname field of the author.

Parameters

(The usage example below may help understand these.)

  • Normal parameters
    • firstname first / given names
    • lastname: family name(s) / surnames of the author
      If the name order comes from a tradition where the family name typically precedes the given name, please enter the name as follows, with invert_names :

       | firstname = Ming
       | lastname = Xing
       | invert_names = yes

    • last_initial: The initial two letters of the family name.
    • description: A brief description of author's works, and personal history; usable for specific notes.
  • Internal links (optional - use whichever are appropriate)
    • portal: slash-separated list of related portals. e.g., World History/Greece
    • related_author: slash-separated list of related authors. e.g. William Shakespeare/Francis Bacon
  • Interwiki links (optional - use whichever are appropriate, though not usually implemented);
    • wiktionary, wikiversity, wikispecies, meta, wikidata
  • Overrides (for exceptions), and generally unusual to be needed
    • image: (link data provided from Wikidata, by default) The name of the image on Wikisource or Wikicommons, excluding the 'image:' or 'file:' prefixes (Filename.ext)
      • image_caption: Override the default firstname lastname
    • upright: upright = yes to the image configuration applies a 0.6 scaling factor for long images, and default image display overpowers page
    • defaultsort: Override the category sorting, which is normally "lastname, firstname".
    • dates: Override the displayed birth and death dates. Don't include the parentheses.
    • disambiguation: Used only when this template is transcluded from {{disambiguation}} (when it's set to 'yes').

Notes:

  1. With the exception of description, none of the parameters should be wikilinked (wrapped in [[ ]]) as the requisite fields are appropriately designed to do such linking. Links can be used within the descriptive text by traditional or wikilink methodologies.
  2. Links are being migrated to Wikidata as they are created at that site. Parameters are retained for cases where the Wikidata data needs to be overwritten.

Usage example

{{author
 | firstname    = Booker Taliaferro
 | lastname     = Washington
 | last_initial = Wa
 | description  = (Description here.)
}}
Booker Taliaferro Washington
(1856–1915)
Booker Taliaferro Washington


Categories

The following categories are added automatically, based on data from Wikidata:

If there is a missing mapping from a Wikidata item to a category, you can add to Module:Author/data.

You can add your own extra categories at the end of an author page manually if this is not suitable.

Microformat

The HTML markup produced by this template includes an hCard microformat, which makes the person's details 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 or database. For more information about the use of microformats on Wikimedia projects, please see Wikipedia's microformat project.

Sub-templates

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

Please do not remove instances of these sub-templates.

Classes

hCard uses HTML classes including:

  • adr
  • agent
  • bday
  • birthplace
  • category
  • country-name
  • deathdate
  • deathplace
  • extended-address
  • family-name
  • fn (required)
  • given-name
  • honorific-prefix
  • honorific-suffix
  • label
  • locality
  • n
  • nickname
  • note
  • org
  • role
  • url
  • vcard

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

See also