| For other kinds of DPL usage, see Template:DPL. |
This template is an example of a DPL table that has a column showing each game link appropiately instead of just the abbreviation. Credit goes to RurinGas for creating this DPL.
Usage[edit]
This example shows an use of this DPL with multiple categories (in this case, dogs and dogmeat), but only one kind of infobox. It is sorted with the third column, so if you add more, please change this number to reflect the last column or whichever column you want to sort with. If the number exceeds the column count, it won't display. Negative number means descending.
{{#dpl:
|categorymatch = Dogs¦Dogmeat
|ordermethod = title
|uses = Template:Infobox character
|tablesortcol=-3
|include = {Infobox character}:image:%PAGE%:games
|table= class="ace-table ace-table-shaded ace-table-center sortable" style="width:99%;" ,-,Image, Name, Game
|tablerow=
[[File:%%|80x80px]],
{{pagename nd link{{!}}%PAGE%}},
''{{Abblist{{!}}%%}}''
}}
You can see this example generated below this documentation.
Extra columns[edit]
To add extra rows of unformatted information, you can use %%,. You can see examples of that in the Fallout 4 Weapons article.
{{#dpl:
|categorymatch = Dogs¦Dogmeat
|ordermethod = title
|uses = Template:Infobox character
|tablesortcol=-3
|include = {Infobox character}:image:%PAGE%:abstract:health:games
|table= class="ace-table ace-table-shaded ace-table-center sortable" style="width:99%;" ,-,Image, Name, Abstract, Health, Game
|tablerow=
[[File:%%|80x80px]],
{{pagename nd link{{!}}%PAGE%}},
%%,
%%,
''{{Abblist{{!}}%%}}''
}}
Notes[edit]
- If you are using a template inside the DPL list that has parameters, you would need to type
|, which would break the template in most cases. Use{{!}}instead, which means the same thing,|. - For a general overview on how to use DPLs, see RurinGas' DPL Tutorial.
- For more information of DPL parameters, see Template:DplParams.
- For generating a DPL with multiple infoboxes that shows the game links properly, see Template:Game Column Multi-infobox DPL.
