Difference between revisions of "Template:Coterie"

From End to Dawn
Jump to navigation Jump to search
Line 6: Line 6:
 
|titlepic=
 
|titlepic=
 
|grouptype=
 
|grouptype=
|leader1=
 
|leader1type=
 
|leader2=
 
|leader2type=
 
|leader3=
 
|leader3type=
 
|leader4=
 
|leader4type=
 
|leader5=
 
|leader5type=
 
|leader6=
 
|leader6type=
 
 
|reputation=
 
|reputation=
 
|rumors=
 
|rumors=
 
|quotes=
 
|quotes=
 +
|showmembers=Yes
 
}}
 
}}
 
</pre>
 
</pre>
Line 29: Line 18:
 
<div class="pcgroup-container">
 
<div class="pcgroup-container">
  
  <div class="pcgroup-header">
+
<!-- Header and image -->
    <div class="pcgroup-title">{{PAGENAME}}</div>
+
<div class="pcgroup-header">
    <div class="pcgroup-image">
+
  <div class="pcgroup-title">{{PAGENAME}}</div>
      {{#if: {{{titlepic|}}} | [[File:{{{titlepic}}}|center|600px]] }}
+
  <div class="pcgroup-image">
       {{#if: {{{titlepic|}}} | | <!-- fallback to image matching page name -->
+
    {{#if: {{{titlepic|}}} | [[File:{{{titlepic}}}|center|600px]]  
        {{#ifexist: File:{{PAGENAME}}.png|[[File:{{PAGENAME}}.png|center|600px]]}}
+
       | {{#ifexist: File:{{PAGENAME}}.png | [[File:{{PAGENAME}}.png|frameless|center|500px]]
         {{#ifexist: File:{{PAGENAME}}.jpg|[[File:{{PAGENAME}}.jpg|center|600px]]}}
+
         | {{#ifexist: File:{{PAGENAME}}.jpg | [[File:{{PAGENAME}}.jpg|frameless|center|500px]]
        {{#ifexist: File:{{PAGENAME}}.jpeg|[[File:{{PAGENAME}}.jpeg|center|600px]]}}
+
          | {{#ifexist: File:{{PAGENAME}}.jpeg | [[File:{{PAGENAME}}.jpeg|frameless|center|500px]]
        {{#ifexist: File:{{PAGENAME}}.gif|[[File:{{PAGENAME}}.gif|center|600px]]}}
+
            | {{#ifexist: File:{{PAGENAME}}.gif | [[File:{{PAGENAME}}.gif|frameless|center|500px]]
        {{#ifexist: File:{{PAGENAME}}.webp|[[File:{{PAGENAME}}.webp|center|600px]]}}
+
              | {{#ifexist: File:{{PAGENAME}}.webp | [[File:{{PAGENAME}}.webp|frameless|center|500px]]
 +
              }}
 +
            }}
 +
          }}
 +
        }}
 
       }}
 
       }}
     </div>
+
     }}
 
   </div>
 
   </div>
 +
</div>
  
  <table class="pcgroup-table" style="width:100%; text-align:left; margin-bottom:1em;">
+
<!-- Group info -->
    <tr>
+
{{#if:{{{grouptype|}}}|== Group Type ==
      <th>{{{grouptype}}} Name</th>
+
{{{grouptype}}}}}
      <td>{{PAGENAME}}</td>
 
    </tr>
 
    {{#if: {{{leader1|}}} | <tr><th>{{{leader1type}}}</th><td>[[{{{leader1}}}]]</td></tr>}}
 
    {{#if: {{{leader2|}}} | <tr><th>{{{leader2type}}}</th><td>[[{{{leader2}}}]]</td></tr>}}
 
    {{#if: {{{leader3|}}} | <tr><th>{{{leader3type}}}</th><td>[[{{{leader3}}}]]</td></tr>}}
 
    {{#if: {{{leader4|}}} | <tr><th>{{{leader4type}}}</th><td>[[{{{leader4}}}]]</td></tr>}}
 
    {{#if: {{{leader5|}}} | <tr><th>{{{leader5type}}}</th><td>[[{{{leader5}}}]]</td></tr>}}
 
    {{#if: {{{leader6|}}} | <tr><th>{{{leader6type}}}</th><td>[[{{{leader6}}}]]</td></tr>}}
 
  </table>
 
  
  {{#if: {{{reputation|}}} | ==Reputation==<br>{{{reputation}}}<br>}}
+
{{#if:{{{reputation|}}}|== Reputation ==
 
+
{{{reputation}}}}}
  {{#if: {{{rumors|}}} | ==Rumors==<br>{{{rumors}}}<br>}}
 
  {{#ifexist: {{PAGENAME}} Rumors | {{:{{PAGENAME}} Rumors}}<br>}}
 
  {{#formlink:form=Add Rumors|target={{PAGENAME}} Rumors|returnto={{FULLPAGENAME}}|reload|link text=Edit rumors: add your own!}}
 
  
  {{#if: {{{quotes|}}} | ==Quotes==<br>{{{quotes}}}<br>}}
+
{{#if:{{{rumors|}}}|== Rumors ==
  {{#ifexist: {{PAGENAME}} Quotes | {{:{{PAGENAME}} Quotes}}<br>}}
+
{{{rumors}}}}}
  {{#formlink:form=Add Quotes|target={{PAGENAME}} Quotes|returnto={{FULLPAGENAME}}|reload|link text=Edit quotes: add your own!}}
+
{{#ifexist: {{PAGENAME}} Rumors|{{:{{PAGENAME}} Rumors}}<br>}
 +
{{#formlink:form=Add Rumors|target={{PAGENAME}} Rumors|returnto={{FULLPAGENAME}}|reload|link text=Edit rumors: add your own!}}
  
  <!-- Members Section: dynamically lists all PCs in this group -->
+
{{#if:{{{quotes|}}}|== Quotes ==
  {{#ifexist:Category:{{PAGENAME}}|
+
{{{quotes}}}}}
    == Members ==
+
{{#ifexist: {{PAGENAME}} Quotes|{{:{{PAGENAME}} Quotes}}<br>}
    {{#ask: [[Category:{{PAGENAME}}]]
+
{{#formlink:form=Add Quotes|target={{PAGENAME}} Quotes|returnto={{FULLPAGENAME}}|reload|link text=Edit quotes: add your own!}}
      |?Player
+
 
      |mainlabe
+
<!-- Members section -->
 +
{{#if: {{{showmembers|}}} |
 +
== Members ==
 +
{{#dpl:
 +
|category={{PAGENAME}}
 +
|mode=list
 +
|ordermethod=categorytitle
 +
|format=,
 +
|split=,
 +
}}
 +
}}
 +
 
 +
</div>
 +
 
 +
<!-- Auto-categorization -->
 +
[[Category:PC Groups]]
 +
{{#if: {{{grouptype|}}} | [[Category:{{{grouptype}}}]] }}
 +
{{#if: {{{PAGENAME|}}} | [[Category:{{PAGENAME}}]] }}
 +
 
 +
{{#css:
 +
.pcgroup-container {
 +
  background: #111;
 +
  color: #DDD;
 +
  border: 2px solid #600;
 +
  padding: 1em;
 +
  font-family: 'Belleza', sans-serif;
 +
}
 +
.pcgroup-header {
 +
  text-align: center;
 +
  margin-bottom: 20px;
 +
}
 +
.pcgroup-title {
 +
  font-size: 2.5em;
 +
  font-family: "Limelight", cursive;
 +
  color: #C33;
 +
  margin-bottom: 10px;
 +
}
 +
.pcgroup-image img {
 +
  max-width: 80%;
 +
  height: auto;
 +
  border: 3px solid #600;
 +
  border-radius: 10px;
 +
  margin-top: 10px;
 +
}
 +
}}
 +
 
 +
 
 +
</includeonly>

Revision as of 03:40, 31 January 2026

This is the "Masquerade PC Group" template, used for pages defining coteries, gangs, lineages, and former packs. It should be called in the following format:

{{Masquerade PC Group
|titlepic=
|grouptype=
|reputation=
|rumors=
|quotes=
|showmembers=Yes
}}