Difference between revisions of "Template:PlayerMemberSince"

From QWiki
m (Error fix)
m (Added yellow color option)
Line 5: Line 5:
 
|blue = style="background: linear-gradient(90deg, #dde9ff 0%, #c8dcff 100%);border-radius:5px; box-shadow: 0 0 0 1px #92acd8;width:310px; height: 40px; margin-right: 0.2em; margin-bottom:0.5em;"
 
|blue = style="background: linear-gradient(90deg, #dde9ff 0%, #c8dcff 100%);border-radius:5px; box-shadow: 0 0 0 1px #92acd8;width:310px; height: 40px; margin-right: 0.2em; margin-bottom:0.5em;"
 
|green = style="background: linear-gradient(90deg, #eaffe1 0%, #e3ffd7 100%);border-radius:5px; box-shadow: 0 0 0 1px #a2be96;width:310px; height: 40px; margin-right: 0.2em; margin-bottom:0.5em;"
 
|green = style="background: linear-gradient(90deg, #eaffe1 0%, #e3ffd7 100%);border-radius:5px; box-shadow: 0 0 0 1px #a2be96;width:310px; height: 40px; margin-right: 0.2em; margin-bottom:0.5em;"
|purple = style="background: linear-gradient(90deg, #ede5ff 0%, #e6dbff 100%);border-radius:5px; box-shadow: 0 0 0 1px #c0bace;width:310px; height: 40px; margin-right: 0.2em; margin-bottom:0.5em;"
+
|purple = style="background: linear-gradient(90deg, #ede5ff 0%, #e6dbff 100%);border-radius:5px; box-shadow: 0 0 0  
 +
1px #c0bace;width:310px; height: 40px; margin-right: 0.2em; margin-bottom:0.5em;"
 +
|yellow = style="background: linear-gradient(90deg, #fff6dd 0%, #ffeebb 100%);border-radius:5px; box-shadow: 0 0 0
 +
1px #cdb878;width:310px; height: 40px; margin-right: 0.2em; margin-bottom:0.5em;"
 
| = style="background: linear-gradient(90deg, #f9f9f9 0%, #eeeeee 100%);border-radius:5px; box-shadow: 0 0 0 1px #eee;width:310px; height: 40px; margin-right: 0.2em; margin-bottom:0.5em;"
 
| = style="background: linear-gradient(90deg, #f9f9f9 0%, #eeeeee 100%);border-radius:5px; box-shadow: 0 0 0 1px #eee;width:310px; height: 40px; margin-right: 0.2em; margin-bottom:0.5em;"
 
}}
 
}}

Revision as of 07:20, 16 October 2024

Documentation (view - edit)

Used for clan members, to show their legacy in the clan.

Example

This code:

{{PlayerMemberSince|Avenger|pl|2002}}
{{PlayerMemberSince|Avenger|pl|2002|width=400}}
{{PlayerMemberSince|ParadokS|dk|}} 
{{PlayerMemberSince|||}} 
{{PlayerMemberSince|Modemkorv|de|2009}} 
{{PlayerMemberSince|Modemkorv|de|2009|style=inactive}} 
{{PlayerMemberSince|Modemkorv|de|2009|style=red}} 
{{PlayerMemberSince|Modemkorv|de|2009|style=green}} 
{{PlayerMemberSince|Modemkorv|de|2009|style=blue}} 
{{PlayerMemberSince|Modemkorv|de|2009|style=purple}} 
{{PlayerMemberSince|Modemkorv|de|2009|style=yellow}} 

Returns this:

Poland  Avenger Joined 2002 (22 years)
Poland  Avenger Joined 2002 (22 years)
Denmark  ParadokS
TBD
Germany  Modemkorv Joined 2009 (15 years)
Germany  Modemkorv Joined 2009 (15 years)
Germany  Modemkorv Joined 2009 (15 years)
Germany  Modemkorv Joined 2009 (15 years)
Germany  Modemkorv Joined 2009 (15 years)
1px #c0bace;width:310px; height: 40px; margin-right: 0.2em; margin-bottom:0.5em;"
Germany  Modemkorv Joined 2009 (15 years)
1px #cdb878;width:310px; height: 40px; margin-right: 0.2em; margin-bottom:0.5em;"
Germany  Modemkorv Joined 2009 (15 years)
  1. Default (name as link)
  2. Default with custom width (default is 310px)
  3. Leave year empty (shows no year)
  4. Leave all empty (shows TBD/noflag/noyear)
  5. |style=inactive set box style to inactive
  6. |style=red set box style to red
  7. |style=green set box style to green
  8. |style=blue set box style to blue
  9. |style=purple set box style to purple
  10. |style=yellow set box style to yellow