Template:Building: Difference between revisions
From Crazy-Fools.co.uk Wiki
No edit summary |
No edit summary |
||
Line 63: | Line 63: | ||
{| 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 --> | Building information | |style="text-align: center" <!-- center the text --> colspan="2" <!-- make title row span across columns --> | Building information | ||
[[File:{{{image}}}|250px]] | |||
|- | |- | ||
| style="background:silver; color:arsenic; width:25%" align="right"| '''Name of build: ''' | | style="background:silver; color:arsenic; width:25%" align="right"| '''Name of build: ''' | ||
| {{{buildName}}} | | {{{buildName}}} | ||
|- | |- | ||
| style="background:silver; color:arsenic" align="right"| '''Build coordinates: ''' | |||
| {{{xCoord}}}}, {{{zCoord}}}} | | {{{xCoord|X}}}}, {{{zCoord|Z}}}} | ||
|} | |} |
Revision as of 19:52, 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 | image = replace this with the uploaded image filename EG: picture.png | buildName = replace this with the name of the build (Required information). | xCoord = replace this with the X coordinate of the build (East/West). EG: 4520 | zCoord = replace this with the Z coordinate of the build (North/South). EG: -3600 }}
A simple template for buildings that requires two values, first the name and second the coordinates (if known)
Parameter | Description | Type | Status | |
---|---|---|---|---|
An image of the build | image | no description | File | optional |
The name of the build | buildName | no description | String | required |
The X coordinate of the build | xCoord | no description | Number | optional |
The Z coordinate of the build | zCoord | no description | Number | optional |
Building information
[[File:{{{image}}}|250px]] | |
Name of build: | {{{buildName}}} |
Build coordinates: | X}, Z} |