Template:Building: Difference between revisions

From Crazy-Fools.co.uk Wiki
m (Changed infobox description to 'building information')
(Changed coordinates to numerical values)
Line 15: Line 15:
{{Building
{{Building
| buildName = replace this with the name of the build.
| buildName = replace this with the name of the build.
| buildCoords = replace this with the coordinates of the build (in the format x,z).
| 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
}}
}}
</pre>
</pre>
Line 32: Line 33:
"required": true
"required": true
},
},
"buildCoords": {
        "xCoord": {
"label": "The coordinates of the build",
"label": "The X coordinate of the build",
"type": "string",
"type": "number",
"required": true
"required": false
},
        "zCoord": {
"label": "The Z coordinate of the build",
"type": "number",
"required": false
}
}
},
},
"paramOrder": [
"paramOrder": [
"buildName",
"buildName",
"buildCoords"
        "xCoord",
        "zCoord"
]
]
}
}
Line 54: Line 61:
|-
|-
| style="background:silver; color:arsenic" align="right"| '''Build coordinates: '''
| style="background:silver; color:arsenic" align="right"| '''Build coordinates: '''
| {{{buildCoords}}}
| {{{xCoord}}}, {{{zCoord}}}
|}
|}

Revision as of 18:27, 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.
| 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)

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
The name of the buildbuildName

no description

Stringrequired
The X coordinate of the buildxCoord

no description

Numberoptional
The Z coordinate of the buildzCoord

no description

Numberoptional


Building information
Name of build: {{{buildName}}}
Build coordinates: {{{xCoord}}}, {{{zCoord}}}