Template:Emperor Sidebar: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
Updating sidebar template
m Updating sidebar template
Line 1: Line 1:
<div class="infobox" {{#if:{{{style|}}}|style="{{{style}}}"}}>
<div class="infobox" {{#if:{{{style|}}}|style="{{{style}}}"}}>
   <table class="mw-collapsible {{#ifeq:{{{state|}}}|collapsed|mw-collapsed}}">
   <table>
     <tr>
     <tr>
       <th class="navbox-title" colspan="2"><span style="font-size:larger;">{{#if:{{{title|}}}|{{{title}}}|{{#if:{{{template|}}}|{{{template}}}|{{{title}}}}}}}</span></th>
       <th class="navbox-title" colspan="2"><span style="font-size:larger;">{{#if:{{{title|}}}|{{{title}}}|{{#if:{{{template|}}}|{{{template}}}|{{{title}}}}}}}</span></th>
     </tr>
     </tr>
<tr>
<tr>
<th class="navbox-title" colspan="2"><span style="font-size:larger;">[[File:Imperial Flag.jpg|250px]]</span></th>
<th class="navbox-title" colspan="2" style="text-align:center;"><span style="font-size:larger;">[[File:Imperial Flag.jpg|250px]]</span></th>
</tr>
</tr>
       {{#if:{{{group1|}}}|
       {{#if:{{{group1|}}}|
Line 81: Line 81:
     </tr>
     </tr>
}}
}}
    <tr>
      <td class="navbox-footer" colspan="2">{{list
        |{{#if:{{{links|}}}|{{{links}}}}}
        |{{list
          |{{#if:{{{portal|}}}|[[Portal:{{{portal}}}|Portal]]}}
          |{{#if:{{{category|}}}|[[:Category:{{{category}}}|Category]]}}
          |<span style{{=}}"font-size:smaller;">[[Template:{{#if:{{{template|}}}|{{{template}}}|Navbox}}|view/edit]]</span>
        }}
      }}</td>
    </tr>
   </table>
   </table>
</div>{{#switch:{{{state|}}}|collapsed|expanded|=|#default={{error|Invalid state parameter}}}}<noinclude>{{documentation}}</noinclude>
</div>{{#switch:{{{state|}}}|collapsed|expanded|=|#default={{error|Invalid state parameter}}}}<noinclude>{{documentation}}</noinclude>

Revision as of 08:07, 11 January 2021

{{{title}}}

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

{{{title}}}

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


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