Difference between revisions of "Template:PlayerMemberSince/doc"

From QWiki
m (Updated docs for setting colors)
m (Added width option (default 310px))
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
This code:
 
This code:
 
  <nowiki>{{PlayerMemberSince|Avenger|pl|2002}}</nowiki>
 
  <nowiki>{{PlayerMemberSince|Avenger|pl|2002}}</nowiki>
 +
<nowiki>{{PlayerMemberSince|Avenger|pl|2002|width=400}}</nowiki>
 
  <nowiki>{{PlayerMemberSince|ParadokS|dk|}} </nowiki>
 
  <nowiki>{{PlayerMemberSince|ParadokS|dk|}} </nowiki>
 
  <nowiki>{{PlayerMemberSince|||}} </nowiki>
 
  <nowiki>{{PlayerMemberSince|||}} </nowiki>
Line 11: Line 12:
 
  <nowiki>{{PlayerMemberSince|Modemkorv|de|2009|style=blue}} </nowiki>
 
  <nowiki>{{PlayerMemberSince|Modemkorv|de|2009|style=blue}} </nowiki>
 
  <nowiki>{{PlayerMemberSince|Modemkorv|de|2009|style=purple}} </nowiki>
 
  <nowiki>{{PlayerMemberSince|Modemkorv|de|2009|style=purple}} </nowiki>
 +
<nowiki>{{PlayerMemberSince|Modemkorv|de|2009|style=yellow}} </nowiki>
 
Returns this:
 
Returns this:
 
{{PlayerMemberSince|Avenger|pl|2002}}
 
{{PlayerMemberSince|Avenger|pl|2002}}
 +
{{PlayerMemberSince|Avenger|pl|2002|width=400}}
 
{{PlayerMemberSince|ParadokS|dk|}}
 
{{PlayerMemberSince|ParadokS|dk|}}
 
{{PlayerMemberSince|||}}
 
{{PlayerMemberSince|||}}
Line 21: Line 24:
 
{{PlayerMemberSince|Modemkorv|de|2009|style=blue}}
 
{{PlayerMemberSince|Modemkorv|de|2009|style=blue}}
 
{{PlayerMemberSince|Modemkorv|de|2009|style=purple}}
 
{{PlayerMemberSince|Modemkorv|de|2009|style=purple}}
# Default (name as link)''
+
{{PlayerMemberSince|Modemkorv|de|2009|style=yellow}}
# Leave year empty (shows no year)''
+
# Default (name as link)
# Leave all empty (shows TBD/noflag/noyear)''
+
# Default with custom width (default is 310px)
# <code>|style=inactive</code> set box style to inactive''
+
# Leave year empty (shows no year)
# <code>|style=red</code> set box style to red''
+
# Leave all empty (shows TBD/noflag/noyear)
# <code>|style=green</code> set box style to green''
+
# <code>|style=inactive</code> set box style to inactive
# <code>|style=blue</code> set box style to blue''
+
# <code>|style=red</code> set box style to red
# <code>|style=purple</code> set box style to purple''
+
# <code>|style=green</code> set box style to green
 +
# <code>|style=blue</code> set box style to blue
 +
# <code>|style=purple</code> set box style to purple
 +
# <code>|style=yellow</code> set box style to yellow

Latest revision as of 07:57, 16 October 2024

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)
Germany  Modemkorv Joined 2009 (15 years)
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