Template:Emperor Sidebar: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
m Updating sidebar template
huh, didn't know doubling new rows avoids space issues
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="infobox" {{#if:{{{style|}}}|style="{{{style}}}"}}>
<includeonly>{| class="infobox" style="text-align:center;"
  <table>
! class="infobox-header" | Emperor
    <tr>
|-
      <th class="navbox-title" style="text-align:center;"><span style="font-size:larger;">{{#if:{{{title|}}}|{{{title}}}|{{#if:{{{template|}}}|{{{template}}}|{{{title}}}}}}}</span></th>
| [[File:Imperial Flag.jpg|250px]]
    </tr>
|-
<tr>
{{#if:{{{game1|}}}|
<th class="navbox-title" style="text-align:center;"><span style="font-size:larger;">[[File:Imperial Flag.jpg|250px]]</span></th>
{{!}}-
</tr>
! {{gamepage|New Pacific Order|{{abbrgame|{{{game1}}}|full}}|p=x|game={{abbrgame|{{{game1}}}|full}}}}
      {{#if:{{{group1|}}}|
{{!}}-
    <tr>
{{!}} {{list|{{gamepage|{{{1}}}|game={{abbrgame|{{{game1}}}|full}}}}|[[Imperial Announcements from {{{1}}} ({{abbrgame|{{{game1}}}|full}})|Announcements]]}}
        <th style="text-align:center;" class="navbox-group">{{{group1}}}</th>
{{!}}-
</tr>
}}{{#if:{{{game2|}}}|
      }}<tr><td class="navbox-list">
{{!}}-
{{{list1}}}
! {{gamepage|New Pacific Order|{{abbrgame|{{{game2}}}|full}}|p=x|game={{abbrgame|{{{game2}}}|full}}}}
      </td>
{{!}}-
    </tr>
{{!}} {{list|{{gamepage|{{{1}}}|game={{abbrgame|{{{game2}}}|full}}}}|[[Imperial Announcements from {{{1}}} ({{abbrgame|{{{game2}}}|full}})|Announcements]]}}
      {{#if:{{{group2|}}}|
{{!}}-
    <tr>
}}{{#if:{{{game3|}}}|
        <th style="text-align:center;" class="navbox-group">{{{group2}}}</th>
{{!}}-
</tr>
! {{gamepage|New Pacific Order|{{abbrgame|{{{game3}}}|full}}|p=x|game={{abbrgame|{{{game3}}}|full}}}}
      }}<tr><td class="navbox-list">
{{!}}-
{{{list2}}}
{{!}} {{list|{{gamepage|{{{1}}}|game={{abbrgame|{{{game3}}}|full}}}}|[[Imperial Announcements from {{{1}}} ({{abbrgame|{{{game3}}}|full}})|Announcements]]}}
      </td>
{{!}}-
    </tr>
}}{{#if:{{{game4|}}}|
      {{#if:{{{group3|}}}|
{{!}}-
    <tr>
! {{gamepage|New Pacific Order|{{abbrgame|{{{game4}}}|full}}|p=x|game={{abbrgame|{{{game4}}}|full}}}}
        <th style="text-align:center;" class="navbox-group">{{{group3}}}</th>
{{!}}-
</tr>
{{!}} {{list|{{gamepage|{{{1}}}|game={{abbrgame|{{{game4}}}|full}}}}|[[Imperial Announcements from {{{1}}} ({{abbrgame|{{{game4}}}|full}})|Announcements]]}}
      }}<tr><td class="navbox-list">
{{!}}-
{{{list3}}}
}}{{#if:{{{game5|}}}|
      </td>
{{!}}-
    </tr>
! {{gamepage|New Pacific Order|{{abbrgame|{{{game5}}}|full}}|p=x|game={{abbrgame|{{{game5}}}|full}}}}
{{!}}-
{{!}} {{list|{{gamepage|{{{1}}}|game={{abbrgame|{{{game5}}}|full}}}}|[[Imperial Announcements from {{{1}}} ({{abbrgame|{{{game5}}}|full}})|Announcements]]}}
}}
}}
  </table>
|}</includeonly><noinclude>{{documentation}}</noinclude>
</div>{{#switch:{{{state|}}}|collapsed|expanded|=|#default={{error|Invalid state parameter}}}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 16:39, 3 September 2025

Documentation [edit]

This template is used to display a small infobox linking to an Emperor's page and their official announcements. It should be placed after any other infoboxes on the page.

Parameters

  • first unnamed parameter - the name of the player.
  • game1 through game5 - the games in which the person was Emperor. These can be abbreviations. They will be displayed in the order they are given.

Example

Emperor
Cyber Nations
Lord of DarknessAnnouncements
NationStates
Lord of DarknessAnnouncements

{{Emperor Sidebar|Lord of Darkness|game1=CN|game2=NS}}


The above documentation is transcluded from Template:Emperor Sidebar/doc.