Registration has been disabled and the moderation extension has been turned off.

Contact an admin on Discord or EDF if you want an account. Also fuck bots.

Template:XOTN/AOTN: Difference between revisions

From Encyclopedia Dramatica
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<div class="aotn-container">{{#if:{{{featured|false}}}|
<div class="aotn-container">{{#if:{{{featured|false}}}| <div class="aotn-content"> <div class="aotn-header" style="text-align:center; padding:10px; background:#f0f0f0; border-bottom:1px solid #ccc;"> <h3 style="margin:0; color:#AF0A0F;">'''{{{title|No title set}}}'''</h3> {{#if:{{{image|}}}|<div style="margin:10px 0;">[[File:{{{image}}}|100px|{{{title}}}]]</div>}} </div> <div class="aotn-scroll-content" style="height:300px; overflow-y:auto; padding:15px; background:#fff; border:1px solid #ddd; position:relative;"> <!-- Inline CSS to hide TOC within this container --> <style> .aotn-scroll-content .toc, .aotn-scroll-content #toc, .aotn-scroll-content .mw-headline, .aotn-scroll-content .editsection { display: none !important; } .aotn-scroll-content h2, .aotn-scroll-content h3, .aotn-scroll-content h4 { border-bottom: 1px solid #eee; margin-top: 15px; padding-bottom: 5px; } </style> __NOTOC____NOEDITSECTION__ {{#if:{{{article|}}}|{{:{{{article}}}}}|{{{content|{{{summary|No content available.}}}}}}}} </div> <div class="aotn-footer" style="text-align:center; padding:8px; background:#f0f0f0; border-top:1px solid #ccc;"> {{#if:{{{link|}}}|'''[[{{{link}}}|Read full article...]]''' • }} <small>Set by {{{editor|Unknown}}} on {{{date|Unknown date}}}</small> </div> </div> |<!-- Not featured, show placeholder --> <div class="aotn-placeholder" style="text-align:center; padding:20px; background:#f9f9f9; border:1px solid #ddd;"> <em>No Article of the Now currently set. [[Encyclopedia Dramatica:XOTN/Queue|Submit one here]]!</em> </div> }}</div><includeonly>{{#if:{{{featured|}}}|[[Category:Current AOTN]]}}</includeonly><noinclude> This template displays the Article of the Now with scrollable content and hidden TOC.
<div class="aotn-content">
<div class="aotn-header" style="text-align:center; padding:10px; background:#f0f0f0; border-bottom:1px solid #ccc;">
<h3 style="margin:0; color:#AF0A0F;">'''{{{title|No title set}}}'''</h3>
{{#if:{{{image|}}}|<div style="margin:10px 0;">[[File:{{{image}}}|100px|{{{title}}}]]</div>}}
</div>
<div class="aotn-scroll-content" style="height:300px; overflow-y:auto; padding:15px; background:#fff; border:1px solid #ddd;">
{{#if:{{{article|}}}|{{:{{{article}}}}}|{{{content|{{{summary|No content available.}}}}}}}}
</div>
<div class="aotn-footer" style="text-align:center; padding:8px; background:#f0f0f0; border-top:1px solid #ccc;">
{{#if:{{{link|}}}|'''[[{{{link}}}|Read full article...]]''' • }}
<small>Set by {{{editor|Unknown}}} on {{{date|Unknown date}}}</small>
</div>
</div>
|<!-- Not featured, show placeholder -->
<div class="aotn-placeholder" style="text-align:center; padding:20px; background:#f9f9f9; border:1px solid #ddd;">
<em>No Article of the Now currently set. [[Encyclopedia Dramatica:XOTN/Queue|Submit one here]]!</em>
</div>
}}</div><includeonly>{{#if:{{{featured|}}}|[[Category:Current AOTN]]}}</includeonly><noinclude>
This template displays the Article of the Now with scrollable content.
'''Parameters:'''
'''Parameters:'''


Line 31: Line 12:
editor = Who set it
editor = Who set it
featured = true/false
featured = true/false
'''Features:'''


'''Priority:''' article > content > summary
Automatically hides Table of Contents
[[Category:XOTN Templates]]
Hides edit sections
</noinclude>
Maintains header formatting within scroll area
[[Category:XOTN Templates]] </noinclude>

Revision as of 07:31, 17 August 2025

No title set

<style> .aotn-scroll-content .toc, .aotn-scroll-content #toc, .aotn-scroll-content .mw-headline, .aotn-scroll-content .editsection { display: none !important; } .aotn-scroll-content h2, .aotn-scroll-content h3, .aotn-scroll-content h4 { border-bottom: 1px solid #eee; margin-top: 15px; padding-bottom: 5px; } </style> No content available.

This template displays the Article of the Now with scrollable content and hidden TOC.

Parameters:

title = Article title image = Image filename article = Article name to transclude (e.g., "Pedophilia") content = Full article content (manual entry) summary = Brief summary (fallback) link = Link to full article date = Date set expires = Expiration date editor = Who set it featured = true/false Features:

Automatically hides Table of Contents Hides edit sections Maintains header formatting within scroll area