Topic on Extension talk:DataTable2

how to use dt2-expand the right way

1
~o)sabine(o~ (talkcontribs)

Hello,

after upgrading to a recent mediawiki version I'm just migrating our product wiki from datatable to datatable2 and encountered a strange behaviour.

We show informations for one product on a single page, but store the data for all products on another page.

Our template for the single product page includes an includeonly part for e. g. assigning it to several product categories and a noinclude part for categorizing the template and including the Documentation template.

This is an abstracted version of the product page:

{{#dt2-expand:producttemplate|productable|pname = 'productname'}}

The product template contains

<includeonly>
[[category:snoozer|Vintage Pro 2000]]
</includeonly>
<noinclude>
{{documentation}}
[[category:template:layout|producttemplate]]
</noinclude>

With this enabled the product page will be categorized as template and the product template as normal page. When I swap the includeonly / noinclude tags everything is fine. Am I missing something in calling the dt2-expand function?

Thanks in advance,

Sabine

Reply to "how to use dt2-expand the right way"