Portal:Portals/DIY
From Uncyclopedia, the content-free encyclopedia
Jump to navigation
Jump to search
Portal page directory
| All Portal topics | |
| Portal blurbs | |
| Portal templates |
|
| Portal stylesheets |
Portal source code examples
Here is the source code for the Platonic ideal of a portal page. For creating new portal pages, change portal-platonic to the name of your new portal topic, like portal-crabs.
{{#css:Uncyclopedia:Portals/styles.css}}{{PortalNav}}
<div class="portal-container portal-platonic">
<!-- INTRO -->
<div class="portal-row portal-panel">
<div class="portal-panel-header">{{Portal header|Platonic Portal}}</div>
<div class="portal-panel-content">{{/Intro}}</div>
</div>
<!-- HIGHLIGHTS -->
<div class="portal-row portal-highlights">
<!-- HIGHLIGHTS COLUMN 1 -->
<div class="portal-highlights-column">
<div class="portal-panel portal-blurb">
<div class="portal-panel-header">{{Portal header|Featured Article|Selected Articles}}</div>
<div class="portal-panel-content">{{/Selected Articles}}</div>
</div>
</div>
<!-- HIGHLIGHTS COLUMN 2 -->
<div class="portal-highlights-column">
<div class="portal-panel portal-blurb">
<div class="portal-panel-header">{{Portal header|Featured Image|Selected Pictures}}</div>
<div class="portal-panel-content">{{/Selected Pictures}}</div>
</div>
<div class="portal-panel">
<div class="portal-panel-header">{{Portal header|Did You Know?|Did You Know}}</div>
<div class="portal-panel-content">{{PortalDYK|Portal:Platonic/Did You Know|6}}</div> <!-- Make sure to change Portal:Platonic to correct topic name -->
</div>
</div>
</div>
<!-- BOTTOM ROWS -->
<div class="portal-row portal-panel">
<div class="portal-panel-header">More Portals</div>
<div class="portal-panel-content">{{Topics}}</div>
</div>
</div>
[[Category:Uncyclopedia Portals]]
Here is the example code for an "article blurb" subpage, used in Portal article blurbs, Portal biographical blurbs and so on.
<noinclude><gallery>
File:Article1.jpg|[[Article1]]
File:Article2.jpg|[[Article2]]
</gallery></noinclude>
<includeonly><choose>
<option>{{Selected article
|article = Article1
|image = Article1.jpg
|author =
|summary =
}}</option>
<option>{{Selected article
|article = Article2
|image = Article2.jpg
|author =
|summary =
}}</option>
</choose></includeonly><noinclude>
[[Category:Portal article blurbs]] <!-- Other category names: [[Category:Portal biographical blurbs]], [[Category:Portal featurette blurbs]], [[Category:Portal news blurbs]] -->
</noinclude>
Here is the example code for a "picture blurb" subpage, used in Portal picture blurbs.
<noinclude><gallery>
File:Picture1.png
File:Picture2.png
</gallery></noinclude>
<includeonly><choose>
<option>{{Selected picture
|image = Picture1.png
|credit =
|caption =
}}</option>
<option>{{Selected picture
|image = Picture2.png
|credit =
|caption =
}}</option>
</choose></includeonly><noinclude>
[[Category:Portal picture blurbs]]
</noinclude>
Here is the example code for a "DYK page", used in Portal DYK blurbs. Note that rather than transcluding the subpage directly, portal pages use {{PortalDYK}} to extract bulleted list items from a specified subpage.
<!--
DYK entries should look like this:
*... that blah blah blah blah blah?
NOTE: Templates will show up as raw text instead of the actual template. That means no {{SP}} or {{noun}} or anything other than standard wikitext. Sorry!
-->
<noinclude><h2>Full DYK list</h2></noinclude>
*... that [[example]] one?
*... that example ''two''?
*... that example '''''three'''''?
<noinclude>[[Category:Portal DYK blurbs]]</noinclude>
Hidden category: