Difference between revisions of "Template:Coterie"

From End to Dawn
Jump to navigation Jump to search
(Created page with "<noinclude> This is the "Coterie" template. It should be called in the following format: <pre> {{Coterie |Coterie= |titlepic= |grouptype= |leader1= |leader1type= |leader2= |le...")
 
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the "Coterie" template.
+
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>
 
{{Coterie
 
{{Coterie
|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.
 
Edit the page to see the template text.
{{#cargo_declare:_table=Coterie|Coterie=Page|titlepic=File|grouptype=Text|leader1=Text|leader1type=Text|leader2=Text|leader2type=Text|leader3=Text|leader3type=Text|leader4=Text|leader4type=Text|leader5=Text|leader5type=Text|leader6=Text|leader6type=Text|reputation=Text|rumors=Text|quotes=Text}}
+
</noinclude>
</noinclude><includeonly>{{#cargo_store:_table=Coterie|Coterie={{{Coterie|}}}|titlepic={{{titlepic|}}}|grouptype={{{grouptype|}}}|leader1={{{leader1|}}}|leader1type={{{leader1type|}}}|leader2={{{leader2|}}}|leader2type={{{leader2type|}}}|leader3={{{leader3|}}}|leader3type={{{leader3type|}}}|leader4={{{leader4|}}}|leader4type={{{leader4type|}}}|leader5={{{leader5|}}}|leader5type={{{leader5type|}}}|leader6={{{leader6|}}}|leader6type={{{leader6type|}}}|reputation={{{reputation|}}}|rumors={{{rumors|}}}|quotes={{{quotes|}}} }}{| class="wikitable"
 
! Coterie Name
 
| {{#if:{{{Coterie|}}}|[[{{{Coterie|}}}]]}}
 
|-
 
! Title Picture
 
| {{#if:{{{titlepic|}}}|[[File:{{{titlepic|}}}]]}}
 
|-
 
! Group Type
 
| {{{grouptype|}}}
 
|-
 
! Leader 1
 
| {{{leader1|}}}
 
|-
 
! Leader 1 Type
 
| {{{leader1type|}}}
 
|-
 
! Leader 2
 
| {{{leader2|}}}
 
|-
 
! Leader 2 Type
 
| {{{leader2type|}}}
 
|-
 
! Leader 3
 
| {{{leader3|}}}
 
|-
 
! Leader 3 Type
 
| {{{leader3type|}}}
 
|-
 
! Leader 4
 
| {{{leader4|}}}
 
|-
 
! Leader 4 Type
 
| {{{leader4type|}}}
 
|-
 
! Leader 5
 
| {{{leader5|}}}
 
|-
 
! Leader 5 Type
 
| {{{leader5type|}}}
 
|-
 
! Leader 6
 
| {{{leader6|}}}
 
|-
 
! Leader 6 Type
 
| {{{leader6type|}}}
 
|-
 
! Reputation
 
| {{{reputation|}}}
 
|-
 
! Rumors
 
| {{{rumors|}}}
 
|-
 
! Quotes
 
| {{{quotes|}}}
 
|}
 
  
 +
<includeonly>__NOTOC__ __NOEDITSECTION__
 +
 +
<div class="coterie-container">
 +
 +
<!-- Header and image -->
 +
<div class="coterie-header">
 +
  <div class="coterie-title">{{PAGENAME}}</div>
 +
  <div class="coterie-image">
 +
    {{#if: {{{titlepic|}}}
 +
      | [[File:{{{titlepic}}}|center|600px]]
 +
      | {{#ifexist: File:{{PAGENAME}}.png
 +
          | [[File:{{PAGENAME}}.png|frameless|center|500px]]
 +
          | {{#ifexist: File:{{PAGENAME}}.jpg
 +
              | [[File:{{PAGENAME}}.jpg|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}}.webp
 +
                          | [[File:{{PAGENAME}}.webp|frameless|center|500px]]
 +
                        }}
 +
                    }}
 +
                }}
 +
            }}
 +
        }}
 +
    }}
 +
  </div>
 +
</div>
 +
 +
<!-- Description -->
 +
{{#if: {{{description|}}} |
 +
== <span class="coterie-header-text">Description</span> ==
 +
{{{description}}}
 +
}}
 +
 +
<!-- Reputation -->
 +
{{#if: {{{reputation|}}} |
 +
== <span class="coterie-header-text">Reputation</span> ==
 +
{{{reputation}}}
 +
}}
 +
 +
<!-- Rumors -->
 +
== <span class="coterie-header-text">Rumors</span> ==
 +
{{#if: {{{rumors|}}} | {{{rumors}}}<br> }}
 +
{{#ifexist: {{PAGENAME}} Rumors | {{:{{PAGENAME}} Rumors}}<br> }}
 +
{{#formlink:form=Add Rumors|target={{PAGENAME}} Rumors|popup|reload|link text=Edit rumors: add your own!}}
 +
 +
<!-- Quotes -->
 +
== <span class="coterie-header-text">Quotes</span> ==
 +
{{#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 -->
 +
== <span class="coterie-header-text">Members</span> ==
 +
<div class="coterie-members">
 +
{{#if: {{{members|}}} | {{{members}}} | * No members added yet. }}
 +
</div>
 +
 +
</div>
 +
 +
<!-- Auto-categorization -->
 
[[Category:Coterie]]
 
[[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>
 
</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.