Difference between revisions of "Template:Domain"

From Modern Enigma Society 2020 Wiki
Jump to navigation Jump to search
Line 11: Line 11:
 
<div id="domain-container">
 
<div id="domain-container">
 
<div id="domain-title" class="clearfix">{{PAGENAME}}
 
<div id="domain-title" class="clearfix">{{PAGENAME}}
<div id="domain-title-image">
+
<div id="domain-title-image">{{#if: {{{titlepic|}}}|[[File:{{{titlepic}}}]]|
{{#ifexist: File:{{PAGENAME}}.png|[[File:{{PAGENAME}}.png|center]]
+
  {{#ifexist: File:{{PAGENAME}}.png|[[File:{{PAGENAME}}.png|center]]
  |{{#ifexist: File:{{PAGENAME}}.jpg|[[File:{{PAGENAME}}.jpg|center]]
+
    |{{#ifexist: File:{{PAGENAME}}.jpg|[[File:{{PAGENAME}}.jpg|center]]
    |{{#ifexist: File:{{PAGENAME}}.jpeg|[[File:{{PAGENAME}}.jpeg|frameless|center|500px]]
+
      |{{#ifexist: File:{{PAGENAME}}.jpeg|[[File:{{PAGENAME}}.jpeg|frameless|center|500px]]
      |{{#ifexist: File:{{PAGENAME}}.gif|[[File:{{PAGENAME}}.gif|frameless|center|500px]]
+
        |{{#ifexist: File:{{PAGENAME}}.gif|[[File:{{PAGENAME}}.gif|frameless|center|500px]]
        |{{#ifexist: File:{{PAGENAME}}.webp|[[File:{{PAGENAME}}.webp|frameless|center|500px]]
+
          |{{#ifexist: File:{{PAGENAME}}.webp|[[File:{{PAGENAME}}.webp|frameless|center|500px]]
 +
          }}
 
         }}
 
         }}
 
       }}
 
       }}
Line 49: Line 50:
 
[[Category:Domain]]
 
[[Category:Domain]]
 
{{#if: {{{region}}}|[[Category:{{{region}}}]]}}
 
{{#if: {{{region}}}|[[Category:{{{region}}}]]}}
 +
 
{{#css:
 
{{#css:
 
.mw-body h1.firstHeading {
 
.mw-body h1.firstHeading {
   font-family: serif;
+
   font-family: "Limelight", cursive;
 +
  color: #DC7;
 
   font-weight: bold;
 
   font-weight: bold;
 
   font-size: 22px;
 
   font-size: 22px;
 
}
 
}
#domain-container {
+
#mw-content-text {
   border-style:solid;
+
  padding: 5px;
   border-width:thin;
+
  background-color: #000;
 +
   border-style: double;
 +
  border-color: #DC7;
 +
   border-width: thin;
 
}
 
}
#domain-title {
+
.mw-body-content h2, .my-h2 {
  font-family: serif;
+
   font-family: "Poiret One", cursive;
  font-size:2.6em;
+
  color: #DC7;
  line-height:120px;
 
  text-align:center;
 
  font-weight:bolder;
 
  margin:20px;
 
  vertical-align:middle;
 
  float:center;
 
}
 
h2, .my-h2 {
 
   font-family: serif;
 
 
   font-weight: bold;
 
   font-weight: bold;
 
   size: 18px;
 
   size: 18px;
 
}
 
}
 
.my-h3 {
 
.my-h3 {
   font-family: serif;
+
   font-family: "Poiret One", cursive;
 +
  color: #DC7;
 
   font-weight: bold;
 
   font-weight: bold;
 
   size: 16px
 
   size: 16px
 
}
 
}
p, td, th {
+
.mw-body-content p, .mw-body-content td, .mw-body-content th, .mw-body-content li {
 
   font-size: 16px;
 
   font-size: 16px;
   font-family: sans-serif;
+
   font-family: 'Belleza', 'Avant Garde', sans-serif;
 
   vertical-align:top;
 
   vertical-align:top;
 
   text-align:left;
 
   text-align:left;
 
}
 
}
#domain-info {
+
#domain-title-image {
   margin: 20px;
+
  max-width: 80%;
   float:center;
+
   margin-left: 20px;
 +
   margin-bottom: 20px;
 
}
 
}
#domain-title-image {
+
#domain-title-image img {
   margin: 20px;
+
   height: auto;
   float:center;
+
   max-width: 100%;
 
}
 
}
 
#domain-info-table, th {
 
#domain-info-table, th {
 
   vertical-align: top;
 
   vertical-align: top;
 
   text-align:left;
 
   text-align:left;
  margin: auto;
 
 
}
 
}
a:link, a.external:link {
+
.mw-body-content a:link, .mw-body-content a.external:link {
 +
  color: #a00;
 +
}
 +
.mw-body-content a:visited, .mw-body-content a.external:visited {
 +
  color: #800e0e;
 
}
 
}
a:visited, a.external:visited {
+
.mw-body-content a:hover, .mw-body-content a.external:hover {
 +
  color: #c00;
 
}
 
}
a:hover, a.external:hover {
+
.mw-body-content a:active, .mw-body-content a.external:active {
 +
  color: #f00;
 
}
 
}
a:active, a.external:active {
+
.mw-body-content a.new, .mw-body-content a.new:visited {
 +
  color: #B93;
 
}
 
}
 
.clearfix::after {
 
.clearfix::after {
Line 111: Line 116:
 
   display: table;
 
   display: table;
 
}
 
}
img {
+
}}</includeonly>
  height: auto;
 
  max-width: 96%;
 
}
 
}}
 
</includeonly>
 

Revision as of 18:34, 30 August 2020

This is the "Domain" template. It should be called in the following format:

{{Domain
|region=
}}

Edit the page to see the template text.