Difference between revisions of "User:Brammers/Dev04"

From Neocron Wiki
Jump to: navigation, search
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Transcluding Item ID's ==
 
== Transcluding Item ID's ==
  
Test page to see if item ID's can be transcluded.
+
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]]
 
Item's ID page [[User:Brammers/Dev04/Items]]
 +
 +
This is what I want to do:
  
 
<nowiki><itemdb:show_list items="{{User:Brammers/Dev04/Items}}"></nowiki>
 
<nowiki><itemdb:show_list items="{{User:Brammers/Dev04/Items}}"></nowiki>
  
<itemdb:show_list items="{{{User:Brammers/Dev04/Items}}}">
+
List of items to transclude which is in this page - [[User:Brammers/Dev04/Items]]
 +
 
 +
{{User:Brammers/Dev04/Items}}
 +
 
 +
=== 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 <nowiki>{{#tag}}</nowiki> parser tag
 +
 
 +
<nowiki>{{#tag:itemdb:show_list||items=1000|}}</nowiki>
 +
 
 +
{{#tag:itemdb:show_list||items=1008|}}
 +
 
 +
=== Test 3 ===
 +
 
 +
<nowiki>{{#tag:itemdb:show_list||items={{User:Brammers/Dev04/Items}}}}</nowiki>
 +
 
 +
{{#tag:itemdb:show_list||items={{User:Brammers/Dev04/Items}}}}
 +
 
 +
== Result ==
 +
 
 +
Test 2 and 3 would not work before, as we need wiki version 1.12 or later - see [http://www.mediawiki.org/wiki/Manual:Tag_extensions#Extensions_and_Templates here]. This page now works as the Wiki is now running version 1.13
  
 +
== Further notes ==
  
{{#tag:itemdb:show_list items="{{{User:Brammers/Dev04/Items}}}"}}
+
The tags need to be written in a slight odd way - see [http://meta.wikimedia.org/wiki/Help:Magic_words#Formatting here for the #Tag] details or view the page source.

Latest revision as of 00:22, 2 January 2009

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.