Content deleted Content added
Hopefully account for title parsing errors [Factotum] |
hopefully make it more obvious what to put where [Factotum] |
||
Line 20:
"placeholderRationale": '[[WP:DEFINING|Non-defining]] category.',
"pageDemoText": "{{subst:Cfd|Category:Bishops}}",
"titleDemoText": "Category:FirstNominatedCategory|Category:FirstNominatedCategoryTarget1|Category:FirstNominatedCategoryTarget2\nCategory:Foo|Category:Bar\nCategory:Earth",
"discussionLinkRegex": /^Wikipedia:Categories for discussion\/Log\/\d\d\d\d \w+ \d\d?#(.+)$/,
"nominationReplacement": [/==== ?NEW NOMINATIONS ?====\s*(?:<!-- ?Please add the newest nominations below this line ?-->)?/, '$&\n\n${nominationText}'],
Line 72 ⟶ 73:
"placeholderRationale": 'No mention of "Knightfall" in the target article.',
"pageDemoText": "",
"titleDemoText": "Title1\nTitle2\nTitle2",
"discussionLinkRegex": /^Wikipedia:Redirects for discussion\/Log\/\d\d\d\d \w+ \d\d?#(.+)$/,
"nominationReplacement": [/<!-- ?Add new entries directly below this line\. ?-->/, '$&\n${nominationText}\n'],
Line 1,115 ⟶ 1,117:
var titleListObj = createTitleAndInputField(`List of titles (one per line${XFD === 'CFD' ? ', <code>Category:</code> prefix is optional' : ''})`,
var titleList = titleListObj.container;
var titleListInputField = titleListObj.inputField;
Line 1,199 ⟶ 1,201:
} else {
var categoryTemplateDropdownObj = makeCategoryTemplateDropdown('Category template: (used on the discussion page)');
categoryTemplateDropdownContainer = categoryTemplateDropdownObj.container;
categoryTemplateDropdown = categoryTemplateDropdownObj.dropdown;
|