Template:Building: Difference between revisions

From Crazy-Fools.co.uk Wiki
No edit summary
No edit summary
Line 18: Line 18:
| xCoord = replace this with the X coordinate of the build (East/West). EG: 4520
| 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
| zCoord = replace this with the Z coordinate of the build (North/South). EG: -3600
| creator = replace this with the name of the creator of the build. EG: Broonie
| creators = replace this with the name of the creator or creators of the build. EG: Broonie
}}
}}
</pre>
</pre>
Line 50: Line 50:
"required": false
"required": false
},
},
         "creator": {
         "creators": {
"label": "The main creator of the build (on CFUK)",
"label": "The main creator of the build (on CFUK)",
"type": "string",
"type": "string",
Line 61: Line 61:
         "xCoord",
         "xCoord",
         "zCoord",
         "zCoord",
         "creator"
         "creators"
]
]
}
}
Line 78: Line 78:
|  {{{xCoord|Unknown X}}}, {{{zCoord|Unknown Z}}}
|  {{{xCoord|Unknown X}}}, {{{zCoord|Unknown Z}}}
|-
|-
| style="background:silver; color:arsenic; width:25%" align="right"| '''Creator: '''
| style="background:silver; color:arsenic; width:25%" align="right"| '''Creator(s): '''
| {{{creator|Unknown creator}}}
| {{{creators|Unknown creator(s)}}}
|}
|}

Revision as of 20:26, 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
| creators = replace this with the name of the creator or creators of the build. EG: Broonie
}}


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

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
An image of the buildimage

no description

Fileoptional
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
The main creator of the build (on CFUK)creators

no description

Stringoptional


Building information

Name of build: {{{buildName}}}
Build coordinates: Unknown X, Unknown Z
Creator(s): Unknown creator(s)