Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Editing Template:Portal/Layout

Template page
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 31: Line 31:
     |image_category=  Category name on media.battlestarwiki.org used
     |image_category=  Category name on media.battlestarwiki.org used
                           as fallback when /ImageList sub-page doesn't
                           as fallback when /ImageList sub-page doesn't
                           exist. e.g. "RDM" (resolves to Category:RDM)
                           exist. e.g. "Images (RDM)"
                           The /ImageList sub-page path is derived
                           The /ImageList sub-page path is derived
                           automatically from |pagename=.
                           automatically from |pagename=.
Line 79: Line 79:
<div class="portal-header-links">[[Battlestar Wiki:Galactipedians Quorum|Quorum]] · [[Portal:Overview|Overview]] · [[Battlestar Wiki:News|News]] · [[Portal:Blogs|Blogs]]</div>
<div class="portal-header-links">[[Battlestar Wiki:Galactipedians Quorum|Quorum]] · [[Portal:Overview|Overview]] · [[Battlestar Wiki:News|News]] · [[Portal:Blogs|Blogs]]</div>
</div><!--/.portal-header-top-->
</div><!--/.portal-header-top-->
{{#ifeq:{{{show_stats|yes}}}|yes|<div class="portal-stats-bar">{{#if:{{{stat_category|}}}|<div class="portal-stat"><span class="portal-stat-num portal-stat-count" data-category="{{{stat_category}}}">&hellip;</span><div class="portal-stat-label">articles</div></div>}}{{#if:{{{stat_episodes|}}}|<div class="portal-stat"><div class="portal-stat-num">{{{stat_episodes}}}</div><div class="portal-stat-label">episodes</div></div>}}{{#if:{{{stat_characters|}}}|<div class="portal-stat"><div class="portal-stat-num portal-stat-count" data-category="{{{stat_characters}}}">&hellip;</div><div class="portal-stat-label">characters</div></div>}}{{#if:{{{stat_seasons|}}}|<div class="portal-stat"><div class="portal-stat-num">{{{stat_seasons}}}</div><div class="portal-stat-label">seasons</div></div>}}{{#if:{{{stat_year|}}}|<div class="portal-stat"><div class="portal-stat-num">{{{stat_year}}}</div><div class="portal-stat-label">first aired</div></div>}}</div>}}
{{#ifeq:{{{show_stats|yes}}}|yes|<div class="portal-stats-bar">{{#if:{{{stat_category|}}}|<div class="portal-stat"><span class="portal-stat-num portal-stat-count" data-category="{{{stat_category}}}">&hellip;</span><div class="portal-stat-label">articles</div></div>}}{{#if:{{{stat_episodes|}}}|<div class="portal-stat"><div class="portal-stat-num">{{{stat_episodes}}}</div><div class="portal-stat-label">episodes</div></div>}}{{#if:{{{stat_characters|}}}|<div class="portal-stat"><div class="portal-stat-num">{{{stat_characters}}}</div><div class="portal-stat-label">characters</div></div>}}{{#if:{{{stat_seasons|}}}|<div class="portal-stat"><div class="portal-stat-num">{{{stat_seasons}}}</div><div class="portal-stat-label">seasons</div></div>}}{{#if:{{{stat_year|}}}|<div class="portal-stat"><div class="portal-stat-num">{{{stat_year}}}</div><div class="portal-stat-label">first aired</div></div>}}</div>}}
</div><!--/.portal-header-->
</div><!--/.portal-header-->


Line 92: Line 92:


{{#ifeq:{{{show_slider|yes}}}|yes|
{{#ifeq:{{{show_slider|yes}}}|yes|
<div class="portal-hero" id="portal-widget-slider" data-category="{{{image_category|}}}">
<div class="portal-widget" id="portal-widget-slider">
<div class="portal-hero-bg"></div>
<div class="portal-widget-head"><span class="portal-widget-title">Portal image gallery</span>{{#if:{{{image_category|}}}|<span class="portal-widget-meta">[[:Category:{{{image_category|}}}|{{{image_category|}}}]]</span>}} [[Portal:{{{pagename}}}/ImageList|<span class="portal-widget-edit">[edit list]</span>]]</div>
<div class="portal-hero-overlay"></div>
<div class="portal-widget-body portal-slider-wrapper"><!-- server-rendered first image: picked daily by Module:Portal --><div class="portal-slider-nav" data-category="{{{image_category|}}}" data-listpage="Portal:{{{pagename}}}/ImageList"><span class="portal-slider-prev" role="button" tabindex="0" aria-label="Previous image">&#x2039;</span><span class="portal-slider-dots"></span><span class="portal-slider-next" role="button" tabindex="0" aria-label="Next image">&#x203a;</span><span class="portal-slider-counter"></span>{{#if:{{{image_category|}}}|&#32;<a class="portal-slider-source" href="https://media.battlestarwiki.org/wiki/Category:{{urlencode:{{{image_category|}}}|WIKI}}">Browse gallery &#x2197;</a>|}}</div>
<div class="portal-hero-content"><div class="portal-hero-caption"></div></div>
</div><!--/.portal-widget-body-->
<div class="portal-hero-nav"><span class="portal-hero-prev" role="button" tabindex="0" aria-label="Previous image">&#x2039;</span><span class="portal-hero-dots"></span><span class="portal-hero-next" role="button" tabindex="0" aria-label="Next image">&#x203a;</span></div>
</div><!--/#portal-widget-slider-->
</div><!--/#portal-widget-slider-->
}}
}}
Line 103: Line 102:
<div class="portal-widget" id="portal-widget-newest">
<div class="portal-widget" id="portal-widget-newest">
<div class="portal-widget-head"><span class="portal-widget-title">Newest article{{#if:{{{newest_category|}}}|&#32;— [[Portal:{{{pagename}}}|{{{title}}}]]}}</span><span class="portal-widget-edit">[[Special:NewPages|browse all]]</span></div>
<div class="portal-widget-head"><span class="portal-widget-title">Newest article{{#if:{{{newest_category|}}}|&#32;— [[Portal:{{{pagename}}}|{{{title}}}]]}}</span><span class="portal-widget-edit">[[Special:NewPages|browse all]]</span></div>
<div class="portal-widget-body"><div class="portal-newest-inner" data-category="{{{newest_category|}}}"><!-- populated by portal JS --></div></div>
<div class="portal-widget-body"><div class="portal-newest-inner"{{#if:{{{newest_category|}}}|&#32;data-category="{{{newest_category}}}"}}><!-- populated by portal JS --></div></div>
{{#if:{{{newest_category|}}}|<div class="portal-widget-foot"><span>Filtered to [[:Category:{{{newest_category|}}}]]</span>[[Special:NewPages|See all new articles →]]</div>}}
{{#if:{{{newest_category|}}}|<div class="portal-widget-foot"><span>Filtered to [[:Category:{{{newest_category|}}}]]</span><a href="/wiki/Special:NewPages">See all new articles &#x2192;</a></div>}}
</div><!--/#portal-widget-newest-->
</div><!--/#portal-widget-newest-->
}}
}}
Line 115: Line 114:
}}
}}


{{#ifeq:{{{show_selected|yes}}}|yes|{{#ifexist:Portal:{{{pagename}}}/Selected article|
{{#ifeq:{{{show_selected|yes}}}|yes|{{#if:{{{selected_article|}}}|
<div class="portal-widget" id="portal-widget-selected">
<div class="portal-widget" id="portal-widget-selected">
<div class="portal-widget-head"><span class="portal-widget-title">Selected article</span>[[Portal:{{{pagename}}}/Selected article|<span class="portal-widget-edit">[edit]</span>]]</div>
<div class="portal-widget-head"><span class="portal-widget-title">Selected article</span>[[Portal:{{{pagename}}}/Selected article|<span class="portal-widget-edit">[edit]</span>]]</div>
<div class="portal-widget-body">{{Portal:{{{pagename}}}/Selected article}}</div>
<div class="portal-widget-body">{{{selected_article}}}</div>
</div><!--/#portal-widget-selected-->
</div><!--/#portal-widget-selected-->
|}}}}
}}}}


{{#if:{{{characters|}}}|
{{#if:{{{characters|}}}|
Line 136: Line 135:
}}
}}


{{#if:{{{featured_episodes|}}}|
{{#if:{{{featured_episode|}}}|
<div class="portal-widget" id="portal-widget-featured" data-episodes="{{{featured_episodes}}}">
<div class="portal-widget" id="portal-widget-featured">
<div class="portal-widget-head"><span class="portal-widget-title">Featured Episode</span><span class="portal-widget-meta portal-featured-nav"><span class="portal-featured-prev" role="button" tabindex="0">&#x2039;</span><span class="portal-featured-dots"></span><span class="portal-featured-next" role="button" tabindex="0">&#x203a;</span></span></div>
<div class="portal-widget-head"><span class="portal-widget-title">Featured Episode</span>[[Portal:{{{pagename}}}/Featured Episode|<span class="portal-widget-edit">[edit]</span>]]</div>
<div class="portal-widget-body portal-featured-body"><!-- populated by portal JS --></div>
<div class="portal-widget-body">{{{featured_episode}}}</div>
</div><!--/#portal-widget-featured-->
</div><!--/#portal-widget-featured-->
}}
}}
Line 183: Line 182:
}}
}}


{{#if:{{{browse_topics|}}}|
{{#if:{{{categories|}}}|
<div class="portal-widget" id="portal-widget-browse">
<div class="portal-widget" id="portal-widget-categories">
<div class="portal-widget-head"><span class="portal-widget-title">Browse by topic</span></div>
<div class="portal-widget-head"><span class="portal-widget-title">Categories</span>[[Portal:{{{pagename}}}/Categories|<span class="portal-widget-edit">[edit]</span>]]</div>
<div class="portal-widget-body"><div class="portal-browse-bar">{{{browse_topics}}}</div></div>
<div class="portal-widget-body">{{{categories}}}</div>
</div><!--/#portal-widget-browse-->
</div><!--/#portal-widget-categories-->
}}
}}


{{#if:{{{stat_category|}}}|
{{#if:{{{orphans|}}}|
<div class="portal-widget" id="portal-widget-orphans" data-category="{{{stat_category}}}">
<div class="portal-widget" id="portal-widget-orphans">
<div class="portal-widget-head"><span class="portal-widget-title">Orphaned articles</span><span class="portal-widget-meta"><small>no incoming links</small></span></div>
<div class="portal-widget-head"><span class="portal-widget-title">Orphaned articles</span>[[Portal:{{{pagename}}}/Orphans|<span class="portal-widget-edit">[edit]</span>]]</div>
<div class="portal-widget-body"><div class="portal-orphans-inner"><!-- populated by portal JS --></div></div>
<div class="portal-widget-body">{{{orphans}}}</div>
</div><!--/#portal-widget-orphans-->
</div><!--/#portal-widget-orphans-->
}}
}}


{{#if:{{{show_podcasts|yes}}}|{{#ifexist:Portal:{{{pagename}}}/Podcasts|
{{#if:{{{podcasts|}}}|
<div class="portal-widget" id="portal-widget-podcasts">
<div class="portal-widget" id="portal-widget-podcasts">
<div class="portal-widget-head"><span class="portal-widget-title">Episode podcasts</span>[[Portal:{{{pagename}}}/Podcasts|<span class="portal-widget-edit">[browse]</span>]]</div>
<div class="portal-widget-head"><span class="portal-widget-title">Episode podcasts</span>[[Portal:{{{pagename}}}/Podcasts|<span class="portal-widget-edit">[edit]</span>]]</div>
<div class="portal-widget-body"><div class="portal-podcast-teaser">Episode podcasts — from cast, crew, and producers — are available for all seasons. [[Portal:{{{pagename}}}/Podcasts|Browse all episode podcasts →]]</div></div>
<div class="portal-widget-body">{{{podcasts}}}</div>
</div><!--/#portal-widget-podcasts-->
</div><!--/#portal-widget-podcasts-->
|}}}}
}}


</div><!--/.portal-sidebar-->
</div><!--/.portal-sidebar-->

To edit this page, please enter the words that appear below in the box (more info):

Refresh
Cancel Editing help (opens in new window)

  [] · [[]] · [[|]] · {{}} · · “” ‘’ «» ‹› „“ ‚‘ · ~ | ° &nbsp; · ± × ÷ ² ³ ½ · §
     [[Category:]] · [[:File:]] · [[Special:MyLanguage/]] · <code></code> · <nowiki></nowiki> <code><nowiki></nowiki></code> · <syntaxhighlight></syntaxhighlight> · <includeonly></includeonly> · <noinclude></noinclude> · #REDIRECT[[]] · <translate></translate> · <languages/> · {{#translation:}} · <tvar|></> · {{DEFAULTSORT:}} · <categorytree></categorytree> · <div style="clear:both;"></div> <s></s>


Your changes will be visible immediately.
  • For testing, please use the sandbox instead.
  • On talk pages, please sign your comment by typing four tildes (~~~~).

Pages included on this page: