Diferencia entre revisiones de «Ayuda:Infoboxes»

1629 bytes añadidos ,  hace 3 años
m
Protected "Help:Infoboxes": Guideline/policy page ([Edit=Allow only keepers] (indefinite) [Move=Allow only keepers] (indefinite))
(begun)
 
m (Protected "Help:Infoboxes": Guideline/policy page ([Edit=Allow only keepers] (indefinite) [Move=Allow only keepers] (indefinite)))
 
(No se muestran 5 ediciones intermedias de 2 usuarios)
Infoboxes are [[help: templates|templates]] which display a list of properties about an article to the right of the introductory paragraphs. The properties shown are often links to other articles and may responsible for adding a page to a particular category. The infobox may also display an image depicting the article contents above the other information. This article will describe the general layout of infoboxes and include examples and descriptions of the most common properties. [[category: help]]
 
The vast majority of content articles include one of the infobox templates, and the information is always provided in the first few lines of the article, and each of the `|property=value` lines will produce an equivalent row in the infobox. For a list of all infobox templates see [[:category: infoboxes]]. The properties passed to the infobox should each be on their own line and should be listed in order of their appearance on the final rendered page.
 
<pre class=mw-code>
{{infobox-templatename|title=better title
|image=example.jpg
|region=Final Empire
 
== Common Parameters ==
=== Misc ===
; <code>|image=</code>: Many infoboxes have has the ability to show an image of the subject by providing the filename, eg <code>|image=lifeform.jpg</code>. This parameter should be on the first line after the opening <code>{{infobox-template</code> as the image is placed at the top of the page. The filename will be passed to {{t|row/image+artist}} and will show the image and provide attribution to the artist.
; <code>|booksimage=</code>: MostMany infoboxes have ahas <code>books</code>the parameterability isto requiredshow andan shouldimage provide links toof the bookssubject orby series whichproviding the subjectfilename, is featurede.g. in<code>|image=Vin.png</code>. TheThis '''Featuredparameter In'''should linebe appears aton the bottomfirst ofline after the opening <code>{{infobox,-template</code>. andThe sofilename thewill linebe shouldpassed beto the{{t|row/image+artist}} lastand beforewill show the closingimage <code>}}</code>and lineprovide attribution to the artist.
; <code>|books=</code>: Most infoboxes have a mandatory <code>books</code> and should provide links to the book or series which the subject is featured in. The '''Featured In''' line appears at the bottom of the infobox, and so the line should be the last before the closing <code>}}</code> line.
 
=== Location & Setting ===
Generally speaking, there are three types of parameters when it comes to location.
To indicate the setting within which the subject matter is discussed, the following parameters are accepted. At least one of these should be provided, and they should be provided in most-to-least specific order, as they are in the above list.
; Local
; <code>|world=</code>: The <code>world</code> parameter should provide the name of the planet the subject is located on. This will generate a link to the planet passed and may categorise the article in an appropriate planet category.
: These are locations within a given world (<small>from smallest to largest, <code>city</code>, <code>state</code>, <code>region</code>, and <code>nation</code></small>). Which ones are present varies between templates - some infobox templates use all of them, while others use only a subset. Unless otherwise specified, only ''the most local'' of these should be used.
; <code>|earth=</code>: If the setting is an alternative earth, the <code>earth</code> parameter should be used instead, and should provide the series name (such as <code>|earth=Alcatraz</code> which will create a link to [[Earth (Alcatraz)]] or <code>|earth=Reckoners</code> to link to [[Earth (Reckoners)]]) and may categorise the article in an appropriate category.
: For example, the [[Hall of Art]] which uses the {{t|architecture}} infobox (which allows for all of these), provides <code>|city=Narak</code>, which means it doesn't need to supply any of the less granular ones (<small>e.g. <code>|region=Shattered Plains</code> is unnecessary</small>).
; <code>|universe=</code>: If neither <code>world</code> or <code>earth</code> are sufficient, then a <code>universe</code> can be provided to describe a more generic setting.
; Local, world-specific
; <code>|region=</code>: To indicate a more specific area or region the subject is from, provide the <code>region</code> parameter
: These are very similar to the ones above, but apply only to specific nations or worlds, and are always required when they apply. Currently, the only parameters in this group are <code>princedom</code> (<small>for [[Alethi]] and [[Veden]] princedoms on [[Roshar]]</small>) and <code>dominance</code> (<small>for [[Final Empire]] [[dominance]]s on [[Scadrial]]</small>).
; Global
: These are world-level and above parameters, and most infobox templates include and require all of them (<small><code>world / earth</code> and <code>universe</code></small>).
:; <code>|world=</code>: The <code>world</code> parameter should provide the name of the non-Earth planet the subject is located on. This will generate a link to the planet passed and may categorise the article in an appropriate planet category. Many infobox templates offer a <code>'world</code> variant of this, which can be used to bypass the automatic link generation and pass a "raw" value; this can be useful when you want to manually link something.
:; <code>|earth=</code>: If the setting is an alternative earthEarth, the <code>earth</code> parameter should be used instead, and should provide the series name (such as<small>e.g. <code>|earth=Alcatraz</code> which will create a link to [[Earth (Alcatraz)]], orwhile <code>|earth=Reckoners</code> towill link to [[Earth (Reckoners)]]</small>). andFor maya categoriselist theof articlevalid inEarths, ansee appropriate category[[Earth]].
:; <code>|universe=</code>: Use <code>universe</code> alongside with either <code>world</code> or <code>earth</code> to specify the connected universe of the subject - or to indicate that it takes place in a standalone universe. Unlike the other two parameters, <code>universe</code> does not generate a link on its own, so you should do it manually (e.g. <code><nowiki>|universe=[[Cosmere]]</nowiki></code>); if indicating a nameless standalone universe, simply put <code><nowiki>|universe=''Standalone''</nowiki></code>.
 
=== Special parameters ===