27,614
edits
(added "safesubst" function and added check for unknown parameters) |
No edit summary |
||
| Line 39: | Line 39: | ||
{{!}}- style="line-height: 1.4em;" | {{!}}- style="line-height: 1.4em;" | ||
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em .2em 0" {{!}} {{#if:{{{last_tour|}}}|{{{last_tour}}}|}}<br />{{#if:{{{last_year|}}}|({{{last_year}}})|}} | {{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em .2em 0" {{!}} {{#if:{{{last_tour|}}}|{{{last_tour}}}|}}<br />{{#if:{{{last_year|}}}|({{{last_year}}})|}} | ||
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em" {{!}} '''{{{name|{{PAGENAMEBASE}}}}}''' {{#if:{{{start_date|}}}|<br />({{#invoke:String|match|error_category=Live infoboxes with Module:String errors{{!}}T|{{{start_date}}}|%d%d%d+}}| }}{{#ifeq:{{#invoke:String|match|error_category=Live infoboxes with Module:String errors{{!}} | {{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em" {{!}} '''{{{name|{{PAGENAMEBASE}}}}}''' {{#if:{{{start_date|}}}|<br />({{#invoke:String|match|error_category=Live infoboxes with Module:String errors{{!}}T|{{{start_date}}}|%d%d%d+}}| }}{{#ifeq:{{#invoke:String|match|error_category=Live infoboxes with Module:String errors{{!}}T|{{{start_date}}}|%d%d%d+}}|{{#invoke:String|match|error_category=Live infoboxes with Module:String errors{{!}}T|{{{end_date}}}|%d%d%d+}}|)|-{{#invoke:String|match|error_category=Live infoboxes with Module:String errors{{!}}T|{{{end_date}}}|%d%d%d+}})}} | ||
{{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em .2em 0" {{!}} {{#if:{{{next_tour|}}}|{{{next_tour}}}|}}<br />{{#if:{{{next_year|}}}|({{{next_year}}})|}} | {{!}} style="width: 33%; text-align: center; vertical-align: top; padding: .2em .1em .2em 0" {{!}} {{#if:{{{next_tour|}}}|{{{next_tour}}}|}}<br />{{#if:{{{next_year|}}}|({{{next_year}}})|}} | ||
{{!)}} | {{!)}} | ||
}}}} | }}}} | ||
{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox tour with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox tour]] with unknown parameter "_VALUE_"|ignoreblank=y|name |photo |caption |alt |border |artist |performances |start_date |end_date |headliners |other_bands |supporting_acts |associated_album |legs |tour_mngr |chronology |last_tour |last_year |next_tour |next_year}}{{#if:{{#invoke:String|match|error_category=Live infoboxes with Module:String errors{{!}} | {{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox tour with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox tour]] with unknown parameter "_VALUE_"|ignoreblank=y|name |photo |caption |alt |border |artist |performances |start_date |end_date |headliners |other_bands |supporting_acts |associated_album |legs |tour_mngr |chronology |last_tour |last_year |next_tour |next_year}}{{#if:{{#invoke:String|match|error_category=Live infoboxes with Module:String errors{{!}}T|1={{{last_tour|}}}{{{last_year|}}}{{{next_tour|}}}{{{next_year|}}}{{{name|}}}{{{image|}}}{{{photo|}}}{{{border|}}}{{{alt|}}}{{{caption|}}}{{{artist|}}}{{{performances|}}}{{{start_date|}}}{{{end_date|}}}{{{headliners|}}}{{{other_bands|}}}{{{supporting_acts|}}}{{{associated_album|}}}{{{legs|}}}{{{tour_mngr|}}}x|2=</?t[drh][ >]|nomatch=}}|{{main other|[[Category:Live infoboxes with malformed table placement|T]]}}}}}}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
<!-- Add categories to the /doc subpage, not here. --> | <!-- Add categories to the /doc subpage, not here. --> | ||
</noinclude> | </noinclude> | ||