Difference between revisions of "Template:PlayerMemberSince/doc"

From QWiki
m (Added yellow color option)
m (Added width option (default 310px))
 
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 14: Line 15:
 
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 23: Line 25:
 
{{PlayerMemberSince|Modemkorv|de|2009|style=purple}}
 
{{PlayerMemberSince|Modemkorv|de|2009|style=purple}}
 
{{PlayerMemberSince|Modemkorv|de|2009|style=yellow}}
 
{{PlayerMemberSince|Modemkorv|de|2009|style=yellow}}
# Default (name as link)''
+
# Default (name as link)
# Leave year empty (shows no year)''
+
# Default with custom width (default is 310px)
# Leave all empty (shows TBD/noflag/noyear)''
+
# Leave year empty (shows no year)
# <code>|style=inactive</code> set box style to inactive''
+
# Leave all empty (shows TBD/noflag/noyear)
# <code>|style=red</code> set box style to red''
+
# <code>|style=inactive</code> set box style to inactive
# <code>|style=green</code> set box style to green''
+
# <code>|style=red</code> set box style to red
# <code>|style=blue</code> set box style to blue''
+
# <code>|style=green</code> set box style to green
# <code>|style=purple</code> set box style to purple''
+
# <code>|style=blue</code> set box style to blue
# <code>|style=yellow</code> set box style to yellow''
+
# <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