- Portals
- The Current Year
- ED in the News
- Admins
- Help ED Rebuild
- Archive
- ED Bookmarklet
- Donate Bitcoin
Contact an admin on Discord or EDF if you want an account. Also fuck bots.
Encyclopedia Dramatica:XOTN/Queue: Difference between revisions
Created page with "{{Notice| This page is for submitting and managing XOTN (X of the Now) content. Only Editors and Sysops can approve submissions. '''For Editors:''' To approve a submission, copy the content to the appropriate current page and move the submission to the archive section. }} == Instructions == === For Users === To suggest content for featuring on the main page: # Add your suggestion to the appropriate section below..." |
No edit summary |
||
| Line 190: | Line 190: | ||
* August 14-15: AOTN: [[Vladislav Roslyakov]], QOTN: School shooting quote, VOTN: News report, POTN: Portrait | * August 14-15: AOTN: [[Vladislav Roslyakov]], QOTN: School shooting quote, VOTN: News report, POTN: Portrait | ||
* August 12-13: AOTN: [[Josef Mengele]], QOTN: Nazi experimentation, VOTN: Documentary, POTN: Historical photo | * August 12-13: AOTN: [[Josef Mengele]], QOTN: Nazi experimentation, VOTN: Documentary, POTN: Historical photo | ||
== Archive Management == | |||
=== When to Archive Content === | |||
Archive current XOTN content when: | |||
* Setting new featured content (before updating current pages) | |||
* Content has been featured for 2+ days | |||
* Monthly maintenance and cleanup | |||
=== Archive Workflow for Editors === | |||
'''Step 1: Create Individual Archive Pages''' | |||
Before updating current content, create date-specific archive pages: | |||
'''For AOTN:''' | |||
<pre> | |||
<!-- Copy content from current AOTN page --> | |||
{{XOTN/AOTN | |||
|title=Article Title | |||
|image=Image.jpg | |||
|summary=Article summary | |||
|link=Article Title | |||
|date=YYYY-MM-DD | |||
|expires=YYYY-MM-DD | |||
|editor=[[User:EditorName]] | |||
|featured=true | |||
}} | |||
{{timeline|[[Encyclopedia Dramatica:Article of the Now/PREVIOUS_DATE|Previous]]|[[Encyclopedia Dramatica:Article of the Now/NEXT_DATE|Next]]}} | |||
[[Category:Article of the Now]] | |||
</pre> | |||
'''For QOTN:''' | |||
<pre> | |||
<!-- Copy content from current QOTN page --> | |||
{{XOTN/QOTN | |||
|quote=Quote text | |||
|author=Author name | |||
|source=Source | |||
|context=Context | |||
|date=YYYY-MM-DD | |||
|expires=YYYY-MM-DD | |||
|editor=[[User:EditorName]] | |||
|featured=true | |||
}} | |||
{{timeline|[[Encyclopedia Dramatica:Quote of the Now/PREVIOUS_DATE|Previous]]|[[Encyclopedia Dramatica:Quote of the Now/NEXT_DATE|Next]]}} | |||
[[Category:Quote of the Now]] | |||
</pre> | |||
'''For VOTN:''' | |||
<pre> | |||
<!-- Copy content from current VOTN page --> | |||
{{XOTN/VOTN | |||
|title=Video Title | |||
|video={{#ev:youtube|VIDEO_ID|300}} | |||
|caption=Caption | |||
|description=Description | |||
|date=YYYY-MM-DD | |||
|expires=YYYY-MM-DD | |||
|editor=[[User:EditorName]] | |||
|featured=true | |||
}} | |||
{{timeline|[[Encyclopedia Dramatica:Video of the Now/PREVIOUS_DATE|Previous]]|[[Encyclopedia Dramatica:Video of the Now/NEXT_DATE|Next]]}} | |||
[[Category:Video of the Now]] | |||
</pre> | |||
'''For POTN:''' | |||
<pre> | |||
<!-- Copy content from current POTN page --> | |||
{{XOTN/POTN | |||
|image=Image.jpg | |||
|caption=Caption | |||
|description=Description | |||
|width=250 | |||
|date=YYYY-MM-DD | |||
|expires=YYYY-MM-DD | |||
|editor=[[User:EditorName]] | |||
|featured=true | |||
}} | |||
{{timeline|[[Encyclopedia Dramatica:Picture of the Now/PREVIOUS_DATE|Previous]]|[[Encyclopedia Dramatica:Picture of the Now/NEXT_DATE|Next]]}} | |||
[[Category:Picture of the Now]] | |||
</pre> | |||
'''Step 2: Update Archive Index Pages''' | |||
Add entries to the monthly lists in: | |||
* [[Encyclopedia Dramatica:Article of the Now/2025]] | |||
* [[Encyclopedia Dramatica:Quote of the Now/2025]] | |||
* [[Encyclopedia Dramatica:Video of the Now/2025]] | |||
* [[Encyclopedia Dramatica:Picture of the Now/2025]] | |||
Format: | |||
<pre> | |||
*[[Encyclopedia Dramatica:Article of the Now/August 18, 2025|August 18, 2025]] - [[Article Title]] | |||
</pre> | |||
'''Step 3: Update "Recent Archive" Sections''' | |||
Edit the "Recent Archive" sections on archive pages to show latest archived content: | |||
<pre> | |||
'''Recent articles:''' [[New Article]] (August 18) • [[Previous Article]] (August 16) • [[Older Article]] (August 14) | |||
</pre> | |||
'''Step 4: Update "What Have I Missed?" Boxes''' | |||
Update the AOTN current page with new archived content: | |||
<pre> | |||
<div style="text-align:center; font-size:9pt; margin-top:10px; padding:5px; background:#f0f0f0; border-radius:3px;"> | |||
'''What have I missed?'''<br/> | |||
[[Recently Archived Article]] was 2 days ago • [[Previously Archived]] was 4 days ago • [[Older Archived]] was 6 days ago | |||
</div> | |||
</pre> | |||
=== Archive Quick Reference === | |||
{| class="wikitable" | |||
! Task !! Page to Edit !! What to Add | |||
|- | |||
| Create AOTN archive || Encyclopedia Dramatica:Article of the Now/DATE || Full AOTN content + timeline | |||
|- | |||
| Update AOTN index || Encyclopedia Dramatica:Article of the Now/2025 || Add monthly list entry | |||
|- | |||
| Update "What I missed" || Encyclopedia Dramatica:XOTN/Current/AOTN || Update recent archive links | |||
|- | |||
| Create QOTN archive || Encyclopedia Dramatica:Quote of the Now/DATE || Full QOTN content + timeline | |||
|- | |||
| Update QOTN index || Encyclopedia Dramatica:Quote of the Now/2025 || Add monthly list entry | |||
|- | |||
| Create VOTN archive || Encyclopedia Dramatica:Video of the Now/DATE || Full VOTN content + timeline | |||
|- | |||
| Update VOTN index || Encyclopedia Dramatica:Video of the Now/2025 || Add monthly list entry | |||
|- | |||
| Create POTN archive || Encyclopedia Dramatica:Picture of the Now/DATE || Full POTN content + timeline | |||
|- | |||
| Update POTN index || Encyclopedia Dramatica:Picture of the Now/2025 || Add monthly list entry | |||
|} | |||
== JavaScript Archive Generator == | |||
Use this JavaScript tool to generate monthly archive page templates. This creates placeholder entries for entire months. | |||
=== How to Use === | |||
1. **Copy the code below** into a text file | |||
2. **Save with .html extension** (e.g., "xotn_generator.html") | |||
3. **Open in web browser** | |||
4. **Copy the generated wiki markup** to your archive pages | |||
=== Updated JavaScript Code === | |||
<pre> | |||
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' | |||
'http://www.w3.org/TR/html4/loose.dtd'> | |||
<html> | |||
<head> | |||
<meta http-equiv='Pragma' content='no-cache'> | |||
<meta http-equiv='expires' content='0'> | |||
<meta content='text/html; charset=utf-8' http-equiv='content-type'> | |||
<title>XOTN Archive Generator</title> | |||
<style> | |||
body { font-family: monospace; margin: 20px; } | |||
h2 { color: #666; border-bottom: 1px solid #ccc; } | |||
.output { background: #f5f5f5; padding: 10px; margin: 10px 0; border: 1px solid #ddd; } | |||
.controls { background: #e8f4f8; padding: 15px; margin: 10px 0; border: 1px solid #b0d4da; } | |||
button { padding: 8px 15px; margin: 5px; font-size: 14px; } | |||
select, input { padding: 5px; margin: 5px; font-size: 14px; } | |||
</style> | |||
</head> | |||
<body> | |||
<h1>Encyclopedia Dramatica XOTN Archive Generator</h1> | |||
<div class="controls"> | |||
<h3>Generate Monthly Archive Templates</h3> | |||
<label>Month Offset: | |||
<select id="monthOffset"> | |||
<option value="0">Current Month</option> | |||
<option value="1" selected>Next Month</option> | |||
<option value="2">Two Months Ahead</option> | |||
<option value="-1">Previous Month</option> | |||
</select> | |||
</label> | |||
<br/> | |||
<label>Year Override: <input type="number" id="yearOverride" placeholder="Leave blank for auto" min="2011" max="2030" /></label> | |||
<br/> | |||
<button onclick="generateArchives()">Generate Archive Templates</button> | |||
<button onclick="clearOutput()">Clear Output</button> | |||
</div> | |||
<div id="output"></div> | |||
<script type='text/javascript'> | |||
var months = ["", "January","February","March","April","May","June","July","August","September","October","November","December"]; | |||
function generateArchives() { | |||
var date = new Date(); | |||
var year = parseInt(document.getElementById('yearOverride').value) || date.getFullYear(); | |||
var monthOffset = parseInt(document.getElementById('monthOffset').value); | |||
var month = date.getMonth() + 1 + monthOffset; | |||
// Handle year wraparound | |||
while (month > 12) { | |||
month -= 12; | |||
year += 1; | |||
} | |||
while (month < 1) { | |||
month += 12; | |||
year -= 1; | |||
} | |||
var days = new Date(year, month, 0).getDate(); | |||
var monthName = months[month]; | |||
var votn = ""; | |||
var potn = ""; | |||
var aotn = ""; | |||
var qotn = ""; | |||
// Generate in descending order (latest first) | |||
for (day = days; day > 0; day--) { | |||
votn += "*[[Encyclopedia Dramatica:Video of the Now/" + monthName + " " + day + ", " + year + "|" + monthName + " " + day + ", " + year + " - ]]\\n"; | |||
potn += "*[[Encyclopedia Dramatica:Picture of the Now/" + monthName + " " + day + ", " + year + "|" + monthName + " " + day + ", " + year + " - ]]\\n"; | |||
aotn += "*[[Encyclopedia Dramatica:Article of the Now/" + monthName + " " + day + ", " + year + "|" + monthName + " " + day + ", " + year + "]] - \\n"; | |||
qotn += "*[[Encyclopedia Dramatica:Quote of the Now/" + monthName + " " + day + ", " + year + "|" + monthName + " " + day + ", " + year + " - ]]\\n"; | |||
} | |||
var output = document.getElementById('output'); | |||
output.innerHTML = ""; | |||
output.innerHTML += "<div class='output'><h2>Article of the Now - " + monthName + " " + year + "</h2><pre>" + | |||
"== " + monthName + " " + year + " ==\\n\\n" + aotn + "</pre></div>"; | |||
output.innerHTML += "<div class='output'><h2>Quote of the Now - " + monthName + " " + year + "</h2><pre>" + | |||
"== " + monthName + " " + year + " ==\\n\\n" + qotn + "</pre></div>"; | |||
output.innerHTML += "<div class='output'><h2>Video of the Now - " + monthName + " " + year + "</h2><pre>" + | |||
"== " + monthName + " " + year + " ==\\n\\n" + votn + "</pre></div>"; | |||
output.innerHTML += "<div class='output'><h2>Picture of the Now - " + monthName + " " + year + "</h2><pre>" + | |||
"== " + monthName + " " + year + " ==\\n\\n" + potn + "</pre></div>"; | |||
output.innerHTML += "<div class='output'><h2>Summary</h2>" + | |||
"<p><strong>Generated:</strong> " + monthName + " " + year + " (" + days + " days)</p>" + | |||
"<p><strong>Usage:</strong> Copy the relevant sections above to your archive pages</p>" + | |||
"<p><strong>Note:</strong> Fill in article/quote/video/picture titles as you set them</p></div>"; | |||
} | |||
function clearOutput() { | |||
document.getElementById('output').innerHTML = ""; | |||
} | |||
// Auto-generate on page load | |||
window.onload = function() { | |||
generateArchives(); | |||
}; | |||
</script> | |||
</body> | |||
</html> | |||
</pre> | |||
=== JavaScript Improvements Made === | |||
* **Better user interface** with controls and styling | |||
* **Flexible month/year selection** instead of hardcoded values | |||
* **Year wraparound handling** for cross-year generation | |||
* **Cleaner output formatting** with separate sections | |||
* **Auto-generation on page load** for immediate use | |||
* **Clear instructions** and usage notes | |||
* **Modern HTML structure** with proper styling | |||
=== Usage Notes === | |||
* **Default:** Generates next month's templates | |||
* **Current month:** Set offset to 0 if adding to current month | |||
* **Future months:** Use positive offsets (1, 2, etc.) | |||
* **Past months:** Use negative offset (-1) for previous month | |||
* **Custom year:** Override year field for generating archives for different years | |||
== Discussion == | == Discussion == | ||
Revision as of 06:20, 17 August 2025
|
This page is for submitting and managing XOTN (X of the Now) content. Only Editors and Sysops can approve submissions. For Editors: To approve a submission, copy the content to the appropriate current page and move the submission to the archive section. |
Instructions
For Users
To suggest content for featuring on the main page:
- Add your suggestion to the appropriate section below
- Use the provided templates
- Include all required information
- Sign your submission with ~~~~
For Editors
To approve and activate a submission:
- Review the submission for quality and appropriateness
- Copy the template code to the appropriate current page:
- Encyclopedia Dramatica:XOTN/Current/AOTN for Article suggestions
- Encyclopedia Dramatica:XOTN/Current/QOTN for Quote suggestions
- Encyclopedia Dramatica:XOTN/Current/VOTN for Video suggestions
- Encyclopedia Dramatica:XOTN/Current/POTN for Picture suggestions
- Update the dates and add your username as editor
- Move the submission to the "Recently Approved" section
- Set featured=true when copying to current page
Article of the Now Submissions
Pending Approval
Sample Submission:
{{XOTN/AOTN
|title=Your Article Title
|image=Filename.jpg
|summary=Brief description of the article (keep under 150 words)
|link=Your Article Title
|date=YYYY-MM-DD
|expires=YYYY-MM-DD
|editor=[[User:YourUsername]]
|featured=false
}}
Submitted by: User:Example on August 17, 2025
Recently Approved
Quote of the Now Submissions
Pending Approval
Sample Submission:
{{XOTN/QOTN
|quote=Your quote text here
|author=Who said it
|source=Where it's from
|context=Additional context if needed
|date=YYYY-MM-DD
|expires=YYYY-MM-DD
|editor=[[User:YourUsername]]
|featured=false
}}
Submitted by: User:Example on August 17, 2025
Recently Approved
Video of the Now Submissions
Pending Approval
Sample Submission:
{{XOTN/VOTN
|title=Video Title
|video={{#ev:youtube|VIDEO_ID|300}}
|caption=Short caption
|description=Brief description
|date=YYYY-MM-DD
|expires=YYYY-MM-DD
|editor=[[User:YourUsername]]
|featured=false
}}
Submitted by: User:Example on August 17, 2025
Video Guidelines:
- Use for YouTube videos
- Use EmbedVideo received the bad id "VIDEO_ID" for the service "vimeo".for Vimeo videos
- Keep videos appropriate and relevant to ED culture
- Avoid copyrighted content
Recently Approved
Picture of the Now Submissions
Pending Approval
Sample Submission:
{{XOTN/POTN
|image=Filename.jpg
|caption=Picture caption
|description=Brief description
|width=250
|date=YYYY-MM-DD
|expires=YYYY-MM-DD
|editor=[[User:YourUsername]]
|featured=false
}}
Submitted by: User:Example on August 17, 2025
Image Guidelines:
- Upload images to the wiki first
- Use appropriate file names
- Ensure images are ED-relevant
- Maximum recommended width: 300px
Recently Approved
Scheduling
Upcoming Schedule
| Date | AOTN | QOTN | VOTN | POTN | Editor |
|---|---|---|---|---|---|
| August 18, 2025 | Pedophilia | "In lulz we trust" | Killer AI | Dramatic Hamster | User:AdminExample |
| August 19, 2025 | Available | Available | Available | Available | -- |
| August 20, 2025 | Available | Available | Available | Available | -- |
Content Guidelines
General Rules:
- Content must be relevant to Encyclopedia Dramatica's mission
- No personal attacks or doxxing
- Follow wiki policies and guidelines
- Maintain ED's satirical and humorous tone
Article of the Now:
- Article must exist and be substantial (500+ words recommended)
- Summary should be 100-150 words
- Include compelling reasons why it should be featured
Quote of the Now:
- Must be properly attributed
- Should be relevant to internet culture, ED, or current events
- Include context when necessary
Video of the Now:
- Must be accessible and working
- Should be entertaining or educational
- Keep duration reasonable (under 10 minutes preferred)
Picture of the Now:
- Must be uploaded to the wiki
- Should be high quality and clear
- Include proper attribution if needed
Archive
Recently Featured
August 2025:
- August 16-17: AOTN: Party Van, QOTN: "Party Van meme", VOTN: FBI Surveillance, POTN: Van image
- August 14-15: AOTN: Vladislav Roslyakov, QOTN: School shooting quote, VOTN: News report, POTN: Portrait
- August 12-13: AOTN: Josef Mengele, QOTN: Nazi experimentation, VOTN: Documentary, POTN: Historical photo
Archive Management
When to Archive Content
Archive current XOTN content when:
- Setting new featured content (before updating current pages)
- Content has been featured for 2+ days
- Monthly maintenance and cleanup
Archive Workflow for Editors
Step 1: Create Individual Archive Pages Before updating current content, create date-specific archive pages:
For AOTN:
<!-- Copy content from current AOTN page -->
{{XOTN/AOTN
|title=Article Title
|image=Image.jpg
|summary=Article summary
|link=Article Title
|date=YYYY-MM-DD
|expires=YYYY-MM-DD
|editor=[[User:EditorName]]
|featured=true
}}
{{timeline|[[Encyclopedia Dramatica:Article of the Now/PREVIOUS_DATE|Previous]]|[[Encyclopedia Dramatica:Article of the Now/NEXT_DATE|Next]]}}
[[Category:Article of the Now]]
For QOTN:
<!-- Copy content from current QOTN page -->
{{XOTN/QOTN
|quote=Quote text
|author=Author name
|source=Source
|context=Context
|date=YYYY-MM-DD
|expires=YYYY-MM-DD
|editor=[[User:EditorName]]
|featured=true
}}
{{timeline|[[Encyclopedia Dramatica:Quote of the Now/PREVIOUS_DATE|Previous]]|[[Encyclopedia Dramatica:Quote of the Now/NEXT_DATE|Next]]}}
[[Category:Quote of the Now]]
For VOTN:
<!-- Copy content from current VOTN page -->
{{XOTN/VOTN
|title=Video Title
|video={{#ev:youtube|VIDEO_ID|300}}
|caption=Caption
|description=Description
|date=YYYY-MM-DD
|expires=YYYY-MM-DD
|editor=[[User:EditorName]]
|featured=true
}}
{{timeline|[[Encyclopedia Dramatica:Video of the Now/PREVIOUS_DATE|Previous]]|[[Encyclopedia Dramatica:Video of the Now/NEXT_DATE|Next]]}}
[[Category:Video of the Now]]
For POTN:
<!-- Copy content from current POTN page -->
{{XOTN/POTN
|image=Image.jpg
|caption=Caption
|description=Description
|width=250
|date=YYYY-MM-DD
|expires=YYYY-MM-DD
|editor=[[User:EditorName]]
|featured=true
}}
{{timeline|[[Encyclopedia Dramatica:Picture of the Now/PREVIOUS_DATE|Previous]]|[[Encyclopedia Dramatica:Picture of the Now/NEXT_DATE|Next]]}}
[[Category:Picture of the Now]]
Step 2: Update Archive Index Pages Add entries to the monthly lists in:
- Encyclopedia Dramatica:Article of the Now/2025
- Encyclopedia Dramatica:Quote of the Now/2025
- Encyclopedia Dramatica:Video of the Now/2025
- Encyclopedia Dramatica:Picture of the Now/2025
Format:
*[[Encyclopedia Dramatica:Article of the Now/August 18, 2025|August 18, 2025]] - [[Article Title]]
Step 3: Update "Recent Archive" Sections Edit the "Recent Archive" sections on archive pages to show latest archived content:
'''Recent articles:''' [[New Article]] (August 18) • [[Previous Article]] (August 16) • [[Older Article]] (August 14)
Step 4: Update "What Have I Missed?" Boxes Update the AOTN current page with new archived content:
<div style="text-align:center; font-size:9pt; margin-top:10px; padding:5px; background:#f0f0f0; border-radius:3px;"> '''What have I missed?'''<br/> [[Recently Archived Article]] was 2 days ago • [[Previously Archived]] was 4 days ago • [[Older Archived]] was 6 days ago </div>
Archive Quick Reference
| Task | Page to Edit | What to Add |
|---|---|---|
| Create AOTN archive | Encyclopedia Dramatica:Article of the Now/DATE | Full AOTN content + timeline |
| Update AOTN index | Encyclopedia Dramatica:Article of the Now/2025 | Add monthly list entry |
| Update "What I missed" | Encyclopedia Dramatica:XOTN/Current/AOTN | Update recent archive links |
| Create QOTN archive | Encyclopedia Dramatica:Quote of the Now/DATE | Full QOTN content + timeline |
| Update QOTN index | Encyclopedia Dramatica:Quote of the Now/2025 | Add monthly list entry |
| Create VOTN archive | Encyclopedia Dramatica:Video of the Now/DATE | Full VOTN content + timeline |
| Update VOTN index | Encyclopedia Dramatica:Video of the Now/2025 | Add monthly list entry |
| Create POTN archive | Encyclopedia Dramatica:Picture of the Now/DATE | Full POTN content + timeline |
| Update POTN index | Encyclopedia Dramatica:Picture of the Now/2025 | Add monthly list entry |
JavaScript Archive Generator
Use this JavaScript tool to generate monthly archive page templates. This creates placeholder entries for entire months.
How to Use
1. **Copy the code below** into a text file 2. **Save with .html extension** (e.g., "xotn_generator.html") 3. **Open in web browser** 4. **Copy the generated wiki markup** to your archive pages
Updated JavaScript Code
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'
'http://www.w3.org/TR/html4/loose.dtd'>
<html>
<head>
<meta http-equiv='Pragma' content='no-cache'>
<meta http-equiv='expires' content='0'>
<meta content='text/html; charset=utf-8' http-equiv='content-type'>
<title>XOTN Archive Generator</title>
<style>
body { font-family: monospace; margin: 20px; }
h2 { color: #666; border-bottom: 1px solid #ccc; }
.output { background: #f5f5f5; padding: 10px; margin: 10px 0; border: 1px solid #ddd; }
.controls { background: #e8f4f8; padding: 15px; margin: 10px 0; border: 1px solid #b0d4da; }
button { padding: 8px 15px; margin: 5px; font-size: 14px; }
select, input { padding: 5px; margin: 5px; font-size: 14px; }
</style>
</head>
<body>
<h1>Encyclopedia Dramatica XOTN Archive Generator</h1>
<div class="controls">
<h3>Generate Monthly Archive Templates</h3>
<label>Month Offset:
<select id="monthOffset">
<option value="0">Current Month</option>
<option value="1" selected>Next Month</option>
<option value="2">Two Months Ahead</option>
<option value="-1">Previous Month</option>
</select>
</label>
<br/>
<label>Year Override: <input type="number" id="yearOverride" placeholder="Leave blank for auto" min="2011" max="2030" /></label>
<br/>
<button onclick="generateArchives()">Generate Archive Templates</button>
<button onclick="clearOutput()">Clear Output</button>
</div>
<div id="output"></div>
<script type='text/javascript'>
var months = ["", "January","February","March","April","May","June","July","August","September","October","November","December"];
function generateArchives() {
var date = new Date();
var year = parseInt(document.getElementById('yearOverride').value) || date.getFullYear();
var monthOffset = parseInt(document.getElementById('monthOffset').value);
var month = date.getMonth() + 1 + monthOffset;
// Handle year wraparound
while (month > 12) {
month -= 12;
year += 1;
}
while (month < 1) {
month += 12;
year -= 1;
}
var days = new Date(year, month, 0).getDate();
var monthName = months[month];
var votn = "";
var potn = "";
var aotn = "";
var qotn = "";
// Generate in descending order (latest first)
for (day = days; day > 0; day--) {
votn += "*[[Encyclopedia Dramatica:Video of the Now/" + monthName + " " + day + ", " + year + "|" + monthName + " " + day + ", " + year + " - ]]\\n";
potn += "*[[Encyclopedia Dramatica:Picture of the Now/" + monthName + " " + day + ", " + year + "|" + monthName + " " + day + ", " + year + " - ]]\\n";
aotn += "*[[Encyclopedia Dramatica:Article of the Now/" + monthName + " " + day + ", " + year + "|" + monthName + " " + day + ", " + year + "]] - \\n";
qotn += "*[[Encyclopedia Dramatica:Quote of the Now/" + monthName + " " + day + ", " + year + "|" + monthName + " " + day + ", " + year + " - ]]\\n";
}
var output = document.getElementById('output');
output.innerHTML = "";
output.innerHTML += "<div class='output'><h2>Article of the Now - " + monthName + " " + year + "</h2><pre>" +
"== " + monthName + " " + year + " ==\\n\\n" + aotn + ""; output.innerHTML += "
Quote of the Now - " + monthName + " " + year + "
" +
"== " + monthName + " " + year + " ==\\n\\n" + qotn + ""; output.innerHTML += "
Video of the Now - " + monthName + " " + year + "
" +
"== " + monthName + " " + year + " ==\\n\\n" + votn + ""; output.innerHTML += "
Picture of the Now - " + monthName + " " + year + "
" +
"== " + monthName + " " + year + " ==\\n\\n" + potn + ""; output.innerHTML += "
Summary
Generated: " + monthName + " " + year + " (" + days + " days)
" + "Usage: Copy the relevant sections above to your archive pages
" + "Note: Fill in article/quote/video/picture titles as you set them
";
}
function clearOutput() {
document.getElementById('output').innerHTML = "";
}
// Auto-generate on page load window.onload = function() {
generateArchives();
}; </script>
</body> </html>
JavaScript Improvements Made
- **Better user interface** with controls and styling
- **Flexible month/year selection** instead of hardcoded values
- **Year wraparound handling** for cross-year generation
- **Cleaner output formatting** with separate sections
- **Auto-generation on page load** for immediate use
- **Clear instructions** and usage notes
- **Modern HTML structure** with proper styling
Usage Notes
- **Default:** Generates next month's templates
- **Current month:** Set offset to 0 if adding to current month
- **Future months:** Use positive offsets (1, 2, etc.)
- **Past months:** Use negative offset (-1) for previous month
- **Custom year:** Override year field for generating archives for different years
Discussion
Use the talk page for general discussion about XOTN policies and procedures.
