Template:For: Difference between revisions
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude>{{documentation}}</noinclude>{{{{{subst|}}}for/aux|subst={{{subst|}}}|c={{{call}}}|pv={{{pv|1 | <noinclude>{{documentation}}</noinclude>{{{{{subst|}}}for/aux|subst={{{subst|}}}|c={{{call}}}|pv={{{{{subst|}}}#ifeq:{{{pv|+}}}|{{{pv|-}}}|{{{pv}}}|1}}|prefix={{{{{subst|}}}#ifeq:{{{prefix|+}}}|{{{prefix|-}}}|{{{prefix}}}}}|postfix={{{{{subst|}}}#ifeq:{{{postfix|+}}}|{{{postfix|-}}}|{{{postfix}}}}}|s={{{{{subst|}}}#ifeq:{{{sep|+}}}|{{{sep|-}}}|{{{sep}}}}}|pc1={{{{{subst|}}}#ifeq:{{{pc1|+}}}|{{{pc1|-}}}|{{{pc1}}}|=}}|pc2={{{{{subst|}}}#ifeq:{{{pc2|+}}}|{{{pc2|-}}}|{{{pc2}}}|=}}|pc3={{{{{subst|}}}#ifeq:{{{pc3|+}}}|{{{pc3|-}}}|{{{pc3}}}|=}}|pc4={{{{{subst|}}}#ifeq:{{{pc4|+}}}|{{{pc4|-}}}|{{{pc4}}}|=}}|{{{{{subst|}}}#ifeq:{{{1|+}}}|{{{1|-}}}|1={{{1}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{2|+}}}|{{{2|-}}}|2={{{2}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{3|+}}}|{{{3|-}}}|3={{{3}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{4|+}}}|{{{4|-}}}|4={{{4}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{5|+}}}|{{{5|-}}}|5={{{5}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{6|+}}}|{{{6|-}}}|6={{{6}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{7|+}}}|{{{7|-}}}|7={{{7}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{8|+}}}|{{{8|-}}}|8={{{8}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{9|+}}}|{{{9|-}}}|9={{{9}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{10|+}}}|{{{10|-}}}|10={{{10}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{11|+}}}|{{{11|-}}}|11={{{11}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{12|+}}}|{{{12|-}}}|12={{{12}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{13|+}}}|{{{13|-}}}|13={{{13}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{14|+}}}|{{{14|-}}}|14={{{14}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{15|+}}}|{{{15|-}}}|15={{{15}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{16|+}}}|{{{16|-}}}|16={{{16}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{17|+}}}|{{{17|-}}}|17={{{17}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{18|+}}}|{{{18|-}}}|18={{{18}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{19|+}}}|{{{19|-}}}|19={{{19}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{20|+}}}|{{{20|-}}}|20={{{20}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{21|+}}}|{{{21|-}}}|21={{{21}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{22|+}}}|{{{22|-}}}|22={{{22}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{23|+}}}|{{{23|-}}}|23={{{23}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{24|+}}}|{{{24|-}}}|24={{{24}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{25|+}}}|{{{25|-}}}|25={{{25}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{26|+}}}|{{{26|-}}}|26={{{26}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{27|+}}}|{{{27|-}}}|27={{{27}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{28|+}}}|{{{28|-}}}|28={{{28}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{29|+}}}|{{{29|-}}}|29={{{29}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{30|+}}}|{{{30|-}}}|30={{{30}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{31|+}}}|{{{31|-}}}|31={{{31}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{32|+}}}|{{{32|-}}}|32={{{32}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{33|+}}}|{{{33|-}}}|33={{{33}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{34|+}}}|{{{34|-}}}|34={{{34}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{35|+}}}|{{{35|-}}}|35={{{35}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{36|+}}}|{{{36|-}}}|36={{{36}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{37|+}}}|{{{37|-}}}|37={{{37}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{38|+}}}|{{{38|-}}}|38={{{38}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{39|+}}}|{{{39|-}}}|39={{{39}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{40|+}}}|{{{40|-}}}|40={{{40}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{41|+}}}|{{{41|-}}}|41={{{41}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{42|+}}}|{{{42|-}}}|42={{{42}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{43|+}}}|{{{43|-}}}|43={{{43}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{44|+}}}|{{{44|-}}}|44={{{44}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{45|+}}}|{{{45|-}}}|45={{{45}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{46|+}}}|{{{46|-}}}|46={{{46}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{47|+}}}|{{{47|-}}}|47={{{47}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{48|+}}}|{{{48|-}}}|48={{{48}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{49|+}}}|{{{49|-}}}|49={{{49}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{50|+}}}|{{{50|-}}}|50={{{50}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{51|+}}}|{{{51|-}}}|51={{{51}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{52|+}}}|{{{52|-}}}|52={{{52}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{53|+}}}|{{{53|-}}}|53={{{53}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{54|+}}}|{{{54|-}}}|54={{{54}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{55|+}}}|{{{55|-}}}|55={{{55}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{56|+}}}|{{{56|-}}}|56={{{56}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{57|+}}}|{{{57|-}}}|57={{{57}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{58|+}}}|{{{58|-}}}|58={{{58}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{59|+}}}|{{{59|-}}}|59={{{59}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{60|+}}}|{{{60|-}}}|60={{{60}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{61|+}}}|{{{61|-}}}|61={{{61}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{62|+}}}|{{{62|-}}}|62={{{62}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{63|+}}}|{{{63|-}}}|63={{{63}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{64|+}}}|{{{64|-}}}|64={{{64}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{65|+}}}|{{{65|-}}}|65={{{65}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{66|+}}}|{{{66|-}}}|66={{{66}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{67|+}}}|{{{67|-}}}|67={{{67}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{68|+}}}|{{{68|-}}}|68={{{68}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{69|+}}}|{{{69|-}}}|69={{{69}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{70|+}}}|{{{70|-}}}|70={{{70}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{71|+}}}|{{{71|-}}}|71={{{71}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{72|+}}}|{{{72|-}}}|72={{{72}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{73|+}}}|{{{73|-}}}|73={{{73}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{74|+}}}|{{{74|-}}}|74={{{74}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{75|+}}}|{{{75|-}}}|75={{{75}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{76|+}}}|{{{76|-}}}|76={{{76}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{77|+}}}|{{{77|-}}}|77={{{77}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{78|+}}}|{{{78|-}}}|78={{{78}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{79|+}}}|{{{79|-}}}|79={{{79}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{80|+}}}|{{{80|-}}}|80={{{80}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{81|+}}}|{{{81|-}}}|81={{{81}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{82|+}}}|{{{82|-}}}|82={{{82}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{83|+}}}|{{{83|-}}}|83={{{83}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{84|+}}}|{{{84|-}}}|84={{{84}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{85|+}}}|{{{85|-}}}|85={{{85}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{86|+}}}|{{{86|-}}}|86={{{86}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{87|+}}}|{{{87|-}}}|87={{{87}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{88|+}}}|{{{88|-}}}|88={{{88}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{89|+}}}|{{{89|-}}}|89={{{89}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{90|+}}}|{{{90|-}}}|90={{{90}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{91|+}}}|{{{91|-}}}|91={{{91}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{92|+}}}|{{{92|-}}}|92={{{92}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{93|+}}}|{{{93|-}}}|93={{{93}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{94|+}}}|{{{94|-}}}|94={{{94}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{95|+}}}|{{{95|-}}}|95={{{95}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{96|+}}}|{{{96|-}}}|96={{{96}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{97|+}}}|{{{97|-}}}|97={{{97}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{98|+}}}|{{{98|-}}}|98={{{98}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{99|+}}}|{{{99|-}}}|99={{{99}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{100|+}}}|{{{100|-}}}|100={{{100}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{101|+}}}|{{{101|-}}}|101={{{101}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{102|+}}}|{{{102|-}}}|102={{{102}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{103|+}}}|{{{103|-}}}|103={{{103}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{104|+}}}|{{{104|-}}}|104={{{104}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{105|+}}}|{{{105|-}}}|105={{{105}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{106|+}}}|{{{106|-}}}|106={{{106}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{107|+}}}|{{{107|-}}}|107={{{107}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{108|+}}}|{{{108|-}}}|108={{{108}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{109|+}}}|{{{109|-}}}|109={{{109}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{110|+}}}|{{{110|-}}}|110={{{110}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{111|+}}}|{{{111|-}}}|111={{{111}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{112|+}}}|{{{112|-}}}|112={{{112}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{113|+}}}|{{{113|-}}}|113={{{113}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{114|+}}}|{{{114|-}}}|114={{{114}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{115|+}}}|{{{115|-}}}|115={{{115}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{116|+}}}|{{{116|-}}}|116={{{116}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{117|+}}}|{{{117|-}}}|117={{{117}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{118|+}}}|{{{118|-}}}|118={{{118}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{119|+}}}|{{{119|-}}}|119={{{119}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{120|+}}}|{{{120|-}}}|120={{{120}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{121|+}}}|{{{121|-}}}|121={{{121}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{122|+}}}|{{{122|-}}}|122={{{122}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{123|+}}}|{{{123|-}}}|123={{{123}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{124|+}}}|{{{124|-}}}|124={{{124}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{125|+}}}|{{{125|-}}}|125={{{125}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{126|+}}}|{{{126|-}}}|126={{{126}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{127|+}}}|{{{127|-}}}|127={{{127}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{128|+}}}|{{{128|-}}}|128={{{128}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{129|+}}}|{{{129|-}}}|129={{{129}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{130|+}}}|{{{130|-}}}|130={{{130}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{131|+}}}|{{{131|-}}}|131={{{131}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{132|+}}}|{{{132|-}}}|132={{{132}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{133|+}}}|{{{133|-}}}|133={{{133}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{134|+}}}|{{{134|-}}}|134={{{134}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{135|+}}}|{{{135|-}}}|135={{{135}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{136|+}}}|{{{136|-}}}|136={{{136}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{137|+}}}|{{{137|-}}}|137={{{137}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{138|+}}}|{{{138|-}}}|138={{{138}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{139|+}}}|{{{139|-}}}|139={{{139}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{140|+}}}|{{{140|-}}}|140={{{140}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{141|+}}}|{{{141|-}}}|141={{{141}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{142|+}}}|{{{142|-}}}|142={{{142}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{143|+}}}|{{{143|-}}}|143={{{143}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{144|+}}}|{{{144|-}}}|144={{{144}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{145|+}}}|{{{145|-}}}|145={{{145}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{146|+}}}|{{{146|-}}}|146={{{146}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{147|+}}}|{{{147|-}}}|147={{{147}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{148|+}}}|{{{148|-}}}|148={{{148}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{149|+}}}|{{{149|-}}}|149={{{149}}}|@=@}}|{{{{{subst|}}}#ifeq:{{{150|+}}}|{{{150|-}}}|150={{{150}}}|@=@}}}} | ||
Revision as of 11:49, 11 November 2007
The template calls a specified template several times, where one parameter takes each of a list of values; in addition to the variable parameter, for up to 4 parameters a fixed value can be specified.
Usage
{{for
|1 =
|call =
|pc1n =
|pc1v =
|pc2n =
|pc2v =
|pc3n =
|pc3v =
|pc4n =
|pc4v =
|pv =
|prefix =
|postfix =
|2 =
}}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | separator | What to separate entries with | empty | suggested |
call | template | The template to call in each iteration | void | required |
pc1n | constant parameter 1 | The first constant parameter’s name | empty | optional |
pc1v | constant value 1 | The first constant parameter’s value | empty | optional |
pc2n | constant parameter 2 | The second constant parameter’s name | empty | optional |
pc2v | constant value 2 | The second constant parameter’s value | empty | optional |
pc3n | constant parameter 3 | The third constant parameter’s name | empty | optional |
pc3v | constant value 3 | The third constant parameter’s value | empty | optional |
pc4n | constant parameter 4 | The fourth constant parameter’s name | empty | optional |
pc4v | constant value 4 | The fourth constant parameter’s value | empty | optional |
pv | variable parameter | The variable parameter’s name | 1 | optional |
prefix | variable prefix | Constant prefix of the variable parameter’s value | empty | optional |
postfix | variable postfix | Constant postfix of the variable parameter’s value | empty | optional |
23 4 … | variable parameters | The variable parameters’ values. Each value goes in its own parameter, starting with parameter 2. | empty | required |
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.
Example
| Code | Result |
|---|---|
List of all numbers from 100 to 199, separated by commas:1{{for|, 1|call=x1
|00|01|02|03|04|05|06|07|08|09
|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
}}
|1{{for|, 1|call=x1 |00|01|02|03|04|05|06|07|08|09 |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 }} | |
An example used in {{Facts/Major cities}}:{{for||pc1n=decade|pc1v={{{2|{{{decade|}}}}}}|call=Facts/placeParts
|Amsterdam|Bangkok|Barcelona|Beijing|Berlin|Brussels|Buenos Aires|Cairo|Canton|Cape Town|Chicago|Delhi|Dubai|Frankfurt am Main|Geneva|Hong Kong|Istanbul|Jerusalem|Kolkata|Lagos, Nigeria|London|Los Angeles|Madrid|Mexico City|Moscow|Mumbai|Nairobi|New York City|Osaka|Paris|Rio de Janeiro (city)|Rome|São Paulo (city)|San Francisco|Seoul|Shanghai|Singapore|Stockholm|Sydney|Tokyo|Toronto|Washington, D.C.|Wuhan}}
|{{for||pc1n=decade|pc1v={{{2|{{{decade|}}}}}}|call=Facts/placeParts |Amsterdam|Bangkok|Barcelona|Beijing|Berlin|Brussels|Buenos Aires|Cairo|Canton|Cape Town|Chicago|Delhi|Dubai|Frankfurt am Main|Geneva|Hong Kong|Istanbul|Jerusalem|Kolkata|Lagos, Nigeria|London|Los Angeles|Madrid|Mexico City|Moscow|Mumbai|Nairobi|New York City|Osaka|Paris|Rio de Janeiro (city)|Rome|São Paulo (city)|San Francisco|Seoul|Shanghai|Singapore|Stockholm|Sydney|Tokyo|Toronto|Washington, D.C.|Wuhan}} |
Note that the last part of the separator is used as a prefix; the first prefix needs to be put separately.