Template:Navbox construction: Difference between revisions

From PZwiki
m (spacing fix)
(new navbox design. Temporarily using User:Vaileasys/sandbox to avoid breaking all pages)
Line 1: Line 1:
<noinclude>{{languages}}</noinclude>{{Navbox|1
<noinclude>{{languages|Template:Navbox/Construction}}</noinclude>{{User:Vaileasys/sandbox
|name=Navbox/Construction
|size = default
|main=[[:Category:Construction|Construction]]
|title = Construction
|title=[[:Category:Carpentry|Barriers]]
|group1 = Barriers
|content=[[Gravel Bag]] • [[Sandbag]] • [[Sandbag Wall]]
|list1 = [[Gravel Bag Wall]] &bull; [[Sandbag Wall]]
|extra={{Navbox|0|title=[[:Category:Camping|Camping]]|content=[[Tent Kit]] • [[Tent Peg]] [[Campfire Kit]]
|group2 = [[:Category:Camping|Camping]]
|extra={{Navbox|0|title=[[:Category:Carpentry|Carpentry]]|content=[[Bar Corner]] [[Bar Element]] [[Barbed Wire]] [[Barricade|Barricades (Wood)]] [[Bed]] [[Bookcase]] [[Crate]] [[Door]] [[Double Shelves]] • [[Drawer]] • [[Lamp on Pillar]] [[Large Table]] [[Log Wall]] [[Rain Collector Barrel]] [[Shelves]] [[Small Bookcase]] [[Small Table]] [[Stairs Piece]] [[Table_with_Drawer|Table Drawer]] [[Wooden Chair]] [[Wooden door frame|Wooden Door Frame]] [[Wooden Fence]] [[Wood Floor|Wooden Floor]] [[Wooden Sign]] [[Wooden Wall]] [[Wooden window frame|Wooden Window Frame]]
|list2 = [[Tent]] &bull; [[Campfire]]
|extra={{Navbox|0|title=[[:Category:Metalwork|Metalwork]]|content= [[Barricade|Barricades (Metal)]] [[Metal containers|Metal Containers]] [[Metal fences|Metal Fences]] [[Metal roof|Metal Roof]] [[Metal sheet|Metal Sheet]] [[Metal wall|Metal Wall]]
|group3 = [[Carpentry]]
}}}}}}}}<noinclude>
|list3 = [[Bar Corner]] &bull; [[Bar Element]] &bull; [[Barbed Fence]] &bull; [[Barricade|Barricade (Wood)]] &bull; [[Bed]] &bull; [[Bookcase]] &bull; [[Crate]] &bull; [[Door]] &bull; [[Double Shelves]] &bull; [[Lamp on Pillar]] &bull; [[Large Table]] &bull; [[Log Wall]] &bull; [[Rain Collector Barrel]] &bull; [[Shelves]] &bull; [[Small Bookcase]] &bull; [[Small Table]] &bull; [[Stairs Piece]] &bull; [[Table with Drawer]] &bull; [[Wooden Chair]] &bull; [[Wooden Cross]] &bull; [[Wooden door frame|Wooden Door Frame]] &bull; [[Wooden Fence]] &bull; [[Wood Floor|Wooden Floor]] &bull; [[Wooden Picket]] &bull; [[Wooden Sign]] &bull; [[Wooden Wall]] &bull; [[Wooden window frame|Wooden Window Frame]]
[[Category:Templates]]
|group4 = [[Metalworking]]
</noinclude>
|list4 = [[Barricade|Barricade (Metal)]] &bull; [[Big Double Pope Gate]] &bull; [[Big Locker]] &bull; [[Big Pole Fence]] &bull; [[Big Pole Fence Gate]] &bull; [[Big Wired Fence]] &bull; [[Double Fence Gate]] &bull; [[Fence]] &bull; [[Fence Gate]] &bull; [[Metal Counter]] &bull; [[Metal Counter Corner]] &bull; [[Metal Crate]] &bull; [[Metal Roof]] &bull; [[Metal Shelves]] &bull; [[Metal Wall]] &bull; [[Metal Wall Frame]] &bull; [[Pole Fence]] &bull; [[Small Locker]] &bull; [[Wired Fence]]
}}<noinclude>[[Category:Templates]]</noinclude>

Revision as of 10:19, 28 November 2018

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