MediaWiki:EditTemplates.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
allow editing non-default form templates |
||
Line 16: | Line 16: | ||
<li> |
<li> |
||
Form: |
Form: |
||
<a href="/wiki/Template:Form-template/ |
<a href="/wiki/Template:Form-template/@formTemplate?action=edit">template</a> · |
||
<a href="/wiki/Template:2012FR/@formCS/@country?action=edit">content</a> |
<a href="/wiki/Template:2012FR/@formCS/@country?action=edit">content</a> |
||
</li> |
</li> |
||
Line 79: | Line 79: | ||
appeal = appeal.replace( 'Appeal-', '' ); |
appeal = appeal.replace( 'Appeal-', '' ); |
||
var formCS = mw.util.getParamValue( 'form-countryspecific' ) || 'Form-countryspecific-control'; |
var formCS = mw.util.getParamValue( 'form-countryspecific' ) || 'Form-countryspecific-control'; |
||
var formTemplate = mw.util.getParamValue( 'form-template' ) || 'Form-template-default'; |
|||
var infobox = mw.util.getParamValue( 'infobox' ) || 'Default'; |
var infobox = mw.util.getParamValue( 'infobox' ) || 'Default'; |
||
Line 85: | Line 86: | ||
toolListHTML = toolListHTML.replace( /@appeal/g, appeal ); |
toolListHTML = toolListHTML.replace( /@appeal/g, appeal ); |
||
toolListHTML = toolListHTML.replace( /@formCS/g, formCS ); |
toolListHTML = toolListHTML.replace( /@formCS/g, formCS ); |
||
toolListHTML = toolListHTML.replace( /@formTemplate/g, formTemplate ); |
|||
toolListHTML = toolListHTML.replace( /@infobox/g, infobox ); |
toolListHTML = toolListHTML.replace( /@infobox/g, infobox ); |
||