User:Vaileasys/sandbox: Difference between revisions

From PZwiki
mNo edit summary
(add more todo and vector-2022.css)
 
(30 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>|-
<div class="sitenotice-card">
| [[File:{{{productimage|product}}}]]<br>{{{product}}} {{#if: {{{qproduct|}}}|<span style="color:#666"><small>×{{{qproduct|}}}</small></span>}}
<div class="image-container-left">
|
[[File:Spiffo rummage.png|64px]]
{| width=100%
</div>
{{!}} {{#if:{{{image1|}}}|[[File:{{{image1}}}]]<br>}} {{{item1|}}}{{#if: {{{q1|}}}|<span style="color:#666"><small> ×{{{q1|}}}</small></span>}}{{#if: {{{item2|}}}| {{!}}{{!}} <span style="font-size:230%;">+</span></td>
<div>
{{!}} {{#if:{{{image2|}}}|[[File:{{{image2}}}]]<br>}} {{{item2|}}}{{#if: {{{q2|}}}|<span style="color:#666"><small> ×{{{q2|}}}</small></span>}}{{#if: {{{item3|}}}| {{!}}{{!}} <span style="font-size:230%;">+</span></td>
'''Wiki maintenance!'''
{{!}} {{#if:{{{image3|}}}|[[File:{{{image3}}}]]<br>}} {{{item3|}}}{{#if: {{{q3|}}}|<span style="color:#666"><small> ×{{{q3|}}}</small></span>}}{{#if: {{{item4|}}}| {{!}}{{!}} <span style="font-size:230%;">+</span></td>
 
{{!}} {{#if:{{{image4|}}}|[[File:{{{image4}}}]]<br>}} {{{item4|}}}{{#if: {{{q4|}}}|<span style="color:#666"><small> ×{{{q4|}}}</small></span>}}{{#if: {{{item5|}}}| {{!}}{{!}} <span style="font-size:230%;">+</span></td>
The wiki will be undergoing some maintenance while we modify the default theme.<br>
{{!}} {{#if:{{{image5|}}}|[[File:{{{image5}}}]]<br>}} {{{item5|}}}{{#if: {{{q5|}}}|<span style="color:#666"><small> ×{{{q5|}}}</small></span>}}{{#if: {{{item6|}}}| {{!}}{{!}} <span style="font-size:230%;">+</span></td>
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].
{{!}} {{#if:{{{image6|}}}|[[File:{{{image6}}}]]<br>}} {{{item6|}}}{{#if: {{{q6|}}}|<span style="color:#666"><small> ×{{{q6|}}}</small></span>}}{{#if: {{{item7|}}}| {{!}}{{!}} <span style="font-size:230%;">+</span></td>
</div>
{{!}} {{#if:{{{image7|}}}|[[File:{{{image7}}}]]<br>}} {{{item7|}}}{{#if: {{{q7|}}}|<span style="color:#666"><small> ×{{{q7|}}}</small></span>}}{{#if: {{{item8|}}}| {{!}}{{!}} <span style="font-size:230%;">+</span></td>
<div class="image-container-right">
{{!}} {{#if:{{{image8|}}}|[[File:{{{image8}}}]]<br>}} {{{item8|}}}{{#if: {{{q8|}}}|<span style="color:#666"><small> ×{{{q8|}}}</small></span>}}{{#if: {{{item9|}}}| {{!}}{{!}} <span style="font-size:230%;">+</span></td>
[[File:Be crafty.png|64px]]
{{!}} {{#if:{{{image9|}}}|[[File:{{{image9}}}]]<br>}} {{{item9|}}}{{#if: {{{q9|}}}|<span style="color:#666"><small> ×{{{q9|}}}</small></span>}}{{#if: {{{item10|}}}| {{!}}{{!}} <span style="font-size:230%;">+</span></td>
</div>
{{!}} {{#if:{{{image10|}}}|[[File:{{{image10}}}]]<br>}} {{{item10|}}}{{#if: {{{q10|}}}|<span style="color:#666"><small> ×{{{q10|}}}</small></span>}}}}}}}}}}}}}}}}}}}}
</div>
|}
 
| {{#if:{{{workstation|}}}|{{#if:{{{workstationimage|}}}|[[File:{{{workstationimage}}}]]<br>}}}} {{{workstation|}}}
'''[[MediaWiki:Common.css|Common.css]]'''
| {{#if:{{{equipment|}}}|{{#if:{{{equipmentimage|}}}|[[File:{{{equipmentimage}}}]]<br>}}}} {{{equipment|}}}
<syntaxhighlight lang="css">
| {{{time|}}}
/* Mediawiki:Sitenotice */
| {{#if:{{{recipe|}}}|{{#if:{{{recipeimage|}}}|[[File:{{{recipeimage}}}]]<br>}}}} {{{recipe|}}}
.sitenotice-card {
| {{#if:{{{skill|}}}|{{#if:{{{skillimage|}}}|[[File:{{{skillimage}}}]]<br>}}}} {{{skill|}}} {{#if:{{{skilllevel|}}}|Level {{{skilllevel|}}}}}</includeonly><noinclude>
    display: flex;
{| class="pztable" style="text-align:center;"  
    justify-content: space-between;
|-  
    align-items: center
! width=120px | Product
    text-align: center;
! style="min-width:200px" | Materials
    background-color: #f8f9fa;
! width=120px | Workstation
    padding: 0.5rem 1rem;
! width=120px | Equipment
    border-bottom: 1px solid #eaecf0;
! width=80px | Time
    width: auto;
! width=120px | Recipe
}
! width=150px | Skill
 
{{User:Vaileasys/sandbox
.sitenotice-card > div {
|image1=Pot.png |item1=[[Cooking Pot]] |q1=1
    display: flex;
|image2=Soup.png |item2=[[Canned Soup]] |q2=1
    flex-direction: column
|productimage=PotFull.png |product=[[Pot of Soup]] |qproduct=2
}
|workstationimage=Oven.png{{!}}32px |workstation=[[Oven]]           
 
|equipmentimage=CanOpener.png |equipment=[[Can Opener]]       
.sitenotice-card .image-container-left {
|time=1 hr
    margin-right: 1rem
|recipe=[[Recipe Magazines|Angler USA Magazine Vol.1]] |recipeimage=MagazineFish.png
}
|skill=[[Cooking]] |skilllevel=1}}
 
|}</noinclude>
.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
    }
}
</syntaxhighlight>
 
'''[[MediaWiki:Vector-2022.css|Vector-2022.css]]'''
<syntaxhighlight lang="css">
.vector-sitenotice-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
 
.sitenotice-card {
    box-sizing: border-box;
    max-width: 1000px;
    width: 944px;
}
</syntaxhighlight>
 
===TODO===
*add <code>class="text-container"</code> for div with the text, so it can be modified per skin.
<syntaxhighLight lang="css">
.sitenotice-card .text-container {
    /* styles go here */
}
</syntaxhighlight>
*consider adding {{code|<p>}} or {{code|<div>}} tag with <code>class="title"</code> for styling the title.
<syntaxhighLight lang="css">
.sitenotice-card .text-container .title {
    /* styles go here */
}
</syntaxhighlight>
*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
*Once style implemented, modify to advise how to change the theme

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