ويکيپېډيا:Infobox templates

د ويکيپېډيا لخوا
ورټوپ کړه: گرځښت, پلټل

An infobox template is an infobox that uses the template software feature.

Like static infoboxes, they are designed to present summary information about an article's subject, such that similar subjects have a uniform look and in a common format. However, the template technique allows updates of style and of common text from a central place, the template page.

These boxes are designed to be placed into main articles related to the topic area, and are usually associated with on-going WikiProjects. They have parameters; to work properly, the parameter values have to be specified when the template is inserted in the page. This allows each infobox to show information relevant to the article subject, while requiring only a minimal amount of coding within each article.

Design and usage[سمول]

The recommended process for creating an infobox template is to begin simply, and gather as many requirements as possible. It is highly suggested that the base format for a new template be tested as a static table first, then, once consensus is reached, moved into template format. It should be reviewed before being heavily used in articles to minimize re-work, in case the template or defined parameters, require modification. If new fields and parameters are added, then articles must be updated to reflect the new requirements. If parameters are renamed or removed, then many articles will likely be unaffected, since extraneous parameters are ignored.

For consistency the following rules apply:

  1. Standard suggested width of 300 pixels or 25 ems (300px or 25em in CSS).
  2. Inserted at the top of the article, and aligned to the right side. Using class="infobox" is a good start.
  3. The top line should be reasonably bold, and contain the full (official) name of the item. This does not need to match the article's Wikipedia title. It should not contain a link. Avoid {{{PAGENAME}}} as pages may be moved for disambiguation.
  4. Name the template [[Template:Infobox Some subject]] (Somesubject should be in the singular and capitalized).

When creating a new infobox template, the content of Template:Infobox is a convenient starting point.

Parameters in infoboxes should be named, not numbered, to provide for future use. A parameter value can contain images (i.e. full image tags), or there can be parameters for parts of an image tag such as the image name, the size and the caption. In the latter case, if an image is not applicable or available, use a dummy image such as Image:No image.png.

If any parameter is not applicable, or no information is available, it must still be assigned a value; this can be the empty string, or, if it is the only thing in a table cell, use "some_field= ". The field will appear blank; the code is needed by some browsers for drawing the lines of the table itself properly.

Alternatively, there are ways to have a template selectively hide information or provide default values if not defined: For an example and explanation of how these methods apply to infoboxes, see {{Infobox}}.

Note that the Wikipedia:Avoid using meta-templates proposal suggests that you try to avoid having an infobox call another template. Instead, incorporate text from the other template directly into the infobox.

Interaction between multiple templates[سمول]

Templates can be designed in a modular way, such that various combinations are possible. A combination may even appear on the page as a single infobox.

For example, if the WikiProject Saints group wanted to design a template based on their static Infobox, they could use Template:Infobox Biography, and design a project-specific template with only additional information, and the pages would render both "stacked" together.

د کېنډيو لړليک[سمول]

In many cases, to view a template properly, one has to look at the wikitext also. Therefore below the edit pages are linked. For viewing templates it is convenient to set the preferences to "Show preview on first edit".

The backlinks show the pages with the infobox.

Below, first the primary templates are listed; they are designed to provide high-level information appropriate to a broad subject area.

وګړپوهنه او فرهڼ[سمول]

Name Where to use Associated
WikiProject
Template:Ethnic group (خبرې اترې, تړنې, سمول) Ethnic groups Ethnic groups

ستورپېژندنه[سمول]

Name Where to use Associated
WikiProject
Template:Planet (خبرې اترې, تړنې, سمول) Full planet articles (including Pluto) Astronomical objects
Template:Minor Planet (خبرې اترې, تړنې, سمول) Minor planet articles Astronomical objects
Template:minor planet (خبرې اترې, تړنې, سمول) Minor planet stub articles Astronomical objects
Template:Extrasolar Planet (خبرې اترې, تړنې, سمول) Exoplanet articles Astronomical objects
Template:Starbox short (خبرې اترې, تړنې, سمول) Stub star articles Astronomical objects
Template:Star (خبرې اترې, تړنې, سمول) Individual star articles (this template is to be replaced by the one below) Astronomical objects
Template:Starbox begin (خبرې اترې, تړنې, سمول)
Template:Starbox image (خبرې اترې, تړنې, سمول)
Template:Starbox observe (خبرې اترې, تړنې, سمول)
Template:Starbox character (خبرې اترې, تړنې, سمول)
Template:Starbox astrometry (خبرې اترې, تړنې, سمول)
Template:Starbox detail (خبرې اترې, تړنې, سمول)
Template:Starbox visbin (خبرې اترې, تړنې, سمول)
Template:Starbox catalog (خبرې اترې, تړنې, سمول)
Template:Starbox end (خبرې اترې, تړنې, سمول)
Individual star articles (flexible set of templates) Astronomical objects
Template:Supernova (خبرې اترې, تړنې, سمول) Supernovæ articles Astronomical objects
Template:Cluster (خبرې اترې, تړنې, سمول) Globular cluster articles Astronomical objects
Template:Galaxy (خبرې اترې, تړنې, سمول) Galaxy articles Astronomical objects

ژونپوهنه[سمول]

Name Where to use Associated
WikiProject
Template:Taxobox (خبرې اترې, تړنې, سمول) Articles on species and other groups of living things Tree of Life
Template:Infobox Cultivar (خبرې اترې, تړنې, سمول) Articles on plant cultivars Tree of Life
Template:Infobox Dogbreed (خبرې اترې, تړنې, سمول) Dog breeds Dog breeds

کيميا[سمول]

Name Where to use Associated
WikiProject
Template:Chembox (خبرې اترې, تړنې, سمول) Full chemical compound articles Chemicals
Template:Chembox simple organic (خبرې اترې, تړنې, سمول) Starting organic compound articles Chemicals
Template:Chembox simple inorganic (خبرې اترې, تړنې, سمول) Starting inorganic compound articles Chemicals

زده کړې[سمول]

Name Where to use Associated
WikiProject
Template:Infobox University (خبرې اترې, تړنې, سمول) Universities and colleges Universities
Template:Infobox University2 (خبرې اترې, تړنې, سمول) Universities and colleges Universities
Template:Infobox Law School (خبرې اترې, تړنې, سمول) Law schools Universities

Fiction[سمول]

Name Where to use Associated
WikiProject
Template:Bondbook (خبرې اترې, تړنې, سمول) James Bond books None / not known
Template:BondInfo (خبرې اترې, تړنې, سمول) James Bond movies None / not known
Template:Dilbert Episodes Season 1 (خبرې اترې, تړنې, سمول) Dilbert TV None / Not Known
Template:Forgotten Realms Places (خبرې اترې, تړنې, سمول) Forgotten Realms places Forgotten Realms
Template:HP Character (خبرې اترې, تړنې, سمول) Harry Potter characters Template:HP Character Foreign Template:HP Forest Character Template:HP Elf Character
Template:James Bond Character (خبرې اترې, تړنې, سمول) James Bond characters None / not known
Template:Doctorwhocharacter (خبرې اترې, تړنې, سمول) Doctor Who characters None / not known
Template:MASH Character (خبرې اترې, تړنې, سمول) M*A*S*H characters Television?
Template:ST Character (خبرې اترې, تړنې, سمول) Star Trek characters Star Trek?
Template:SW Character (خبرې اترې, تړنې, سمول) Star Wars characters None / not known
Template:SW ship specs (خبرې اترې, تړنې, سمول) Star Wars vehicle specifications None / not known
Template:Stargate character (خبرې اترې, تړنې, سمول) Stargate characters Stargate
Template:Transformers characters (خبرې اترې, تړنې, سمول) Transformers characters None / not known
Template:Infobox animanga (خبرې اترې, تړنې, سمول) anime and manga articles. Wikipedia:WikiProject Anime and manga
Template:Infobox Television episode (خبرې اترې, تړنې, سمول) pages on single episodes of television series Television episodes
Template:ASUE character (خبرې اترې, تړنې, سمول) A Series of Unfortunate Events characters None / not known
Template:ASUE organisation (خبرې اترې, تړنې, سمول) A Series of Unfortunate Events organisations None / not known

جغرافيه[سمول]

Name Where to use Associated
WikiProject
Template:Infobox river (خبرې اترې, تړنې, سمول) River articles Rivers
Template:Infobox City (خبرې اترې, تړنې, سمول) City articles Cities
Template:Infobox Town (خبرې اترې, تړنې, سمول) Town articles None
Template:Infobox Town MA (خبرې اترې, تړنې, سمول) Massachusetts town articles Massachusetts
Template:هېواد (خبرې اترې, تړنې, سمول) Country and nation articles Countries
Template:Infobox Country Economy (خبرې اترې, تړنې, سمول) Country and nation articles Countries
Template:Infobox Country Demographics (خبرې اترې, تړنې, سمول) Country and nation articles Countries
Template:Infobox Counties (خبرې اترې, تړنې, سمول) US County articles None
Template:Infobox U.S. County (خبرې اترې, تړنې, سمول) Counties of the United States None
Template:Infobox Province of Cameroon (خبرې اترې, تړنې, سمول) Provinces of Cameroon None
Template:VenezuelanState (خبرې اترې, تړنې, سمول) Political Divisions of Venezuela; Venezuelan State None
Template:VenezuelanState New (خبرې اترې, تړنې, سمول) Political Divisions of Venezuela; Venezuelan State None
Template:Peru region table (خبرې اترې, تړنې, سمول) Regions of Peru None
Template:Infobox U.S. state (خبرې اترې, تړنې, سمول) U.S. state articles U.S. States
Template:Infobox England place (خبرې اترې, تړنې, سمول) any place outside London None
Template:Infobox England place with map (خبرې اترې, تړنې, سمول) any place outside London with map None
Template:Infobox England parished place (خبرې اترې, تړنې, سمول) any place outside London in a parished area None
Template:Infobox England place UA (خبرې اترې, تړنې, سمول) any place in a unitary authority None
Template:Infobox London place (خبرې اترې, تړنې, سمول) any place in London London
Template:Infobox Wales place (خبرې اترې, تړنې, سمول) any place in Wales None
Template:Infobox Scotland place (خبرې اترې, تړنې, سمول) any place in Scotland None
Template:Infobox Dutch municipality 4 (خبرې اترې, تړنې, سمول) Dutch municipality articles Dutch municipalities
Template:Australia state or territory (خبرې اترې, تړنې, سمول) States and territories of Australia Australian politics
Template:Infobox Australian City (خبرې اترې, تړنې, سمول) Australian city articles None
Template:Infobox Town DE (خبرې اترې, تړنې, سمول) German city articles None
Template:Infobox Pref GR (خبرې اترې, تړنې, سمول) Prefectures of Greece None
Template:Infobox Micronation (خبرې اترې, تړنې, سمول) Micronations None
Template:Infobox protected area (خبرې اترې, تړنې, سمول) National parks and other protected places Protected areas

Industry[سمول]

Name Where to use Associated
WikiProject
Template:Infobox Company (خبرې اترې, تړنې, سمول) Business organization articles Companies

رسنۍ او خبريالي[سمول]

Name Where to use Associated
WikiProject
Template:MediaProjectTemplate (خبرې اترې, تړنې, سمول) Project internal template Media Project templates
Template:Journalism (خبرې اترې, تړنې, سمول) Journalism articles Journalism Project
Template:Infobox Broadcast (خبرې اترې, تړنې, سمول) Infobox for television stations Television Stations
Template:Infobox Radio station (خبرې اترې, تړنې, سمول) Radio stations Radio Stations
Template:Infobox Website (خبرې اترې, تړنې, سمول) Information box for articles about websites None

خلک[سمول]

Name Where to use Associated
WikiProject
Template:Infobox baseball player (خبرې اترې, تړنې, سمول) (deprecated?) Articles about professional baseball players Baseball players
Template:Mlbplayer (خبرې اترې, تړنې, سمول) MLB-specific template (deprecated) Baseball players
Template:Infobox MLB player (خبرې اترې, تړنې, سمول) Newer version of above template Baseball players
Template:Infobox tennis player (خبرې اترې, تړنې, سمول) Articles about professional tennis players Tennis
Template:Infobox Biography (خبرې اترې, تړنې, سمول) Articles describing people (living or deceased) Biography
Template:Infobox Politician (خبرې اترې, تړنې, سمول) Politician articles in place of Infobox Biography none
Template:Infobox Pope (خبرې اترې, تړنې, سمول) Popes in place of Infobox Biography None
Template:Infobox President (خبرې اترې, تړنې, سمول) U.S. Presidents in place of Infobox Biography None
Template:Infobox BPM (خبرې اترې, تړنې, سمول) British Prime Ministers in place of Infobox Biography Wikipedia:WikiProject British Government
Template:Infobox Playboy Playmate (خبرې اترې, تړنې, سمول) Playboy Playmates in place of Infobox Biography None
Template:Infobox Senator (خبرې اترې, تړنې, سمول) Senator in place of Infobox Biography None
Template:Ethnic group (خبرې اترې, تړنې, سمول) Articles about ethnic groups etc Ethnic groups

ترانسپورت[سمول]

Name Where to use Associated
WikiProject
Template:Airline infobox (خبرې اترې, تړنې, سمول) Airline articles Airlines
Template:Airport infobox (خبرې اترې, تړنې, سمول) Airport articles Airports
Template:routeboxca2 (خبرې اترې, تړنې, سمول) California State Route articles California State Highway Project
Template:routeboxwa (خبرې اترې, تړنې, سمول) Washington State Route articles Washington State Highway Project
Template:routeboxKY (خبرې اترې, تړنې, سمول) Kentucky State Route articles Kentucky State Highway Project
Template:routeboxint (خبرې اترې, تړنې, سمول) U.S. Interstate Highway U.S. Interstate Highway Project
Template:MORoutebox (خبرې اترې, تړنې, سمول) Missouri State Highway articles Missouri State Highway Project
Template:routeboxus (خبرې اترې, تړنې, سمول) U.S. Highway U.S. Highway Project
Template:TxRouteBox (خبرې اترې, تړنې, سمول) Texas State Highway articles
Template:routeboxnh (خبرې اترې, تړنې, سمول) New Hampshire State Highway articles New Hampshire State Highway Project
Template:Infobox road (خبرې اترې, تړنې, سمول) Roads
Template:Infobox rail (خبرې اترې, تړنې, سمول)
Template:Infobox SG rail (خبرې اترې, تړنې, سمول)
Railroads/Railways (second for standard gauge) Trains
Template:Infobox Rail companies (خبرې اترې, تړنې, سمول) Rail companies

بېلابېل[سمول]

Name Where to use Associated
WikiProject
Template:Album infobox (خبرې اترې, تړنې, سمول) Any article about a music album Albums
Template:Animal (family) (خبرې اترې, تړنې, سمول) Taxonavigation box for animal families (first draft) None
Template:Infobox Band (خبرې اترې, تړنې, سمول) Infobox for bands None
Template:Infobox Book (خبرې اترې, تړنې, سمول) Infobox for books Books &
Novels
Template:Infobox Canada Political Party (خبرې اترې, تړنې, سمول) political parties of Canada
Template:Infobox Constellation (خبرې اترې, تړنې, سمول) 88 standard constellations Constellations
Template:Infobox CVG (خبرې اترې, تړنې, سمول) Computer and video game articles Computer and video games
Template:Infobox Game (خبرې اترې, تړنې, سمول) Game descriptions Games
Template:Infobox Arcade Game (خبرې اترې, تړنې, سمول) Arcade game descriptions
Template:Infobox machinima (خبرې اترې, تړنې, سمول) Machinima productions None
Template:Infobox_Film (خبرې اترې, تړنې, سمول) Movies and films Films
Template:Infobox Music genre (خبرې اترې, تړنې, سمول) Musical genre articles Music genres
Template:Infobox Software (خبرې اترې, تړنې, سمول) Computer software Software
Template:Infobox Top level domain (خبرې اترې, تړنې, سمول) Top level domain None
Template:Infobox SuperBowl (خبرې اترې, تړنې, سمول) Super Bowl games National Football League
Template:Infobox television (خبرې اترې, تړنې, سمول) Television series Television
Template:Infobox Space mission (خبرې اترې, تړنې, سمول) Space mission articles
Template:Infobox Military Conflict (خبرې اترې, تړنې, سمول) Military conflicts (battles, wars, etc.) Military history
Template:Infobox Military Unit (خبرې اترې, تړنې, سمول) Military units Military history

دا هم وګورۍ[سمول]


These pages describe other types of templates: