Template

Lbox

From Dogcraft Wiki

Revision as of 20:28, 11 July 2022 by Domino (talk | contribs) (proper documentation + templatedata)

Linked box template

The linked box or lbox template is a specialized version of {{Template:Box}} It is an interface template for creating containers that also serve as links, useful for navigation. Used across the wiki on various pages, such as the main page. Please check the template parameters before use!

This template is only transcluding a specific configuration of {{Template:Box}} with added CSS.


Examples

No image

{{lbox
|title=Survival 4
|width=300px
|height=370px
|content=The fourth dogcraft survival world, running from 1<sup>st</sup> April 2020 to 14<sup>th</sup> March 2022. This was the first time survival was split into multiple interconnected worlds, which were called Husky and Beagle. These worlds ran on versions 1.15.2 to 1.17.
}}

generates:

Survival 4

The fourth dogcraft survival world, running from 1st April 2020 to 14th March 2022. This was the first time survival was split into multiple interconnected worlds, which were called Husky and Beagle. These worlds ran on versions 1.15.2 to 1.17.



With image

{{lbox
|title=Survival 4
|width=300px
|height=370px
|image=Grand Central Station - Shepherd.png
|content=The fourth dogcraft survival world, running from 1<sup>st</sup> April 2020 to 14<sup>th</sup> March 2022. This was the first time survival was split into multiple interconnected worlds, which were called Husky and Beagle. These worlds ran on versions 1.15.2 to 1.17
|footer=This is a footer
}}

generates:

Grand Central Station - Shepherd.png

Survival 4

The fourth dogcraft survival world, running from 1st April 2020 to 14th March 2022. This was the first time survival was split into multiple interconnected worlds, which were called Husky and Beagle. These worlds ran on versions 1.15.2 to 1.17.
This is a footer



Flexbox layout example

For more complex layouts, this template can be used together with a flexbox container.

<div style="display:flex; gap:10px; justify-content:center;" class="flex-mobile-wrap">
{{LBox|title=Survival Railway Network|width=none}}
{{LBox|title=Nether Transport Network|width=none}}
{{LBox|title=Road & Horse Network|width=none}}
{{LBox|title=Other Railway Network|width=none}}
{{LBox|title=Connected Seas Coalition|width=none}}
</div>

generates:

Survival Railway Network


Nether Transport Network


Road & Horse Network


Other Railway Network


Connected Seas Coalition


This example has been scaled down


This page was last modified on 11 July 2022, at 20:28. (22 months ago)
Background SRN Opening by Montenator