MediaWiki:EditTemplates.js: Difference between revisions

Content deleted Content added
No edit summary
allow editing non-default form templates
 
(One intermediate revision by the same user not shown)
Line 16:
<li>
Form:
<a href="/wiki/Template:Form-template/Form-template-default@formTemplate?action=edit">template</a> ·
<a href="/wiki/Template:2012FR/@formCS/@country?action=edit">content</a>
</li>
Line 22:
Monthly pitch
<a href="/wiki/Template:MonthlyPitch/Default">template</a> ·
<a href="/wiki/Template:MonthlyPitchTextsMonthlyPitchText">texts</a>
</li>
<li><a href="/wiki/Template:Infobox/@infobox/@language?action=edit">Infobox</a></li>
Line 79:
appeal = appeal.replace( 'Appeal-', '' );
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';
 
Line 85 ⟶ 86:
toolListHTML = toolListHTML.replace( /@appeal/g, appeal );
toolListHTML = toolListHTML.replace( /@formCS/g, formCS );
toolListHTML = toolListHTML.replace( /@formTemplate/g, formTemplate );
toolListHTML = toolListHTML.replace( /@infobox/g, infobox );