Template:Area/iconshortname: Difference between revisions

From Regnum Online Wiki
Jump to navigation Jump to search
ROWiki>Onteron
creating template
 
m 8 revisions imported
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This template displays the [[temlate:area/icon|icon]] for the area along with a shortened (initials) name.
This template displays the [[template:area/icon|icon]] for the area along with a shortened (initials) name.


Also has a background color according to the realm.
Also has a background color according to the realm.
</noinclude><!--
</noinclude><!--
--><span style="background-color:  
--><span style="padding: 0px 2px; margin-right:0.5em; background-color:  
                 {{#switch: {{{realm}}} | Alsius = #bbf | Ignis = #f99 | Syrtis = #9f9 }}
                 {{#switch: {{{realm|Syrtis}}} | Alsius = #bbf | Ignis = #f99 | Syrtis = #9f9 }}
               "><!--
               "><!--
   -->{{area/icon | realm = {{{realm}}} | region = {{{region}}} }} <!--
   -->{{area/icon | realm = {{{realm|Syrtis}}} | region = {{{region|War Zone}}} }} <!--
   -->[[ {{{name}}} |<!--
   -->'''[[ {{{name|Riverside}}} |<!--
     -->{{#sub: {{#explode: {{{name}}} | | 0 }} | 0 | 1 }}<!--
     -->{{#sub: {{#explode: {{{name|Riverside}}} | | 0 }} | 0 | 1 }}<!--
     -->{{#sub: {{#explode: {{{name}}} | | 1 }} | 0 | 1 }}<!--
     -->{{#sub: {{#explode: {{{name}}} | | 1 }} | 0 | 1 }}<!--
     -->{{#sub: {{#explode: {{{name}}} | | 2 }} | 0 | 1 }}<!--
     -->{{#sub: {{#explode: {{{name}}} | | 2 }} | 0 | 1 }}<!--
   -->]]<!--
   -->]]'''<!--
--></span>
--></span>

Latest revision as of 18:34, 6 November 2020

This template displays the icon for the area along with a shortened (initials) name.

Also has a background color according to the realm. R