ويکيپېډيا:د مالوماتبکس کينډۍ
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.
سکښت او کارېدنه
سمول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:
- Standard suggested width of 300 pixels or 25 ems (300px or 25em in CSS).
- Inserted at the top of the article, and aligned to the right side. Using
class="infobox"
is a good start. - 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.
- 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.
وگړپوهنه او فرهڼ
سمولنوم | کوم ځای کې کارېږي | مل شوی ويکي پروژه |
---|---|---|
Template:توکم ډله (خبرې اترې, تړنې, سمول) | توکم ډله | توکم ډله |
ستورپېژندنه
سمولژونپوهنه
سمولنوم | کوم ځای کې کارېږي | مل شوی ويکي پروژه |
---|---|---|
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 |
کيميا
سمولنوم | کوم ځای کې کارېږي | مل شوی ويکي پروژه |
---|---|---|
Template:کيميابکس (خبرې اترې, تړنې, سمول) | د کيميايي مرکباتو اړونده ليکنو کې | کيمياتوکي |
Template:Chembox simple organic (خبرې اترې, تړنې, سمول) | د عضوي مرکباتو اړونده ليکنو کې | کيمياتوکي |
Template:Chembox simple inorganic (خبرې اترې, تړنې, سمول) | د غيرعضوي مرکباتو اړونده ليکنو کې | کيمياتوکي |
زده کړې
سمولنوم | کوم ځای کې کارېږي | مل شوی ويکي پروژه |
---|---|---|
Template:مالوماتبکس پوهنتون (خبرې اترې, تړنې, سمول) | پوهنتونونه او پوهنځي | پوهنتونونه |
Template:مالوماتبکس پوهنتون2 (خبرې اترې, تړنې, سمول) | پوهنتونونه او پوهنځي | پوهنتونونه |
Template:مالوماتبکس قانونپوهنې پوهنځی (خبرې اترې, تړنې, سمول) | د قانونپوهنې پوهنځي | پوهنتونونه |
Fiction
سمولجغرافيه
سمولIndustry
سمولنوم | کوم ځای کې کارېږي | مل شوی ويکي پروژه | |
---|---|---|---|
Template:Infobox Company (خبرې اترې, تړنې, سمول) | Business organization articles | Companies |
رسنۍ او خبريالي
سمولنوم | کوم ځای کې کارېږي | مل شوی ويکي پروژه |
---|---|---|
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 |
خلک
سمولنوم | کوم ځای کې کارېږي | مل شوی ويکي پروژه |
---|---|---|
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 | ويکيپېډيا:ويکي پروژه 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 |
ترانسپورت
سمولبېلابېل
سمولدا هم وگورئ
سمول
These pages describe other types of templates:
- Wikipedia:Template messages are used primarily to insert simple "boilerplate" messages for Wikipedia maintenance or editing purposes.
- Wikipedia:Navigational templates are article footers designed to provide links to several related articles.
- Wikipedia:MediaWiki interface messages are reserved for internal system use, and can only be modified by administrators.