Template:List of template calls

From Meta

Jump to: navigation, search

{{{{{1}}}|{{{4}}}|{{{2}}}|{{{3}}}}}{{List of template calls {{{5}}}|{{{1}}}|{{{2}}}|{{{3}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}|{{{10}}}|{{{11}}}|{{{12}}}|{{{13}}}|{{{14}}}|{{{15}}}|{{{16}}}|{{{17}}}|{{{18}}}|{{{19}}}|{{{20}}}|{{{21}}}|{{{22}}}|{{{23}}}|{{{24}}}|{{{25}}}|{{{26}}}|{{{27}}}|{{{28}}}|{{{29}}}|{{{30}}}|{{{31}}}|{{{32}}}|{{{33}}}|{{{34}}}|{{{35}}}|{{{36}}}|{{{37}}}|{{{38}}}|{{{39}}}|{{{40}}}|{{{41}}}|{{{42}}}|{{{43}}}|{{{44}}}|{{{45}}}|{{{46}}}|{{{47}}}|{{{48}}}|{{{49}}}|{{{50}}}|{{{51}}}|{{{52}}}|{{{53}}}|{{{54}}}|{{{55}}}|{{{56}}}|{{{57}}}|{{{58}}}|{{{59}}}|{{{60}}}|{{{61}}}|{{{62}}}|{{{63}}}|{{{64}}}|{{{65}}}|{{{66}}}|{{{67}}}|{{{68}}}|{{{69}}}|{{{70}}}|{{{71}}}|{{{72}}}|{{{73}}}|{{{74}}}|{{{75}}}|{{{76}}}|{{{77}}}|{{{78}}}|{{{79}}}|{{{80}}}|{{{81}}}|{{{82}}}|{{{83}}}|{{{84}}}|{{{85}}}|{{{86}}}|{{{87}}}|{{{88}}}|{{{89}}}| {{{90}}}|{{{91}}}|{{{92}}}|{{{93}}}|{{{94}}}|{{{95}}}|{{{96}}}|{{{97}}}|{{{98}}}|{{{99}}}|{{{100}}}|{{{101}}}|{{{102}}}|{{{103}}}|{{{104}}}|{{{105}}}|{{{106}}}|{{{107}}}|{{{108}}}|{{{109}}}|{{{110}}}|{{{111}}}|{{{112}}}|{{{113}}}|{{{114}}}|{{{115}}}|{{{116}}}|{{{117}}}|{{{118}}}|{{{119}}}|{{{120}}}|{{{121}}}|{{{122}}}|{{{123}}}|{{{124}}}|{{{125}}}|{{{126}}}|{{{127}}}|{{{128}}}|{{{129}}}|||}}

[edit]

Documentation


See also the more versatile template:for ( talk edit history links ).

template:List of template calls ( talk edit history links )


Providing effective repetition without repetition of similar template calls in the wikitext.

This template carries out k≤n repetitions of a template with up to three parameters (but limited to the number of redirects like Template:List of template calls 16 plus one (see list).

It has 2n+3 parameters, currently with n=63.

  • par. 1: template to be repeatedly called
  • par. 2,3: the constant second and third parameter of the template to be repeated (each with the same value in all calls)
  • par. 4, 6,...,2k+2: k values of the first parameter
  • par. 5, 7,...,2k+1: numbers in the range 1 through n-1, in arbitrary order, but without duplications; for each there has to be a redirect like Template:List of template calls 16
  • par. 2k+3: end

The full 2n+3 parameters have to be specified, even if k<n; parameters for which the value does not matter are typically assigned the empty string, not to be confused with leaving them undefined. Additional parameters do not matter.

{{List of template calls|n en|||de|1|en|2|fr|3|nl|4|es|end||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||}} gives:

GermanEnglishFrenchDutchSpanish

Compare with:

{{for| |call=n|de|en|fr|nl|es}} giving: German English French Dutch Spanish

{{n en|de}}{{n en|en}}{{n en|fr}}{{n en|nl}}{{n en|es}} giving: GermanEnglishFrenchDutchSpanish

{{pde|af=Afrikaans|ar=Arabic|bg=Bulgarian|cs=Czech|da=Danish|de=German|el=Greek|en=English|es=Spanish|eo=Esperanto|fa=Persian|fi=Finnish|fr=French|fy=Frisian|he=Hebrew|it=Italian|ja=Japanese|ko=Korean|ku=Kurdish|li=Limburgs|nl=Dutch|nds=Low Saxon|no=Norwegian|pl=Polish|pt=Portuguese|ru=Russian|sv=Swedish|uk=Ukrainian|zh=Chinese}}{{pen|af=Afrikaans|ar=Arabic|bg=Bulgarian|cs=Czech|da=Danish|de=German|el=Greek|en=English|es=Spanish|eo=Esperanto|fa=Persian|fi=Finnish|fr=French|fy=Frisian|he=Hebrew|it=Italian|ja=Japanese|ko=Korean|ku=Kurdish|li=Limburgs|nl=Dutch|nds=Low Saxon|no=Norwegian|pl=Polish|pt=Portuguese|ru=Russian|sv=Swedish|uk=Ukrainian|zh=Chinese}}

gives

GermanEnglish

{{List of template calls|p1|||de|1|en|2|fr|3|nl|4|es|end||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||}} gives:

deenfrnles

[edit] Variations

Although this template does not have possibilities that template:for ( talk edit history links ) does not have also, variations can possibly exploit the recursive setup to do things template "for" cannot do.

[edit] History

This template was made before there were ParserFunctions and default parameters.

Personal tools