User:Vaileasys/sandbox: Difference between revisions

From PZwiki
(progress to new Template:Infobox_item)
(add more todo and vector-2022.css)
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox
<div class="sitenotice-card">
|bodystyle  = width:350px; -moz-box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}};    <!-- Firefox
<div class="image-container-left">
                        --> -webkit-box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}}; <!-- Safari & Chrome
[[File:Spiffo rummage.png|64px]]
                        --> box-shadow: 0px 0px 2px 2px #{{Infobox nc|{{{name_colour|}}}}};        <!-- Opera & Edge
</div>
                        --> border: 1px solid #{{Infobox nc|{{{name_colour|}}}}};
<div>
'''Wiki maintenance!'''


| above      = <div style="background: #{{Infobox nc|{{{name_colour|}}}}}; <!--
The wiki will be undergoing some maintenance while we modify the default theme.<br>
                        --> padding: 5px; font-weight: bold; <!--
Notice any oddities or want to provide feedback? Let us know on the [[PZwiki_talk:Community_portal/Wiki_theme|discussion page]] or the [https://discord.com/channels/136501320340209664/473467044050894858 pzwiki discord channel].
                        --> text-align: center; font-size: 120%; <!--
</div>
                        --> color:#{{Infobox nc|{{{name_text_colour|}}}|text}};"> <!--
<div class="image-container-right">
                        --> <span class="fn">{{Translation|{{{name|{{{display_name|}}}{{BASEPAGENAME}}}}}}}</span></div>
[[File:Be crafty.png|64px]]
</div>
</div>


| image      = {{#if: {{{model|}}}|[[File:{{{model}}}{{!}}{{Translation|{{{display_name|{{{name|}}}}}}}}{{!}}{{{model_width|200px}}}{{!}}class=pixelart]]|<!--
'''[[MediaWiki:Common.css|Common.css]]'''
          --> {{#if: {{{image|}}}|[[File:{{{image}}}|{{Translation|{{{display_name|{{{name|}}}}}}}}|{{{image_width|128px}}}|class=pixelart]]}} }}
<syntaxhighlight lang="css">
| caption    = {{#if: {{{image_caption|{{{model_caption|}}}}}}|{{{image_caption|{{{model_caption|}}}}}}}}
/* Mediawiki:Sitenotice */
.sitenotice-card {
    display: flex;
    justify-content: space-between;
    align-items: center
    text-align: center;
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eaecf0;
    width: auto;
}


| image2    = {{#if: {{{alternate_image|{{{alternate_image2|{{{alternate_image3|{{{alternate_image4|{{{alternate_image5|{{{alternate_image6|{{{alternate_image7|{{{alternate_image8|{{{alt_image|{{{alt_image2|{{{alt_image3|{{{alt_image4|{{{alt_image5|{{{alt_image6|{{{alt_image7|{{{alt_image8|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} <!-- check if any alternate images exist -->
.sitenotice-card > div {
|<table style="margin:auto; border-spacing:4px 2px;"><tr> <!-- create table and table row --> <!--
    display: flex;
alt_image
    flex-direction: column
-->{{#if: {{{alternate_image|{{{alt_image|}}}}}}
}
  |<td style="width:32px; padding:2px; background-color:#eee; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;"> <!--
                        --> [[File:{{{alternate_image|{{{alt_image}}}}}}{{#if:{{{alternate_link|{{{alt_link|}}}}}}|{{!}}link={{{alternate_link|{{{alt_link}}}}}}}}{{#if: {{{alternate_name|{{{alt_name|}}}}}} |{{!}}{{Translation|{{{alternate_name|{{{alt_name}}}}}}}} }}|{{{alternate_width|{{{alt_width|32px}}}}}}]]</td>}}<!--
alt_image2
-->{{#if: {{{alternate_image2|{{{alt_image2|}}}}}}
  |<td style="width:32px; padding:2px; background-color:#eee; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;"> <!--
                        --> [[File:{{{alternate_image2|{{{alt_image2}}}}}}{{#if:{{{alternate_link2|{{{alt_link2|}}}}}}|{{!}}link={{{alternate_link2|{{{alt_link2}}}}}}}}{{#if: {{{alternate_name2|{{{alt_name2|}}}}}} |{{!}}{{Translation|{{{alternate_name2|{{{alt_name2}}}}}}}} }}|{{{alternate_width2|{{{alt_width2|32px}}}}}}]]</td>}}<!--
alt_image3
-->{{#if: {{{alternate_image3|{{{alt_image3|}}}}}}
  |<td style="width:32px; padding:2px; background-color:#eee; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;"> <!--
                        --> [[File:{{{alternate_image3|{{{alt_image3}}}}}}{{#if:{{{alternate_link3|{{{alt_link3|}}}}}}|{{!}}link={{{alternate_link3|{{{alt_link3}}}}}}}}{{#if: {{{alternate_name3|{{{alt_name3|}}}}}} |{{!}}{{Translation|{{{alternate_name3|{{{alt_name3}}}}}}}} }}|{{{alternate_width3|{{{alt_width3|32px}}}}}}]]</td>}}<!--
alt_image4
-->{{#if: {{{alternate_image4|{{{alt_image4|}}}}}}
  |<td style="width:32px; padding:2px; background-color:#eee; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;"> <!--
                        --> [[File:{{{alternate_image4|{{{alt_image4}}}}}}{{#if:{{{alternate_link4|{{{alt_link4|}}}}}}|{{!}}link={{{alternate_link4|{{{alt_link4}}}}}}}}{{#if: {{{alternate_name4|{{{alt_name4|}}}}}} |{{!}}{{Translation|{{{alternate_name4|{{{alt_name4}}}}}}}} }}|{{{alternate_width4|{{{alt_width4|32px}}}}}}]]</td>}}<!--
alt_image5
-->{{#if: {{{alternate_image5|{{{alt_image5|}}}}}}
  |<td style="width:32px; padding:2px; background-color:#eee; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;"> <!--
                        --> [[File:{{{alternate_image5|{{{alt_image5}}}}}}{{#if:{{{alternate_link5|{{{alt_link5|}}}}}}|{{!}}link={{{alternate_link5|{{{alt_link5}}}}}}}}{{#if: {{{alternate_name5|{{{alt_name5|}}}}}} |{{!}}{{Translation|{{{alternate_name5|{{{alt_name5}}}}}}}} }}|{{{alternate_width5|{{{alt_width5|32px}}}}}}]]</td>}}<!--
alt_image6
-->{{#if: {{{alternate_image6|{{{alt_image6|}}}}}}
  |<td style="width:32px; padding:2px; background-color:#eee; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;"> <!--
                        --> [[File:{{{alternate_image6|{{{alt_image6}}}}}}{{#if:{{{alternate_link6|{{{alt_link6|}}}}}}|{{!}}link={{{alternate_link6|{{{alt_link6}}}}}}}}{{#if: {{{alternate_name6|{{{alt_name6|}}}}}} |{{!}}{{Translation|{{{alternate_name6|{{{alt_name6}}}}}}}} }}|{{{alternate_width6|{{{alt_width6|32px}}}}}}]]</td>}}<!--
alt_image7
-->{{#if: {{{alternate_image7|{{{alt_image7|}}}}}}
  |<td style="width:32px; padding:2px; background-color:#eee; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;"> <!--
                        --> [[File:{{{alternate_image7|{{{alt_image7}}}}}}{{#if:{{{alternate_link7|{{{alt_link7|}}}}}}|{{!}}link={{{alternate_link7|{{{alt_link7}}}}}}}}{{#if: {{{alternate_name7|{{{alt_name7|}}}}}} |{{!}}{{Translation|{{{alternate_name7|{{{alt_name7}}}}}}}} }}|{{{alternate_width7|{{{alt_width7|32px}}}}}}]]</td>}}<!--
alt_image8
-->{{#if: {{{alternate_image8|{{{alt_image8|}}}}}}
  |<td style="width:32px; padding:2px; background-color:#eee; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;"> <!--
                        --> [[File:{{{alternate_image8|{{{alt_image8}}}}}}{{#if:{{{alternate_link8|{{{alt_link8|}}}}}}|{{!}}link={{{alternate_link8|{{{alt_link8}}}}}}}}{{#if: {{{alternate_name8|{{{alt_name8|}}}}}} |{{!}}{{Translation|{{{alternate_name8|{{{alt_name8}}}}}}}} }}|{{{alternate_width8|{{{alt_width8|32px}}}}}}]]</td>}}
</tr></table>}}
{{#if: {{{alternate_image9|{{{alternate_image10|{{{alternate_image11|{{{alternate_image12|{{{alternate_image13|{{{alternate_image14|{{{alternate_image15|{{{alternate_image16|{{{alt_image9|{{{alt_image10|{{{alt_image11|{{{alt_image12|{{{alt_image13|{{{alt_image14|{{{alt_image15|{{{alt_image16|}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} <!-- check if alternate images 9-16 exist -->
|<table style="margin:auto; border-spacing:4px 2px;"><tr> <!-- create table and new table row --> <!--
alt_image9
-->{{#if: {{{alternate_image9|{{{alt_image9|}}}}}}
  |<td style="width:32px; padding:2px; background-color:#eee; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;"> <!--
                        --> [[File:{{{alternate_image9|{{{alt_image9}}}}}}{{#if:{{{alternate_link9|{{{alt_link9|}}}}}}|{{!}}link={{{alternate_link9|{{{alt_link9}}}}}}}}{{#if: {{{alternate_name9|{{{alt_name9|}}}}}} |{{!}}{{Translation|{{{alternate_name9|{{{alt_name9}}}}}}}} }}|{{{alternate_width9|{{{alt_width9|32px}}}}}}]]</td>}} <!--
alt_image10
-->{{#if: {{{alternate_image10|{{{alt_image10|}}}}}}
  |<td style="width:32px; padding:2px; background-color:#eee; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;"> <!--
                        --> [[File:{{{alternate_image10|{{{alt_image10}}}}}}{{#if:{{{alternate_link10|{{{alt_link10|}}}}}}|{{!}}link={{{alternate_link10|{{{alt_link10}}}}}}}}{{#if: {{{alternate_name10|{{{alt_name10|}}}}}} |{{!}}{{Translation|{{{alternate_name10|{{{alt_name10}}}}}}}} }}|{{{alternate_width10|{{{alt_width10|32px}}}}}}]]</td>}} <!--
alt_image11
-->{{#if: {{{alternate_image11|{{{alt_image11|}}}}}}
  |<td style="width:32px; padding:2px; background-color:#eee; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;"> <!--
                        --> [[File:{{{alternate_image11|{{{alt_image11}}}}}}{{#if:{{{alternate_link11|{{{alt_link11|}}}}}}|{{!}}link={{{alternate_link11|{{{alt_link11}}}}}}}}{{#if: {{{alternate_name11|{{{alt_name11|}}}}}} |{{!}}{{Translation|{{{alternate_name11|{{{alt_name11}}}}}}}} }}|{{{alternate_width11|{{{alt_width11|32px}}}}}}]]</td>}} <!--
alt_image12
-->{{#if: {{{alternate_image12|{{{alt_image12|}}}}}}
  |<td style="width:32px; padding:2px; background-color:#eee; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;"> <!--
                        --> [[File:{{{alternate_image12|{{{alt_image12}}}}}}{{#if:{{{alternate_link12|{{{alt_link12|}}}}}}|{{!}}link={{{alternate_link12|{{{alt_link12}}}}}}}}{{#if: {{{alternate_name12|{{{alt_name12|}}}}}} |{{!}}{{Translation|{{{alternate_name12|{{{alt_name12}}}}}}}} }}|{{{alternate_width12|{{{alt_width12|32px}}}}}}]]</td>}} <!--
alt_image13
-->{{#if: {{{alternate_image13|{{{alt_image13|}}}}}}
  |<td style="width:32px; padding:2px; background-color:#eee; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;"> <!--
                        --> [[File:{{{alternate_image13|{{{alt_image13}}}}}}{{#if:{{{alternate_link13|{{{alt_link13|}}}}}}|{{!}}link={{{alternate_link13|{{{alt_link13}}}}}}}}{{#if: {{{alternate_name13|{{{alt_name13|}}}}}} |{{!}}{{Translation|{{{alternate_name13|{{{alt_name13}}}}}}}} }}|{{{alternate_width13|{{{alt_width13|32px}}}}}}]]</td>}} <!--
alt_image14
-->{{#if: {{{alternate_image14|{{{alt_image14|}}}}}}
  |<td style="width:32px; padding:2px; background-color:#eee; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;"> <!--
                        --> [[File:{{{alternate_image14|{{{alt_image14}}}}}}{{#if:{{{alternate_link14|{{{alt_link14|}}}}}}|{{!}}link={{{alternate_link14|{{{alt_link14}}}}}}}}{{#if: {{{alternate_name14|{{{alt_name14|}}}}}} |{{!}}{{Translation|{{{alternate_name14|{{{alt_name14}}}}}}}} }}|{{{alternate_width14|{{{alt_width14|32px}}}}}}]]</td>}} <!--
alt_image15
-->{{#if: {{{alternate_image15|{{{alt_image15|}}}}}}
  |<td style="width:32px; padding:2px; background-color:#eee; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;"> <!--
                        --> [[File:{{{alternate_image15|{{{alt_image15}}}}}}{{#if:{{{alternate_link15|{{{alt_link15|}}}}}}|{{!}}link={{{alternate_link15|{{{alt_link15}}}}}}}}{{#if: {{{alternate_name15|{{{alt_name15|}}}}}} |{{!}}{{Translation|{{{alternate_name15|{{{alt_name15}}}}}}}} }}|{{{alternate_width15|{{{alt_width15|32px}}}}}}]]</td>}} <!--
alt_image16
-->{{#if: {{{alternate_image16|{{{alt_image16|}}}}}}
  |<td style="width:32px; padding:2px; background-color:#eee; border: 1px solid #{{Infobox nc|{{{name_colour|}}}}}; margin:auto;"> <!--
                        --> [[File:{{{alternate_image16|{{{alt_image16}}}}}}{{#if:{{{alternate_link16|{{{alt_link16|}}}}}}|{{!}}link={{{alternate_link16|{{{alt_link16}}}}}}}}{{#if: {{{alternate_name16|{{{alt_name16|}}}}}} |{{!}}{{Translation|{{{alternate_name16|{{{alt_name16}}}}}}}} }}|{{{alternate_width16|{{{alt_width16|32px}}}}}}]]</td>}}
</tr></table>}}


| imagestyle = padding:10px;
.sitenotice-card .image-container-left {
| headerstyle = background-color: #{{Infobox nc|{{{name_colour|}}}}}; color: #{{Infobox nc|{{{name_text_colour|}}}|text}};
    margin-right: 1rem
| labelstyle = background-color:#eee; width:50%;
}
| datastyle  = width:50%;


<!-- ## GENERAL ## -->
.sitenotice-card .image-container-right {
| header1    = {{Translation|General}}
    margin-left: 1rem
}
/* hide images if screen size is less than 720px */
@media screen and (max-width: 719px) {
    .sitenotice-card .image-container-left,
    .sitenotice-card .image-container-right {
        display:none
    }
}
</syntaxhighlight>


| label2    = {{Translation|Category}}
'''[[MediaWiki:Vector-2022.css|Vector-2022.css]]'''
| data2      = {{{category|}}}
<syntaxhighlight lang="css">
.vector-sitenotice-container {
    display: flex;
    justify-content: center;
    align-items: center;
}


| label3     = {{Translation|Equipped}}
.sitenotice-card {
| data3      = {{{equipped|}}}
    box-sizing: border-box;
    max-width: 1000px;
     width: 944px;
}
</syntaxhighlight>


| label4    = {{Translation|Secondary}}
===TODO===
| data4      = {{{secondary_item|}}}
*add <code>class="text-container"</code> for div with the text, so it can be modified per skin.
 
<syntaxhighLight lang="css">
| label5    = {{Translation|Body location}}
.sitenotice-card .text-container {
| data5      = {{{body_location|}}}
     /* styles go here */
 
}
| label6    = {{Translation|Slots added}}
</syntaxhighlight>
| data6      = {{{attachments_provided|}}}
*consider adding {{code|<p>}} or {{code|<div>}} tag with <code>class="title"</code> for styling the title.
 
<syntaxhighLight lang="css">
| label7    = {{Translation|Used in}}
.sitenotice-card .text-container .title {
| data7      = {{{weapons|}}} <!-- TODO: add weapon# (1-5) -->
    /* styles go here */
 
}
| label8    = {{Translation|Part type}}
</syntaxhighlight>
| data8      = {{{part_type|}}}
*create an [[MediaWiki:Anonnotice|anonnotice]] for users that aren't logged in
 
**wording will be adjusted directing them to create an account to change the theme
| label9    = {{Translation|Skill type}}
*Once style implemented, modify to advise how to change the theme
| data9      = {{{skill_type|}}}
 
| label10    = {{Translation|Ammunition}}
| data10    = {{{ammo|}}}
 
| label11    = {{Translation|Magazine size}}
| data11    = {{{clip_size|}}}
 
<!-- ## CHARACTERISTICS ## -->
| header31  = {{Translation|Characteristics}}
 
| label32    = {{Translation|Encumbrance}}
| data32    = {{{weight|}}}
 
| label33    = {{Translation|Contents}}
| data33    = {{{contents|}}}
 
| label34    = {{Translation|Max units}}
| data34    = {{{max_units|}}}
 
| label35    = {{Translation|Days fresh}}
| data35    = {{{days_fresh|}}}
 
| label36    = {{Translation|Days until rotten}}
| data36    = {{{days_rotten|}}}
 
| label37    = {{Translation|Can't be frozen}}
| data37    = {{{cant_be_frozen|}}}
 
| label38    = {{Translation|Packaged}}
| data38    = {{{packaged|}}}
 
| label39    = {{Translation|Weight reduction}}
| data39    = {{{weight_reduction|}}}
 
| label40    = {{Translation|Condition max.}}
| data40    = {{{condition_max|}}}
 
| label41    = {{Translation|Noise radius}}
| data41    = {{{sound_radius|}}}
 
| label42    = {{Translation|Recoil delay}}
| data42    = {{{recoil_delay|}}}
 
| label43    = {{Translation|Reload time}}
| data43    = {{{reload_time|}}}
 
| label44    = {{Translation|Aiming time}}
| data44    = {{{aiming_time|}}}
 
| label45    = {{Translation|Run speed}}
| data45    = {{{run_speed|}}}
 
| label46    = {{Translation|Combat speed}}
| data46    = {{{combat_speed|}}}
 
| label47    = {{Translation|Scratch defence}}
| data47    = {{{scratch_defense|}}}
 
| label48    = {{Translation|Bite defence}}
| data48    = {{{bite_defense|}}}
 
| label49    = {{Translation|Bullet defence}}
| data49    = {{{bullet_defense|}}}
 
| label50    = {{Translation|Neck protection}}
| data50    = {{{neck_protection|}}}
 
| label51    = {{Translation|Insulation}}
| data51    = {{{insulation|}}}
 
| label52    = {{Translation|Wind resistance}}
| data52    = {{{wind_resistance|}}}
 
| label53    = {{Translation|Water resistance}}
| data53    = {{{water_resistance|}}}
 
| label54    = {{Translation|Light distance}}
| data54    = {{{light_distance|}}}
 
| label55    = {{Translation|Light strength}}
| data55    = {{{light_strength|}}}
 
| label56    = {{Translation|Torch cone}}
| data56    = {{{torch_cone|}}}
 
| label57    = {{Translation|Sensor range}}
| data57    = {{{sensor_range|}}}
 
| label58    = {{Translation|Energy source}}
| data58    = {{{energy_source|}}}
 
| label59    = {{Translation|Portable}}
| data59    = {{{portable|}}}
 
| label60    = {{Translation|Two-way}}
| data60    = {{{two_way|}}}
 
| label61    = {{Translation|Mic range}}
| data61    = {{{mic_range|}}}
 
| label62    = {{Translation|Transmit range}}
| data62    = {{{transmit_range|}}}
 
| label63    = {{Translation|Frequency range}}
| data63    = {{#if:{{{min_channel|{{{max_channel|}}}}}}|{{{min_channel|}}}–{{{max_channel|}}}}}
 
<!-- ## DAMAGE ## -->
| header71  = {{Translation|Damage}}
 
| label72    = {{Translation|Damage type}}
| data72     = {{{damage_type|}}}
 
| label73    = {{Translation|Attack speed}}
| data73    = {{{base_speed|}}}
 
| label74    = {{Translation|Range}}
| data74    = {{#if:{{{min_range|{{{max_range|}}}}}}|{{{min_range|}}}–{{{max_range|}}}}}
 
| label75    = {{Translation|Damage}}
| data75    = {{#if:{{{min_damage|{{{max_damage|}}}}}}|{{{min_damage|}}}–{{{max_damage|}}}{{#if:{{{door_damage|}}}|<br>{{{door_damage|}}} <small>([[Door]]s)</small>}}{{#if:{{{tree_damage|}}}|<br>{{{tree_damage|}}} <small>([[Tree]]s)</small>}} }}
 
| label76    = {{Translation|Accuracy}}
| data76    = {{{hit_chance|}}}
 
| label77    = {{Translation|Crit chance}}
| data77    = {{#if:{{{crit_chance|}}}|{{#if:{{{crit_multiplier|}}}|{{tooltip|{{{crit_chance}}}%|Damage multiplied by {{{crit_multiplier}}}}}|{{{crit_chance}}}%}}}}
 
| label78    = {{Translation|Knockback}}
| data78    = {{{push_back|}}}
 
| label79    = {{Translation|Knockdown}}
| data79    = {{{knockdown|}}}
 
| label80    = {{Translation|Execution}}
| data80    = {{{kill_move|}}}
 
| label81    = {{Translation|{{{effect_type}}}}} {{Translation|power}}
| data81    = {{{effect_power|}}}
 
| label82    = {{Translation|{{{effect_type}}}}} {{Translation|range}}
| data82    = {{#if:{{{effect_range|}}}|{{{effect_range}}} {{Translation|tiles}}}}
 
| label83    = {{Translation|{{{effect_type}}}}} {{Translation|timer}}
| data83    = {{{effect_timer|}}}
 
<!-- ## NUTRITION ## -->
| header91  = {{Translation|Nutrition}}
 
| label92 = {{Translation|Hunger}} [[File:Moodle_Icon_Hungry.png|right|link=Moodles{{Subpage}}#{{Translation|Hungry}}|{{Translation|Hunger}}]]
| data92 = {{{hunger_change|}}}
 
| label93 = {{Translation|Thirst}} [[File:Moodle_Icon_Thirsty.png|right|link=Moodles{{Subpage}}#{{Translation|Thirsty}}|{{Translation|Thirst}}]]
| data93 = {{{thirst_change|}}}
 
| label94 = {{Translation|Calories}} [[File:UI_Calories.png|24px|right|link=Nutrition{{Subpage}}#{{Translation|Calories}}|{{Translation|Calories}}]]
| data94 = {{{calories|}}}
 
| label95 = {{Translation|Carbohydrates}} [[File:UI_Carbohydrates.png|24px|right|link=Nutrition{{Subpage}}#{{Translation|Carbohydrates}}|{{Translation|Carbohydrates}}]]
| data95 = {{{carbohydrates|}}}
 
| label96 = {{Translation|Proteins}} [[File:UI_Protein.png|24px|right|link=Nutrition{{Subpage}}#{{Translation|Proteins}}|{{Translation|Proteins}}]]
| data96 = {{{proteins|}}}
 
| label97 = {{Translation|Fat}} [[File:UI_Fats.png|24px|right|link=Nutrition{{Subpage}}#{{Translation|Lipids}}|{{Translation|Fat}}]]
| data97 = {{{lipids|{{{fat|}}}}}}
 
<!-- ## EFFECT ## -->
| header101  = {{Translation|Effect}}
 
| label102 = {{Translation|Unhappiness}} [[File:Moodle_Icon_Unhappy.png|right|link=Moodles{{Subpage}}#{{Translation|Unhappy}}|{{Translation|Unhappiness}}]]
| data102 = {{{unhappy_change|}}}
 
| label103 = {{Translation|Boredom}} [[File:Moodle_Icon_Bored.png|right|link=Moodles{{Subpage}}#{{Translation|Bored}}|{{Translation|Boredom}}]]
| data103= {{{boredom_change|}}}
 
| label104 = {{Translation|Stress}} [[File:Moodle_Icon_Stressed.png|right|link=Moodles{{Subpage}}#{{Translation|Stressed}}|{{Translation|Stress}}]]
| data104 = {{{stress_change|}}}
 
| label105 = {{Translation|Fatigue}} [[File:Moodle_Icon_Tired.png|right|link=Moodles{{Subpage}}#{{Translation|Tired}}|{{Translation|Tired}}]]
| data105 = {{{fatigue_change|}}}
 
| label106 = {{Translation|Endurance}} [[File:Moodle_Icon_Endurance.png|right|link=Moodles{{Subpage}}#{{Translation|Endurance}}|{{Translation|Endurnace}}]]
| data106 = {{{endurance_change|}}}
 
| label107 = {{Translation|Cold}} [[File:Moodle_Icon_Cold.png|right|link=Moodles{{Subpage}}#{{Translation|Cold}}|{{Translation|Cold}}]]
| data107 = {{{flu_change|}}}
 
| label108 = {{Translation|Pain}} [[File:Moodle_Icon_Pain.png|right|link=Moodles{{Subpage}}#{{Translation|Pain}}|{{Translation|Pain}}]]
| data108 = {{{pain_change|}}}
 
| label109 = {{Translation|Sick}} [[File:Moodle_Icon_Sick.png|right|link=Moodles{{Subpage}}#{{Translation|Sick}}|{{Translation|Sick}}]]
| data109 = {{{sick_change|}}}
 
| label110 = {{Translation|Alcohol}} [[File:Moodle_Icon_Drunk.png|right|Moodles{{Subpage}}#{{Translation|Drunk}}|{{Translation|Drunk}}]]
| data110 = {{{alcoholic|}}}
 
| label111 = {{Translation|Alcohol power}} [[File:Alcohol.png|right|link=First Aid{{Subpage}}#{{Translation|Disinfection}}|{{Translation|Disinfection}}]]
| data111 = {{{alcohol_power|}}}
 
| label112 = {{Translation|Antibiotic level}} [[File:Antibiotics.png|right|link=Health{{Subpage}}#{{Translation|Infections}}|{{Translation|Infections}}]]
| data112 = {{{reduce_infection_power|}}}
 
| label113 = {{Translation|Bandage power}} [[File:Moodle_bleeding.png|right|link=Moodles{{Subpage}}#{{Translation|Bleeding}}|{{Translation|Bleeding}}]]
| data113 = {{{bandage_power|}}}
 
| label114 = <div style="Padding-right:11px;">{{Translation|Poison}} [[File:SkullPoison.png|right]]</div>
| data114 = {{{poison_power|}}}
 
<!-- ## COOKING ## -->
| header121  = {{Translation|Cooking}}
 
<!-- ## MODIFIERS ## -->
| header131  = {{Translation|Modifiers}}
 
<!-- ## USAGE ## -->
| header151  = {{Translation|Usage}}
 
<!-- ## CRAFTING ## -->
| header171  = {{Translation|Crafting}}
 
<!-- ## TECHNICAL ## -->
| header181  = {{Translation|Technical}}
 
| label182    = {{Translation|Item ID}}
| data182    = {{#if:{{{class_name|{{{item_id|}}}}}}|{{ID|{{{class_name|{{{item_id}}}}}}}}|[[#{{Translation|Item IDs}}|{{Translation|Item IDs}}]]}}
 
}}<noinclude>{{User:Vaileasys/sandbox
|model=Image.png
|alt_image=Image.png
|alt_image2=Image.png
|alt_image3=Image.png
|alt_image4=Image.png
|alt_image5=Image.png
|alt_image6=Image.png
|alt_image7=Image.png
|alt_image8=Image.png
<!-- new row -->
|alt_image9=Image.png
|alt_image10=Image.png
|alt_image11=Image.png
|alt_image12=Image.png
|alt_image13=Image.png
|alt_image14=Image.png
|alt_image15=Image.png
|alt_image16=Image.png
<!--GENERAL-->
|category=category
|equipped=equipped
|secondary_item=secondary_item
|body_location=body_location
|attachments_provided=attachments_provided
|weapons=weapons
|part_type=part_type
|skill_type=skill_type
|ammo=ammo
|clip_size=clip_size
<!--CHARACTERISTICS-->
|weight=weight
|contents=contents
|max_units=max_units
|days_fresh=days_fresh
|days_rotten=days_rotten
|cant_be_frozen=cant_be_frozen
|packaged=packaged
|weight_reduction=weight_reduction
|condition_max=condition_max
|sound_radius=sound_radius
|recoil_delay=recoil_delay
|reload_time=reload_time
|aiming_time=aiming_time
|run_speed=run_speed
|combat_speed=combat_speed
|scratch_defense=scratch_defense
|bite_defense=bite_defense
|bullet_defense=bullet_defense
|neck_protection=neck_protection
|insulation=insulation
|wind_resistance=wind_resistance
|water_resistance=water_resistance
|light_distance=light_distance
|light_strength=light_strength
|torch_cone=torch_cone
|sensor_range=sensor_range
|energy_source=energy_source
|portable=portable
|two_way=two_way
|volume_range=volume_range
|mic_range=mic_range
|transmit_range=transmit_range
|min_channel=min_channel
|max_channel=max_channel
<!-- DAMAGE -->
| damage_type = damage_type
| base_speed = base_speed
| min_range = min_range
| max_range = max_range
| hit_chance = hit_chance
| min_damage = min_damage
| max_damage = max_damage
| crit_chance = crit_chance
| crit_multiplier = crit_multiplier
| tree_damage = tree_damage
| door_damage = door_damage
| push_back = push_back
| knockdown = knockdown
| kill_move = kill_move
| effect_power = effect_power
| effect_range = effect_range
| effect_timer = effect_timer
| effect_type = effect_type
<!-- NUTRITION -->
| hunger_change = hunger_change
| thirst_change = thirst_change
| calories = calories
| lipids = lipids
| proteins = proteins
| carbohydrates = carbohydrates
<!-- EFFECT -->
| unhappy_change = unhappy_change
| boredom_change = boredom_change
| stress_change = stress_change
| fatigue_change = fatigue_change
| endurance_change = endurance_change
| flu_change = flu_change
| pain_change = pain_change
| sick_change = sick_change
| alcoholic = alcoholic
| alcohol_power = alcohol_power
| reduce_infection_power = reduce_infection_power
| poison_power = poison_power
| bandage_power = bandage_power
<!--COOKING-->
 
<!--MODIFIERS-->
 
<!-- USAGE -->
 
<!-- CRAFTING -->
 
<!--TECHNICAL-->
| item_id = item_id
}}</noinclude>

Latest revision as of 09:40, 29 March 2024

Spiffo rummage.png

Wiki maintenance!

The wiki will be undergoing some maintenance while we modify the default theme.
Notice any oddities or want to provide feedback? Let us know on the discussion page or the pzwiki discord channel.

Be crafty.png

Common.css

/* Mediawiki:Sitenotice */
.sitenotice-card {
    display: flex;
    justify-content: space-between;
    align-items: center
    text-align: center;
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eaecf0;
    width: auto;
}

.sitenotice-card > div {
    display: flex;
    flex-direction: column
}

.sitenotice-card .image-container-left {
    margin-right: 1rem
}

.sitenotice-card .image-container-right {
    margin-left: 1rem
}
/* hide images if screen size is less than 720px */
@media screen and (max-width: 719px) {
    .sitenotice-card .image-container-left,
    .sitenotice-card .image-container-right {
        display:none
    }
}

Vector-2022.css

.vector-sitenotice-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sitenotice-card {
    box-sizing: border-box;
    max-width: 1000px;
    width: 944px;
}

TODO

  • add class="text-container" for div with the text, so it can be modified per skin.
.sitenotice-card .text-container {
    /* styles go here */
}
  • consider adding <p> or <div> tag with class="title" for styling the title.
.sitenotice-card .text-container .title {
    /* styles go here */
}
  • create an anonnotice for users that aren't logged in
    • wording will be adjusted directing them to create an account to change the theme
  • Once style implemented, modify to advise how to change the theme