Template: Infobox - Wikipedia. Note: In general, it is not meant for use directly in an article, but can be used on a one- off basis if required. Help: Infobox contains an introduction about the recommended content and design of infoboxes. See WP: List of infoboxes and Category: Infobox templates for lists of prepared topic- specific infoboxes. Usage. Usage is similar to . Each row on the table can contain either a header, or a label/data pair, or just a data cell. These are mutually exclusive states so if you define a row with both a header and a label/data pair, the label/data pair is ignored. To insert an image somewhere other than at the top of the infobox, or to insert freeform data, use a row with only a data field. Optional control parametersname If this parameter is present, . You may use the value . This parameter is empty by default, set it to . This parameter is empty by default, set to . Template:Infobox settlement. Infobox settlement; Documentation. Template:Infobox settlement/doc.It has no effect if the child parameter is also set to . Leave empty by default or set to . One contains the title inside the infobox's border in the uppermost cell of the table, the other puts as a caption it on top of the table. You can use both of them together if you like, or just one or the other, or even neither (though this is not recommended): title Text to put in the caption over the top of the table (or as section header before the whole content of this table, if this is a child infobox). For accessibility reasons, this is the most recommended alternative. Text to put within the uppermost cell of the table. Use full image syntax, for example . Image is centered by default. See WP: ALT for more on alt text. Text to put underneath the images. ![]() Field name Description; name: Required. The official name of the protected area. It will be displayed at the top of the infobox. In most cases this should be the same as the article name less any disambiguation. How to install template infobox in mediawiki. Jump to: navigation, search. Note: All of this tested on Mediawiki 1.14 at etcwiki. Template:Infobox lichthoose. Template documentation. Editors can experiment in this template's sandbox (create . Please add categories to the /doc subpage. This template is intended as a meta-template, that is, a template that's used when constructing other templates. It's not meant for use directly in an article. See Help:Infobox for information on how to craft infoboxes. Main dataheader(n) Text to use as a header in row n. Text to use as a label in row n. Text to display as data in row n. Note: for any given value for (n), not all combinations of parameters are permitted. Valid combinations for any single row are. Parameters for new rows can then be inserted in future without having to renumber existing parameters. This allows for the easy creation of optional infobox content rows. To make a row optional use a parameter that defaults to an empty string, like so. Consider this example: Example of an undesirable header. Undesirable header. Static header. Static item. ![]() Static value. . If none of the three parameters are defined the header won't be shown and no emty row appears before the next static content. The trick to this is that the . Ideally, the Lua module supporting this template should now support a new way to make each header row autohideable by detecting if there is at least one non- empty data row after that header row (a parameter like . The bottom cell is intended for footnotes, see- also, and other such information. Presentation parameters. Italic titles. Titles of articles with infoboxes may be made italic, in line with WP: ITALICTITLE, by passing the italic title parameter. Turn on italic titles by passing . Adding a background color is usually inadvisable since the text is rendered . The default style has font- size: 1. This includes the text of the image caption, but you should set text properties with captionstyle instead of imagestyle in case the caption is moved out of this cell in the future.
Applies to the text of the image caption. This parameter is inserted into the style attribute for the specified row. Applies to all header cellslabelstyle Applies to all label cellsdatastyle Applies to all data cellsbelowstyle Applies only to the below cell. HTML classes and microformatsbodyclass This parameter is inserted into the class attribute for the infobox as a whole. This parameter is inserted into the class attribute for the infobox's title caption. This parameter is inserted into the class attribute for the infobox's above cell. This parameter is inserted into the class attribute for the complete table row the subheader is on. This parameter is inserted into the class attribute for the infobox's subheader. These parameters are inserted into the class attribute for the complete table row their respective image is on. This parameter is inserted into the class attribute for the image. This parameter is inserted into the class attribute for the specified row including the label and data cells. This parameter is inserted into the class attribute for the data cell of the specified row. If there's no data cell it has no effect. This parameter is inserted into the class attribute for the infobox's below cell. This template supports the addition of microformat information. This is done by adding . Multiple class names may be specified, separated by spaces, some of them being used as selectors for custom styling according to a project policy or to the skin selected in user preferences, others beig used for microformats. To flag an infobox as containing h. Card information, for example, add the following parameter. Also notice that subheaders are not bold by default like the headers used to split the main data section, because this role is meant to be for the above cell : Test Infobox. Above text. Subheader above image. Second subheader. Caption displayed below File: Example- serious. Header defined alone. Data defined alone. All three defined (header, label, data, all with same number)Label and data defined (label)Label and data defined (data)Below text. This feature can be used to create a modular infobox, or to create better- defined logical sections. Long ago, it was necessary to use embedding in order to create infoboxes with more than 9. Notice that the section subheadings are not in bold font if bolding is not explicitly specified. To obtain bold section headings, place the child infobox in a header field (but not in a label field because it would not be displayed!), either using. Top level title. First subsection. Label 1. 1. Data 1. Second subsection. Label 2. 1. Data 2. Below text. . One feature of this approach is that the parent and child boxes need not have the same structure, and the label and data fields are not aligned between the parent and child boxes because they are not in the same parent table. Main 1. Main 2. Sub 3- 1. Sub 3- 2. Label 3- 3. Data 3- 3. Label 5. Data 5. Main 6. . See Template: Wbr/doc#Controlling line- breaking in infoboxes for details. Full blank syntax(Note: there is no limit to the number of possible rows; only 2. Just extend the numbering as needed. For example, the full taxonomic hierarchy in . The infobox is also often the location of the most significant, even only, image in an article. Porting to other Media. Wikis. The infobox template requires the Scribunto extension and HTMLTidy to be installed. It may not work with other Media. Wikis. Wiki. Project Transwiki has a version of this template that has been modified to work on other Media. Template: Infobox settlement - Wikipedia. This template employs intricate features of template syntax. You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. Parameters ar deskrived in the table anaith. For quaistens see the talk page. Table o contents. Redirects an caws. Uisage. 3Complete empie syntax, wi comments. Parameter names and descriptions. Name and transliteration. Images, Nickname, Motto. Maps, Coordinates. Location, Established, Seat, Subdivisions, Government, Leaders. Geographic information. Population, Demographics. Other information. Example. 6Microformat. Redirects an caws. At least 0 ither templates caw this ane an monie templates regyd til here. Uisage. Important: Please inpit aw numeric vailyie in a raw, unformatt'd fashion. References ar tae be includit in thair respective section fitnotes feild. Numeric vailyie that ar no . Raw vailyie wul be automaticalie formatt'd bi the template. Gin ye find a raw vailyie is no formatt'd whan ye uis the template, please pit a notice on the discussion page for this template. An . See the neist section for a copie o the template wi aw parameters an comments. See the table anaith that for a full deskription o ilk parameter. Note anent langage: The code (whit ye see anaith) is in Inglis, but the infobox wul shaw- up in Scots on the airticil itsel. Usin metric units. If more than one, use . If more than one, use . Comments here shud be brief; see the table anaith for full deskriptions o ilk parameter. If more than one, use . Liverpudlian for someone from Liverpool - ->. If there is more than one native name, in different languages, enter those names using . If set, will be displayed under the names, provided that either name or official. Might also be used as a label for total population/area (defaulting to City), if needed to distinguish from Urban, Rural or Metro (if urban, rural or metro figures are not present, the label is Total unless total. Can be used to specify a particular language like in D. This can can helpful if an editor want to make the infobox wider. If used, px must be specified; default size is 2. If used, px must be specified; default size is 1. See Coquitlam, British Columbia's infobox for an example. Logo or emblem imageimage. Logo is the default type. See Kingston upon Hull's infobox for an example. The default is Logo. Example see: Bloomsburg, Pennsylvania. If used, px must be specified; default is 2. Blank maps, if available, can be found over at Wikimedia Commons. Example see: Rainbow Lake, Albertadot. The coordinate fields (eg. Example see: Padang, Indonesiapushpin. If this field is not specified, the default value is right. The default value is 2. Can also be used for decimal degrees. Latitude minutes. Omit or leave blank if latd has a decimal value. Latitude seconds. Omit or leave blank if latd has a decimal value. NSoptional. Latitude North or South (enter N or S). Omit or leave blank if latd has a decimal value. Longitude degrees. Can also be used for decimal degrees. Longitude minutes. Omit or leave blank if longd has a decimal value. Longitude seconds. Omit or leave blank if longd has a decimal value. EWoptional. Longitude East or West (enter E or W). Omit or leave blank if longd has a decimal value. Coordinates displaycoor. Town Hall) or a specific place in a larger area (e. Example: Masovian Voivodeshipcoordinates. Use either a two character ISO 3. ISO 3. 16. 6- 2 region code. If coordinates. For example, subdivision. In addition, for Canada, India, and the United States, subdivision. For example: subdivision. May include type: , scale: , dim: , region: , and/or source: , joined by underscores (. Don't add flag icons or flag templates in this field. Establishedestablished. Default is list for up to 5 items, otherwise coll. Text or header of the list of smaller subdivisions. The smaller subdivisions to be listed. Example: Warsaw. Government type, Leadersgovernment. See Halifax for an example. Geographic information. These fields have dual automatic unit conversion meaning that if only metric values are entered, the imperial values will be automatically converted and vice versa. If an editor wishes to over- ride the automatic conversion, e. This overrides other labels for total population/area. To make the total area and population display on the same line as the words . The default display style is metric (imperial). However, the template will swap the order automatically if the subdivision. The template will format them automatically. Areaarea. Should enter 1 E+6 for area of 1. Value must be entered in raw format, no commas or spaces. Auto- converted to display square miles if area. Value must be entered in raw format, no commas or spaces. Auto- converted to display square kilometers if area. Used in middle eastern places like Israel, Gaza, and the West Bank. Value must be entered in raw format, no commas or spaces. Auto- converted to display square kilometers and square miles if area. Examples: Gaza and Ramallaharea. Value must be entered in raw format, no commas or spaces. Auto- converted to display square miles if area. Value must be entered in raw format, no commas or spaces. Auto- converted to display square kilometers if area. Value must be entered in raw format, no commas or spaces. Auto- converted to display square miles if area. Value must be entered in raw format, no commas or spaces. Auto- converted to display square kilometers if area. Will automatically convert to display elevation in feet if elevation. However, if a range in elevation (i. Will automatically convert to display the average elevation in meters if elevation. However, if a range in elevation (i. Example: Halifax Regional Municipality. Population, Demographics. The density fields have dual automatic unit conversion meaning that if only metric values are entered, the imperial values will be automatically converted and vice- versa. If an editor wishes to over- ride the automatic conversion, e. To calculate density with respect to the total area automatically, type auto in place of any density value. Parameter name. Usage. Description. Populationpopulation. Example: Windsor, Ontariopopulation. For example citizens in Liverpool are known as Liverpudlians. See Windsor, Ontario for example. Demographics (section 1)demographics. For example: Ethnicitydemographics. For example: White, Black, Hispanic.. For example: 5. 0%, 2. Demographics (section 2)demographics. For example: Languagesdemographics. For example: English, French, Arabic.. For example: 5. 0%, 2. Other information. Parameter name. Usage. Description. Time zone(s)timezone. The name is displayed in bold on the left side of the infobox. The info is displayed on right side of infobox, in the same row as the name. For an example, see: Warsawblank. The article covers them!- ->. Within the h. Card is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project. If the place or venue has an.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2016
Categories |