Generating tabular output (examples): Difference between revisions
Content added Content deleted
fts>Gero No edit summary |
fts>Gero No edit summary |
||
Line 10: | Line 10: | ||
|include = {Some Template}:parm1 |
|include = {Some Template}:parm1 |
||
|table = ,,The first parameter<br>of the Template Call |
|||
|tablerow = bgcolor=#eeffee¦%% |
|||
{{#dpl: |
{{#dpl: |
||
|titlematch = Some Article % |
|titlematch = Some Article % |
||
Line 21: | Line 23: | ||
|include = {Some Template}:parm1 |
|include = {Some Template}:parm1 |
||
|table = ,-,The first parameter of the Template Call |
|table = ,-,The first parameter of the Template Call |
||
|tablerow = bgcolor=#eeffee¦%% |
|||
{{#dpl: |
{{#dpl: |
||
|titlematch = Some Article % |
|titlematch = Some Article % |
||
|include = {Some Template}:parm1 |
|include = {Some Template}:parm1 |
||
|table = ,-,The first parameter |
|table = ,-,The first parameter<br>of the Template Call |
||
|tablerow = bgcolor=#eeffee¦%% |
|||
}} |
}} |
||
A single '-' instead of a column name for the hyperlink to the article will suppress that column. |
A single '-' instead of a column name for the hyperlink to the article will suppress that column. |
||
Line 31: | Line 35: | ||
== B: just get one chapter == |
== B: just get one chapter == |
||
|include=#Chapter X |
|include = #Chapter X |
||
|table=,,X |
|table = ,,X |
||
|tablerow = bgcolor=#ffeeee¦%% |
|||
{{#dpl: |
{{#dpl: |
||
|titlematch=Some Article % |
|titlematch=Some Article % |
||
|include=#Chapter X |
|include = #Chapter X |
||
|table=,,X |
|table = ,,X |
||
|tablerow = bgcolor=#ffeeee¦%% |
|||
}} |
}} |
||
Line 42: | Line 48: | ||
== B2: one chapter, one line per article == |
== B2: one chapter, one line per article == |
||
|include=#dummy,#Chapter X |
|include = #dummy,#Chapter X |
||
|table=,,,X |
|table = ,,,X |
||
|tablerow = ,bgcolor=#ffeeee¦%% |
|||
{{#dpl: |
{{#dpl: |
||
|titlematch=Some Article % |
|titlematch=Some Article % |
||
|include=#dummy,#Chapter X |
|include = #dummy,#Chapter X |
||
|table=,,,X |
|table = ,,,X |
||
|tablerow = ,bgcolor=#ffeeee¦%% |
|||
}} |
}} |
||
Using a dummy parameter (and adding an empty column header -- set the three commas at 'table=,,,X') leads to only ONE line per article. Not very clean, but it works. |
Using a dummy parameter (and adding an empty column header -- set the three commas at 'table=,,,X') leads to only ONE line per article. Not very clean, but it works. |
||
Line 53: | Line 61: | ||
== C: get two different chapters == |
== C: get two different chapters == |
||
|include=#Chapter X,#Chapter Z |
|include = #Chapter X,#Chapter Z |
||
|table=,,X,Z |
|table = ,,X,Z |
||
|tablerow = bgcolor=#ffeeee¦%%,bgcolor=#ffffee¦%% |
|||
{{#dpl: |
{{#dpl: |
||
|titlematch=Some Article % |
|titlematch=Some Article % |
||
|include=#Chapter X,#Chapter Z |
|include = #Chapter X,#Chapter Z |
||
|table=,,X,Z |
|table = ,,X,Z |
||
|tablerow = bgcolor=#ffeeee¦%%,bgcolor=#ffffee¦%% |
|||
}} |
}} |
||