Template:Custom edit: Difference between revisions
Template page
More actions
safer URL encoding and normalization of pagenames; safer checks of parameter "|text=*", already preferred to the alias "|2=*"; replace "edit" term by {{lcfirst:{{int:Edit}}}} (like in Template:Edit-int); more readable code overall |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 8: | Line 8: | ||
}}{{#if: {{{editintro|}}} | }}{{#if: {{{editintro|}}} | ||
| &editintro={{URLENCODE:{{FULLPAGENAME:{{{editintro|}}}}}|QUERY}} | | &editintro={{URLENCODE:{{FULLPAGENAME:{{{editintro|}}}}}|QUERY}} | ||
}}{{#if: {{{preloadtitle|}}} | |||
| &preloadtitle={{URLENCODE:{{{preloadtitle|}}}|QUERY}} | |||
}}{{#if: {{{preload|}}} | }}{{#if: {{{preload|}}} | ||
| &preload={{URLENCODE:{{FULLPAGENAME:{{{preload|}}}}}|QUERY}} | | &preload={{URLENCODE:{{FULLPAGENAME:{{{preload|}}}}}|QUERY}} | ||
}} | }} | ||
}} {{#if: {{{2|}}} | }} {{#if: {{{2|}}} | ||
| Line 19: | Line 19: | ||
| {{lcfirst:{{int:Edit}}}} | | {{lcfirst:{{int:Edit}}}} | ||
}} | }} | ||
}}]</span><noinclude>{{Documentation}}</noinclude> | }}]</span><noinclude> | ||
{{Documentation}} | |||
</noinclude> | |||