Difference between revisions of "DPL Example 003"
From FollowTheScore
Line 11: | Line 11: | ||
format =,,\n|align=right|²{#ifexpr:%COUNT%>2400¦<big>'''%COUNT%'''</big>¦%COUNT%}², | format =,,\n|align=right|²{#ifexpr:%COUNT%>2400¦<big>'''%COUNT%'''</big>¦%COUNT%}², | ||
table =,Country,Area,Population,#hits | table =,Country,Area,Population,#hits | ||
− | tablerow =align=right|%%,align=right | + | tablerow =align=right|%%,align=right bgcolor=#ffffaa|<small>%%</small>,\n|align=right|%% |
</dpl> | </dpl> | ||
</nowiki></pre> | </nowiki></pre> | ||
Line 26: | Line 26: | ||
format =,,\n|align=right|²{#ifexpr:%COUNT%>300¦<big>'''%COUNT%'''</big>¦%COUNT%}², | format =,,\n|align=right|²{#ifexpr:%COUNT%>300¦<big>'''%COUNT%'''</big>¦%COUNT%}², | ||
table =,Country,Area,Population,#hits | table =,Country,Area,Population,#hits | ||
− | tablerow =align=right|%%,align=right | + | tablerow =align=right|%%,align=right bgcolor=#ffffaa|<small>%%</small>,\n|align=right|%% |
</dpl> | </dpl> |
Revision as of 23:46, 7 March 2009
back to list of examples
Create a table of articles based on template parameters, apply individual formatting to columns
We show various template parameters.
<dpl> category=African Union member states nottitlematch=Sudan addpagecounter=true includepage ={Infobox Country or territory}:area:population_estimate format =,,\n|align=right|²{#ifexpr:%COUNT%>2400¦<big>'''%COUNT%'''</big>¦%COUNT%}², table =,Country,Area,Population,#hits tablerow =align=right|%%,align=right bgcolor=#ffffaa|<small>%%</small>,\n|align=right|%% </dpl>
The above DPL command produces the following output:
Country | Area | Population | #hits |
---|---|---|---|
Cameroon | 475,442 | 16,323,000 | |
Nigeria | 923,768 | 133,530,0001 | |
Somalia | 637,657 | 8,228,000 |