Template:Building: Difference between revisions

From Crazy-Fools.co.uk Wiki
(Created a template for builds on CFUK)
 
No edit summary
 
(18 intermediate revisions by the same user not shown)
Line 14: Line 14:
<pre>
<pre>
{{Building
{{Building
| buildName = replace this with the name of the build.
| image = replace this with the uploaded image filename EG: picture.png
| buildCoords = replace this with the coordinates of the build (in the format x,z).
| 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
}}
</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 25: Line 43:
<templatedata>
<templatedata>
{
{
"description": "A simple template for buildings that requires two values, first the name and second the coordinates (if known)",
"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": {
"label": "An image of the build",
"type": "wiki-file-name",
"required": false
},
        "caption": {
"label": "A caption of the build image",
"type": "string",
"required": false
},
"buildName": {
"buildName": {
"label": "The name of the build",
"label": "The name of the build",
Line 32: Line 60:
"required": true
"required": true
},
},
"buildCoords": {
        "xCoord": {
"label": "The coordinates of the build",
"label": "The X coordinate of the build",
"type": "number",
"required": false
},
        "zCoord": {
"label": "The Z coordinate of the build",
"type": "number",
"required": false
},
        "creator": {
"label": "The main creator of the build (on CFUK)",
"type": "string",
"required": false
},
        "warp": {
"label": "A relevant warp for the build",
"type": "string",
"type": "string",
"required": true
"required": false
}
}
},
},
"paramOrder": [
"paramOrder": [
        "image",
        "caption",
"buildName",
"buildName",
"buildCoords"
        "xCoord",
        "zCoord",
        "creator",
        "warp"
]
]
}
}
Line 48: Line 96:


{| 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
[[File:{{{image|Nopic.png}}}|250px|{{{caption|Image of building}}}]]
|-
|-
| style="background:silver; color:arsenic; width:25%" align="right"| '''Name of build: '''
| style="background:silver; color:arsenic; width:25%" align="right"| '''Name of build: '''
Line 54: Line 103:
|-
|-
| style="background:silver; color:arsenic" align="right"| '''Build coordinates: '''
| style="background:silver; color:arsenic" align="right"| '''Build coordinates: '''
| {{{buildCoords}}}
| {{{xCoord|Unknown X}}}, {{{zCoord|Unknown Z}}}
|-
| style="background:silver; color:arsenic; width:25%" align="right"| '''Creator(s): '''
| {{{creator|Unknown creator(s)}}}
|-
| style="background:silver; color:arsenic; width:25%" align="right"| '''Warp: '''
| {{{warp|''Unknown warp''}}}
|}
|}

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)

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
An image of the buildimage

no description

Fileoptional
A caption of the build imagecaption

no description

Stringoptional
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)creator

no description

Stringoptional
A relevant warp for the buildwarp

no description

Stringoptional


Building information

Image of building

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