Difference between revisions of "Template:Coterie"

From End to Dawn
Jump to navigation Jump to search
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the "Masquerade PC Group" template, used for pages defining coteries, gangs, lineages, and former packs.
+
This is the "Coterie" template, used for pages defining coteries.
 
It should be called in the following format:
 
It should be called in the following format:
 
<pre>
 
<pre>
{{Masquerade PC Group
+
{{Coterie
 
|titlepic=
 
|titlepic=
|grouptype=
+
|description=
|leader1=
 
|leader1type=
 
|leader2=
 
|leader2type=
 
|leader3=
 
|leader3type=
 
|leader4=
 
|leader4type=
 
|leader5=
 
|leader5type=
 
|leader6=
 
|leader6type=
 
 
|reputation=
 
|reputation=
 
|rumors=
 
|rumors=
 
|quotes=
 
|quotes=
 +
|members=
 
}}
 
}}
 
</pre>
 
</pre>
 +
Edit the page to see the template text.
 
</noinclude>
 
</noinclude>
  
 
<includeonly>__NOTOC__ __NOEDITSECTION__
 
<includeonly>__NOTOC__ __NOEDITSECTION__
  
<div class="pcgroup-container">
+
<div class="coterie-container">
  
  <div class="pcgroup-header">
+
<!-- Header and image -->
    <div class="pcgroup-title">{{PAGENAME}}</div>
+
<div class="coterie-header">
    <div class="pcgroup-image">
+
  <div class="coterie-title">{{PAGENAME}}</div>
      {{#if: {{{titlepic|}}} | [[File:{{{titlepic}}}|center|600px]] }}
+
  <div class="coterie-image">
       {{#if: {{{titlepic|}}} | | <!-- fallback to image matching page name -->
+
    {{#if: {{{titlepic|}}}
        {{#ifexist: File:{{PAGENAME}}.png|[[File:{{PAGENAME}}.png|center|600px]]}}
+
      | [[File:{{{titlepic}}}|center|600px]]
        {{#ifexist: File:{{PAGENAME}}.jpg|[[File:{{PAGENAME}}.jpg|center|600px]]}}
+
       | {{#ifexist: File:{{PAGENAME}}.png
        {{#ifexist: File:{{PAGENAME}}.jpeg|[[File:{{PAGENAME}}.jpeg|center|600px]]}}
+
          | [[File:{{PAGENAME}}.png|frameless|center|500px]]
        {{#ifexist: File:{{PAGENAME}}.gif|[[File:{{PAGENAME}}.gif|center|600px]]}}
+
          | {{#ifexist: File:{{PAGENAME}}.jpg
        {{#ifexist: File:{{PAGENAME}}.webp|[[File:{{PAGENAME}}.webp|center|600px]]}}
+
              | [[File:{{PAGENAME}}.jpg|frameless|center|500px]]
      }}
+
              | {{#ifexist: File:{{PAGENAME}}.jpeg
     </div>
+
                  | [[File:{{PAGENAME}}.jpeg|frameless|center|500px]]
 +
                  | {{#ifexist: File:{{PAGENAME}}.gif
 +
                      | [[File:{{PAGENAME}}.gif|frameless|center|500px]]
 +
                      | {{#ifexist: File:{{PAGENAME}}.webp
 +
                          | [[File:{{PAGENAME}}.webp|frameless|center|500px]]
 +
                        }}
 +
                    }}
 +
                }}
 +
            }}
 +
        }}
 +
     }}
 
   </div>
 
   </div>
 +
</div>
  
  <table class="pcgroup-table" style="width:100%; text-align:left; margin-bottom:1em;">
+
<!-- Description -->
    <tr>
+
{{#if: {{{description|}}} |
      <th>{{{grouptype}}} Name</th>
+
== <span class="coterie-header-text">Description</span> ==
      <td>{{PAGENAME}}</td>
+
{{{description}}}
    </tr>
+
}}
    {{#if: {{{leader1|}}} | <tr><th>{{{leader1type}}}</th><td>[[{{{leader1}}}]]</td></tr>}}
+
 
    {{#if: {{{leader2|}}} | <tr><th>{{{leader2type}}}</th><td>[[{{{leader2}}}]]</td></tr>}}
+
<!-- Reputation -->
    {{#if: {{{leader3|}}} | <tr><th>{{{leader3type}}}</th><td>[[{{{leader3}}}]]</td></tr>}}
+
{{#if: {{{reputation|}}} |
    {{#if: {{{leader4|}}} | <tr><th>{{{leader4type}}}</th><td>[[{{{leader4}}}]]</td></tr>}}
+
== <span class="coterie-header-text">Reputation</span> ==
    {{#if: {{{leader5|}}} | <tr><th>{{{leader5type}}}</th><td>[[{{{leader5}}}]]</td></tr>}}
+
{{{reputation}}}
    {{#if: {{{leader6|}}} | <tr><th>{{{leader6type}}}</th><td>[[{{{leader6}}}]]</td></tr>}}
+
}}
  </table>
 
  
  {{#if: {{{reputation|}}} | ==Reputation==<br>{{{reputation}}}<br>}}
+
<!-- Rumors -->
 
+
== <span class="coterie-header-text">Rumors</span> ==
  {{#if: {{{rumors|}}} | ==Rumors==<br>{{{rumors}}}<br>}}
+
{{#if: {{{rumors|}}} | {{{rumors}}}<br> }}
  {{#ifexist: {{PAGENAME}} Rumors | {{:{{PAGENAME}} 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!}}
+
{{#formlink:form=Add Rumors|target={{PAGENAME}} Rumors|popup|reload|link text=Edit rumors: add your own!}}
  
  {{#if: {{{quotes|}}} | ==Quotes==<br>{{{quotes}}}<br>}}
+
<!-- Quotes -->
  {{#ifexist: {{PAGENAME}} Quotes | {{:{{PAGENAME}} Quotes}}<br>}}
+
== <span class="coterie-header-text">Quotes</span> ==
  {{#formlink:form=Add Quotes|target={{PAGENAME}} Quotes|returnto={{FULLPAGENAME}}|reload|link text=Edit quotes: add your own!}}
+
{{#if: {{{quotes|}}} | {{{quotes}}}<br> }}
 +
{{#ifexist: {{PAGENAME}} Quotes | {{:{{PAGENAME}} Quotes}}<br> }}
 +
{{#formlink:form=Add Quotes|target={{PAGENAME}} Quotes|popup|reload|link text=Edit quotes: add your own!}}
  
  <!-- Members Section: dynamically lists all PCs in this group -->
+
<!-- Members section -->
  {{#ifexist:Category:{{PAGENAME}}|
+
== <span class="coterie-header-text">Members</span> ==
    == Members ==
+
<div class="coterie-members">
    {{#ask: [[Category:{{PAGENAME}}]]
+
{{#if: {{{members|}}} | {{{members}}} | * No members added yet. }}
      |?Player
+
</div>
      |mainlabe
+
 
 +
</div>
 +
 
 +
<!-- Auto-categorization -->
 +
[[Category:Coterie]]
 +
 
 +
{{#css:
 +
.coterie-container {
 +
  background: #778;
 +
  color: #DDD;
 +
  border: 2px solid #600;
 +
  padding: 1em;
 +
  font-family: 'Belleza', sans-serif;
 +
}
 +
.coterie-header {
 +
  text-align: center;
 +
  margin-bottom: 20px;
 +
}
 +
.coterie-title {
 +
  font-size: 2.5em;
 +
  font-family: "Limelight", cursive;
 +
  color: #C33;
 +
  margin-bottom: 10px;
 +
}
 +
.coterie-header-text {
 +
  color: #C33;
 +
}
 +
.coterie-image img {
 +
  max-width: 80%;
 +
  height: auto;
 +
  border: 3px solid #600;
 +
  border-radius: 10px;
 +
  margin-top: 10px;
 +
}
 +
.coterie-members {
 +
  margin-left: 1em;
 +
}
 +
}}
 +
</includeonly>

Latest revision as of 02:12, 1 February 2026

This is the "Coterie" template, used for pages defining coteries. It should be called in the following format:

{{Coterie
|titlepic=
|description=
|reputation=
|rumors=
|quotes=
|members=
}}

Edit the page to see the template text.