Latest Neocron News and Information

  • New test server patch #563 has been released to Vedeena

Difference between revisions of "User:Brammers/Dev04"

From Neocron Wiki
Jump to: navigation, search
(Sex! This now works!)
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]]
Line 14: Line 14:
  
 
=== Test 1 ===
 
=== Test 1 ===
 +
 +
This test won't work.
  
 
<itemdb:show_list items="{{{User:Brammers/Dev04/Items}}}"/>
 
<itemdb:show_list items="{{{User:Brammers/Dev04/Items}}}"/>
Line 33: Line 35:
 
{{#tag:itemdb:show_list||items={{User:Brammers/Dev04/Items}}}}
 
{{#tag:itemdb:show_list||items={{User:Brammers/Dev04/Items}}}}
  
Test 2 and 3 wont work, as we need wiki version 1.12 - see [http://www.mediawiki.org/wiki/Manual:Tag_extensions#Extensions_and_Templates here]
+
== 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]
 +
 
 +
== Further notes ==
 +
 
 +
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.

Revision as of 00:21, 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

Further notes

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