ਫਰਮਾ:Columns-start
The columns-start template and its child templates column and columns-end can be used to make a fixed number of columns (up to 5) that will span the entire page above a certain minimum width (100 ems for 5 columns, 80 for 4, 60 for 3 and 2). Below the minimum width, each column starting from the right will gracefully display below another one of the columns. UseThe below examples are using the templates directly, so you can see what will happen if the minimum size is reached. {{columns-start}} Column 1 here {{column}} Column 2 here {{columns-end}} {{columns-start|num=3}} Column 1 here {{column}} Column 2 here {{column}} Column 3 here {{columns-end}} {{columns-start|num=4}} Column 1 here {{column}} Column 2 here {{column}} Column 3 here {{column}} Column 4 here {{columns-end}} {{columns-start|num=5}} Column 1 here {{column}} Column 2 here {{column}} Column 3 here {{column}} Column 4 here {{column}} Column 5 here {{columns-end}} ParametersColumns-start has these parameters:
Template:Column has the same parameters where it is used as a "wrapper" template with numbered columns. Example: {{column|num=2 |1= Column 1 here |2= Column 2 here }} {{column|num=3 | Column 1 here | Column 2 here | Column 3 here }} In the second example, be aware of the possible problem with a column that includes an equals sign. See Help:Templates#Equals for more information. Otherwise, Template:Column must be used as above with Template:Columns-start. ExampleThis is an example from List of Indonesia-related topics: Palaces in Indonesia Prisons Shopping malls Towers LimitationsUsing headings inside {{column}} in its wrapper form functions so long as there is some content beneath the 2nd and later heading. Secondly, headings will not carry an edit link. The below table may wrap (i.e. not display as columns) but displays the issue.
See alsoColumn-generating template familiesThe templates listed here are not interchangeable. For example, using {{col-float}} with {{col-end}} instead of {{col-float-end}} would leave a HTML "div" (division) open, potentially harming any subsequent formatting.
† Can template handle the basic wiki markup |
Portal di Ensiklopedia Dunia