User:Brammers/Dev04

From Neocron Wiki
< User:Brammers
Revision as of 00:22, 2 January 2009 by Brammers (talk | contribs) (→‎Further notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Transcluding Item ID's

Test page to see if item ID's can be transcluded. This is also relevant to templates as well.

Item's ID page User:Brammers/Dev04/Items

This is what I want to do:

<itemdb:show_list items="{{User:Brammers/Dev04/Items}}">

List of items to transclude which is in this page - User:Brammers/Dev04/Items

1500,1501,1502,1503,1504,1505

Test 1

This test won't work.

<itemdb:show_list items="{{{User:Brammers/Dev04/Items}}}"/>

Wiki parser won't transclude stuff within tags.

Test 2

Using the wiki {{#tag}} parser tag

{{#tag:itemdb:show_list||items=1000|}}

<itemdb:show_list items="1008"></itemdb:show_list>

Test 3

{{#tag:itemdb:show_list||items={{User:Brammers/Dev04/Items}}}}

<itemdb:show_list items="1500,1501,1502,1503,1504,1505"></itemdb:show_list>

Result

Test 2 and 3 would not work before, as we need wiki version 1.12 or later - see here. This page now works as the Wiki is now running version 1.13

Further notes

The tags need to be written in a slight odd way - see here for the #Tag details or view the page source.