Difference between revisions of "User:GrampaSwood/Template:Maplist/row"
GrampaSwood (talk | contribs) m |
GrampaSwood (talk | contribs) m |
||
(16 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
|- | |- | ||
− | | [[File:{{{map-image}}}|{{{size|150px}}}|link={{{map}}}{{if lang}}]] | + | | [[File:{{{map-image}}}|{{{size|150px}}}|link={{{map-link|{{{map}}}}}}{{if lang}}]]<br>{{#ifeq:{{lc:{{{map-type|valve}}}}}|community|{{italics|{{map link|{{{map}}}|{{{map-link|{{{map}}}}}}}}}}|{{map link|{{{map}}}|{{{map-link|{{{map}}}}}}}}}}{{#switch:{{lc:{{{original-type|none}}}}} |
− | | {{map link|{{{map}}}}}{{#if | + | | valve = <br>{{Parenthesis|[[{{{original}}}{{if lang}}|{{{original-name|{{{original}}}}}}]]}} |
+ | | custom = <br>{{Parenthesis|'''[[{{{original}}}{{if lang}}|{{{original-name|{{{original}}}}}}]]'''}} | ||
+ | | community = <br>{{italics|{{Parenthesis|[[{{{original}}}{{if lang}}|{{{original-name|{{{original}}}}}}]]}}}} | ||
+ | | none | #default = }} | ||
| {{Common string|{{{mode}}}}}<br>{{code|{{{filename}}}}} | | {{Common string|{{{mode}}}}}<br>{{code|{{{filename}}}}} | ||
| {{{patch}}}{{#if:{{{major|}}}|<br>{{Parenthesis|{{update link|{{{major}}}}}}}|}} | | {{{patch}}}{{#if:{{{major|}}}|<br>{{Parenthesis|{{update link|{{{major}}}}}}}|}} | ||
− | | {{{ | + | | {{Map credits|{{{filename}}}}}<noinclude> |
{{Doc begin}} | {{Doc begin}} | ||
== Usage == | == Usage == | ||
Line 12: | Line 15: | ||
| map-image = | | map-image = | ||
| map = | | map = | ||
+ | | map-type = | ||
+ | | map-link = | ||
| original = | | original = | ||
+ | | original-type = | ||
+ | | original-name = | ||
| mode = | | mode = | ||
| filename = | | filename = | ||
| patch = | | patch = | ||
| major = | | major = | ||
− | |||
}} | }} | ||
</pre> | </pre> | ||
Line 23: | Line 29: | ||
=== Parameters === | === Parameters === | ||
; map-image | ; map-image | ||
− | : File name of the map, does not need "File:" but requires the extension (.jpg, .png, etc.) | + | : File name of the map, does not need "File:" but requires the extension (.jpg, .png, etc.). |
; map | ; map | ||
− | : Map name, | + | : Map name, name of the map (i.e. "Ghost Town" not "Coal Town event", "Bonesaw" not "Bonesaw (map)"). |
+ | |||
+ | ; map-type | ||
+ | : What type of map it is. Accepts "Valve" and "Community", defaults to Valve. Determines italics/bold. | ||
+ | |||
+ | ; map-link | ||
+ | : Optional, override for the map link. Intended for maps with parenthesis in name (for example, Bonesaw). If not used, defaults to "map" parameter. | ||
; original | ; original | ||
: Optional, original map that this is a Halloween version of. For example, [[Upward]] is the original map that [[Hassle Castle]] is based on. | : Optional, original map that this is a Halloween version of. For example, [[Upward]] is the original map that [[Hassle Castle]] is based on. | ||
+ | |||
+ | ; original-type | ||
+ | : What type of map the original map is. Accepts "Valve", "Custom", and "Community". Defaults to none (will also display nothing). | ||
+ | |||
+ | ; original-name | ||
+ | : Optional, override for the "original" parameter's displayed text. Used for maps with parenthesis in name. | ||
; mode | ; mode | ||
− | : Game mode | + | : Game mode. |
; filename | ; filename | ||
− | : Map's filename, for example, arena_lumberyard_event | + | : Map's filename, for example, arena_lumberyard_event. Also handles the map developers using {{tl|Map credits}}. |
; patch | ; patch | ||
Line 42: | Line 60: | ||
; major | ; major | ||
: Major update the map was introduced in, uses {{tl|map link}} | : Major update the map was introduced in, uses {{tl|map link}} | ||
− | |||
− | |||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 18:53, 19 January 2024
|-
| [[File:{{{map-image}}}|150px|link={{{map}}}]]
[[{{{map}}}|{{dictionary/common_strings/map name {{{map}}}}}]]
| {{dictionary/common_strings/{{{mode}}}|null=|2=|3=|4=|5=|6=}}{{{filename}}}
| {{{patch}}}
| Valve
Documentation for GrampaSwood/Template:Maplist/row
Usage
Used on the List of Halloween maps template.
{{/row | map-image = | map = | map-type = | map-link = | original = | original-type = | original-name = | mode = | filename = | patch = | major = }}
Parameters
- map-image
- File name of the map, does not need "File:" but requires the extension (.jpg, .png, etc.).
- map
- Map name, name of the map (i.e. "Ghost Town" not "Coal Town event", "Bonesaw" not "Bonesaw (map)").
- map-type
- What type of map it is. Accepts "Valve" and "Community", defaults to Valve. Determines italics/bold.
- map-link
- Optional, override for the map link. Intended for maps with parenthesis in name (for example, Bonesaw). If not used, defaults to "map" parameter.
- original
- Optional, original map that this is a Halloween version of. For example, Upward is the original map that Hassle Castle is based on.
- original-type
- What type of map the original map is. Accepts "Valve", "Custom", and "Community". Defaults to none (will also display nothing).
- original-name
- Optional, override for the "original" parameter's displayed text. Used for maps with parenthesis in name.
- mode
- Game mode.
- filename
- Map's filename, for example, arena_lumberyard_event. Also handles the map developers using
{{Map credits}}
.
- patch
- The patch the map was introduced in, uses
{{Patch name}}
, requires{{{1}}}
- major
- Major update the map was introduced in, uses
{{map link}}