Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Iterate/doc: Difference between revisions

Template page
first version
 
m format
Line 15: Line 15:


   |3      =n
   |3      =n
   |3d-en  =number of the changing parameters, 1 ...  
   |3d-en  =number of the changing parameters, 1 ... ''n''
   |3def  =2
   |3def  =2
   |3stat  =optional-
   |3stat  =optional-
Line 61: Line 61:
# {{Tle|t=<code>template</code>|r|s|t|c1|c2|...|c8}}
# {{Tle|t=<code>template</code>|r|s|t|c1|c2|...|c8}}
# {{Tle|t=<code>template</code>|x|y|z|c1|c2|...|c8}}
# {{Tle|t=<code>template</code>|x|y|z|c1|c2|...|c8}}
The ''tupel''-number <code>n</code> can be any value 1,2, ...; the example schows a tripel.<br>
The ''tupel''-number <code>n</code> can be any value 1,2, ...; this example schows a tripel.<br>
The number of the tupels, in the example 4, is not limited.<br>  
The number of the tupels, in the example 4, is not limited.<br>  
The additional values are currently limited to 8, therefore 0 ...8 values can be specified.
The additional values are currently limited to 8, therefore 0 ...8 values can be specified.
Line 83: Line 83:
|p1=32|p2=Z}}
|p1=32|p2=Z}}


<includeonly>
<!-- Categories below this line; interwikis at Wikidata -->


}}</includeonly>
;Note&#58;: With {{Tle|T=Filelist|p1=d|32|p2=o|Z|p3=c|n|p4=q4|b|Pink check.svg|Purple check.svg|Yellow check.svg|White check.svg|Red check.svg}}
the same display is shown: {{Filelist|Pink check.svg|Purple check.svg|Yellow check.svg|White check.svg|Red check.svg|d=32|o=Z|c=n|q4=b}}

Revision as of 12:33, 27 January 2022

Iteration template with a number of parameters changing for each transclusion, and more parameters always the same for all transclusions

Usage

{{Iterate |1= }}

Template parameters

ParameterDescriptionDefaultStatus
11 ... x Parameters, e.g. filenamesemptysuggested
tName of the iterated template{{F}}optional
nnumber of the changing parameters, 1 ... n2optional
p1 ... p8all the not-changing parametersemptyoptional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

Localization

This template is not intended to be localized.

Explanation

A template (t) is transcuded, with positional parameters

  1. a tupel of (n) parameters changing for each transclusion, and
  2. a number of not changing additional parameter values.

Example

for e.g. n=3: With {{ Iteratet = templaten = 3
abc
uvw
rst
xyz
p1 = c1p2 = c2...p8 = c8 }}
the template template will be transcluded 4 times, with the parameters

  1. {{ templateabcc1c2...c8 }}
  2. {{ templateuvwc1c2...c8 }}
  3. {{ templaterstc1c2...c8 }}
  4. {{ templatexyzc1c2...c8 }}

The tupel-number n can be any value 1,2, ...; this example schows a tripel.
The number of the tupels, in the example 4, is not limited.
The additional values are currently limited to 8, therefore 0 ...8 values can be specified.


With:

{{Iterate
|Pink check.svg|
|Purple check.svg|
|Yellow check.svg|
|White check.svg|b
|Red check.svg|
|p2=Z|p1=32}}

(default for t=F and n=2)
these five files are shown:


Note:
With {{ Filelistd = 32o = Zc = nq4 = bPink check.svgPurple check.svgYellow check.svgWhite check.svgRed check.svg }}

the same display is shown:

Cookies help us deliver our services. By using our services, you agree to our use of cookies.