Sandbox infobox: Difference between revisions

From Beer
Jump to navigation Jump to search
(Created page with "{| class="infobox" | colspan="6" style="text-align:center;font-size:10pt" | '''PHILIPPINES'''<br/>300px<br /> {|class="wikitable sortable" !colspan="3" style="color:green;"|Let's eat |- !style="background-color:#cfcfcf;" align="center" | Dish!!How it looks |- |Balut ba ba ba ba ba ggggggggggggba ba ba ba ||75px |- |Balut||75px |- |-class="sortbottom" |} |- ! style="background:lightgreen;width:;font-size:10...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="infobox"
{{Infobox
| colspan="6" style="text-align:center;font-size:10pt" | '''PHILIPPINES'''<br/>[[Image:Phfood.png|300px]]<br />
| image=
{|class="wikitable sortable"
| data1 = 2008
!colspan="3" style="color:green;"|Let's eat
| data2 = 2008
|-
| data3 = 2008
!style="background-color:#cfcfcf;"  align="center" | Dish!!How it looks
| data4 = 2008
|-
}}
|[[Balut ba ba ba ba ba ggggggggggggba ba ba ba ]]||[[File:Edit.png|75px]]
|-
|[[Balut]]||[[File:Edit.png|75px]]
|-
|-class="sortbottom"
|}
|-
! style="background:lightgreen;width:;font-size:10pt" | Philippines
|-
|}
 
 
 
===Designing===
Editors generally compose infoboxes from four types of visual elements:  A title, images, sections, and fields.  Since these terms are not standard, we illustrate them here:
 
The selection and arrangement of fields is an important design decision for which gives some general advice.  The part of a field that varies from article to article becomes a parameter for the newly prototyped infobox and must be consistently expressed in two distinct places:
 
#In the infobox implementation itself, to indicate where the article-specific text is to be displayed
#In the infobox documentation, to indicate which article-specific information editors are to provide when using the infobox
 
Additionally, the editor should decide whether a field (and hence its corresponding parameter) is required or optional.  The difference between the two is that a required field is always displayed; an optional field is '''not''' displayed where articles referencing the infobox omit the parameter.  If the field is required, the infobox designer should consider whether a default value for the field is useful.

Latest revision as of 15:23, 18 December 2023

2008
2008
2008
2008

Template:Main other