Template:Building: Difference between revisions

From Crazy-Fools.co.uk Wiki
(Created a template for builds on CFUK)
 
m (Changed infobox description to 'building information')
Line 48: Line 48:


{| class="wikitable" border="1" style="float:right; width:33%" <!-- float puts it on right side and wraps text -->
{| class="wikitable" border="1" style="float:right; width:33%" <!-- float puts it on right side and wraps text -->
|style="text-align: center" <!-- center the text --> colspan="2" <!--  make title row span across columns --> | A build on Crazy-Fools UK
|style="text-align: center" <!-- center the text --> colspan="2" <!--  make title row span across columns --> | Building information
|-
|-
| style="background:silver; color:arsenic; width:25%" align="right"| '''Name of build: '''
| style="background:silver; color:arsenic; width:25%" align="right"| '''Name of build: '''

Revision as of 18:05, 1 September 2024


Look at this in source or edit view to really see how it is set up.

This template demonstrates an infobox for builds that will show up at the right top of where the template is used. It is really just a mediawiki template that generates a right floating mediawiki table.

Template Use

To use this template, put the following text on a page, replacing the values as instructed.

{{Building
| buildName = replace this with the name of the build.
| buildCoords = replace this with the coordinates of the build (in the format x,z).
}}


A simple template for buildings that requires two values, first the name and second the coordinates (if known)

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
The name of the buildbuildName

no description

Stringrequired
The coordinates of the buildbuildCoords

no description

Stringrequired


Building information
Name of build: {{{buildName}}}
Build coordinates: {{{buildCoords}}}