Template:Navbox stats: Difference between revisions

From PZwiki
m (Add occupations)
(Move occupations higher)
Line 71: Line 71:
     }}
     }}
   | id = navbox_skills
   | id = navbox_skills
  }}{{Navbox
| title = {{ll|:Category:Occupations|{{tt|name=Navbox stats|default=Occupations|arg1=occupations}}}}
  | collapsed = {{#ifeq:{{lc:{{{1|}}}}}|occupation|false|true}}
  | content =
    {{Navbox/row
    | group = {{ll|:Category:Occupations|{{tt|name=Navbox stats|default=Occupations|arg1=occupations}}}}
    | list = {{ll|Burger Flipper}} • {{ll|Burglar (occupation)}} • {{ll|Carpenter}} • {{ll|Chef}} • {{ll|Construction Worker}} • {{ll|Doctor}} • {{ll|Electrician}} • {{ll|Engineer}} • {{ll|Farmer}} • {{ll|Fire Officer}} • {{ll|Fisherman}} • {{ll|Fitness Instructor}} • {{ll|Lumberjack}} • {{ll|Mechanic}} • {{ll|Metalworker}} • {{ll|Nurse}} • {{ll|Park Ranger}} • {{ll|Police Officer}} • {{ll|Repairman}} • {{ll|Security Guard}} • {{ll|Unemployed}} • {{ll|Veteran}}
    }}
  | id = navbox_occupations
   }}{{Navbox
   }}{{Navbox
| title = {{ll|:Category:Traits|{{tt|name=Navbox stats|default=Traits|arg1=traits}}}}
| title = {{ll|:Category:Traits|{{tt|name=Navbox stats|default=Traits|arg1=traits}}}}
Line 93: Line 102:
     }}
     }}
   | id = navbox_moodles
   | id = navbox_moodles
  }}{{Navbox
| title = {{ll|:Category:Occupations|{{tt|name=Navbox stats|default=Occupations|arg1=occupations}}}}
  | collapsed = {{#ifeq:{{lc:{{{1|}}}}}|occupation|false|true}}
  | content =
    {{Navbox/row
    | group = {{ll|:Category:Occupations|{{tt|name=Navbox stats|default=Occupations|arg1=occupations}}}}
    | list = {{ll|Burger Flipper}} • {{ll|Burglar (occupation)}} • {{ll|Carpenter}} • {{ll|Chef}} • {{ll|Construction Worker}} • {{ll|Doctor}} • {{ll|Electrician}} • {{ll|Engineer}} • {{ll|Farmer}} • {{ll|Fire Officer}} • {{ll|Fisherman}} • {{ll|Fitness Instructor}} • {{ll|Lumberjack}} • {{ll|Mechanic}} • {{ll|Metalworker}} • {{ll|Nurse}} • {{ll|Park Ranger}} • {{ll|Police Officer}} • {{ll|Repairman}} • {{ll|Security Guard}} • {{ll|Unemployed}} • {{ll|Veteran}}
    }}
  | id = navbox_occupations
   }}
   }}
| id = navbox_stats
| id = navbox_stats
}}</includeonly>
}}</includeonly>

Revision as of 21:40, 19 April 2024

Notebook.pngTemplate Documentation

This template should be transcluded at the bottom of all character stat pages.

Parameters

The parameters are based on the type of article. The usable parameters are;

  • skills
  • traits
  • moodles

The parameters are not case sensitive, but lowercase is recommended. Leaving parameters blank will result in both sub boxes remaining closed.

Usage

{{Navbox stats}}

{{Navbox stats|traits}}

How to translate

This template is translatable.

Template code

Paste the following code into the <includeonly> tag of the translated template and translate the text after each = sign (except for #default =).

{{#switch: {{{1|}}}
| character_statistics = Character statistics
| skills = Skills
| passive = Passive
| agility = Agility
| combat = Combat
| crafting = Crafting
| firearm = Firearm
| survivalist = Survivalist
| positive_traits = Positive traits
| negative_traits = Negative traits
| moodles = Moodles
| #default = [[Category:Incorrect template usage]]
}}

Template documentation

Copy the code wrapped in the <noinclude> tag in this template and translate the text after doc = in the {{Documentation}} template.

{{Translation guide}} template should be removed from the translated documentation.

See also

Editors can experiment in this template's sandbox.