Template:Building: Difference between revisions
From Crazy-Fools.co.uk Wiki
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 21: | Line 21: | ||
| creator = replace this with the name of the creator or creators of the build. EG: Broonie | | creator = replace this with the name of the creator or creators of the build. EG: Broonie | ||
| warp = replace this with a nearby or relevant warp. EG \spawn | | warp = replace this with a nearby or relevant warp. EG \spawn | ||
}} | |||
</pre> | |||
'''Example of this in an article:''' | |||
<pre> | |||
{{Building | |||
| image = aptownhall.png | |||
| caption = A picture of Acacia Park Town Hall | |||
| buildName = Acacia Park Town Hall | |||
| xCoord = 13691 | |||
| zCoord = -23081 | |||
| creator = [[Shield543]] | |||
| warp = aptownhall | |||
}} | }} | ||
</pre> | </pre> | ||
Line 30: | Line 43: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "A simple template for buildings that requires | "description": "A simple template for buildings that requires, at minimum, the name of the build. Other details may be provided (if known)", | ||
"params": { | "params": { | ||
"image": { | "image": { |
Latest revision as of 22:41, 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 | caption = insert image caption here EG: This is a picture of the build. | 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 | creator = replace this with the name of the creator or creators of the build. EG: Broonie | warp = replace this with a nearby or relevant warp. EG \spawn }}
Example of this in an article:
{{Building | image = aptownhall.png | caption = A picture of Acacia Park Town Hall | buildName = Acacia Park Town Hall | xCoord = 13691 | zCoord = -23081 | creator = [[Shield543]] | warp = aptownhall }}
A simple template for buildings that requires, at minimum, the name of the build. Other details may be provided (if known)
Parameter | Description | Type | Status | |
---|---|---|---|---|
An image of the build | image | no description | File | optional |
A caption of the build image | caption | no description | String | 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 |
The main creator of the build (on CFUK) | creator | no description | String | optional |
A relevant warp for the build | warp | no description | String | optional |
Building information | |
Name of build: | {{{buildName}}} |
Build coordinates: | Unknown X, Unknown Z |
Creator(s): | Unknown creator(s) |
Warp: | Unknown warp |