Difference between revisions of "Template:Portal archive"

From blackwiki
Jump to navigation Jump to search
test>Tuxa
(debug)
test>Tuxa
m (→‎format: doc coorcting example)
Line 13: Line 13:
 
==format==
 
==format==
 
example
 
example
<nowiki>{{Numbered subpages}}</nowiki>
+
<nowiki>{{Portal archive |mode=number}} or {{Portal archive|mode=list|telecommuniction|wimax|zig-bee|Amplitude mdulation</nowiki>
 +
 
 
==trivial==
 
==trivial==
 
passing parameter as maximum in number mode  is not supported yet .In fact its only way is by using #for (MediaWiki 1.7+);In fact this template would be much easier if used #for but it is a part of MediaWiki 1.7 (not used yet).
 
passing parameter as maximum in number mode  is not supported yet .In fact its only way is by using #for (MediaWiki 1.7+);In fact this template would be much easier if used #for but it is a part of MediaWiki 1.7 (not used yet).

Revision as of 21:30, 20 August 2007


Usage

Template to show subpages .Maximum number of subpages must be defined in Template by repeating parameters used in forLoop template till maximum .Maximum is defined here as 50 .

Modes

  1. numeber :arranged ascendingly from 1 to maximum, passing parameter as maximum is not supported yet
  2. list : in call of template list all subpages seperated as parameters . i.e. seperated with :|

Practical Usage example

selected articles page in a portal that it is needed to show all selected aricles stored in subpages in it.

format

example {{Portal archive |mode=number}} or {{Portal archive|mode=list|telecommuniction|wimax|zig-bee|Amplitude mdulation

trivial

passing parameter as maximum in number mode is not supported yet .In fact its only way is by using #for (MediaWiki 1.7+);In fact this template would be much easier if used #for but it is a part of MediaWiki 1.7 (not used yet).

Used Templates