No edit summary |
No edit summary |
||
| (11 intermediate revisions by the same user not shown) | |||
| Line 11: | Line 11: | ||
}} | }} | ||
<div class="infoicon {{{color|cyan}}}">[[File:icon-location.svg|50px|link=:Category:Location]]</div> | <div class="infoicon {{{color|cyan}}}">[[File:icon-location.svg|50px|link=:Category:Location]]</div> | ||
<div class="overbox {{{color|cyan}}}" style="width: 250px; height: 50px; font-family: monospace; font-weight: bolder; font-size:larger; {{#ifeq:{{{color|cyan}}}|white|color: black;}}">{{#ifeq:{{NAMESPACE}}|Template|{{{name|{{PAGENAME}}}}}|{{{name|{{PAGENAME}}}}}{{DISPLAYTITLE:{{{name|{{PAGENAME}}}}}}}}}</div> | <div class="overbox {{{color|cyan}}}" style="width: 250px; height: 50px; font-family: monospace; font-weight: bolder; font-size:larger; {{#ifeq:{{{color|cyan}}}|white|color: black;}}">{{#ifeq:{{NAMESPACE}}|Template|{{{name|{{PAGENAME}}}}}|{{{name|{{PAGENAME}}}}}{{DISPLAYTITLE:{{{name|{{PAGENAME}}}}}}}}}<br />{{SplitLink|{{{type|{{Required|type|Location}}}}}}}</div> | ||
<div> | <div> | ||
{{#css: | {{#css: | ||
| Line 19: | Line 19: | ||
}} | }} | ||
{{TableSlim|width=350px}} | {{TableSlim|width=350px}} | ||
{{TableMid|Address|{{SplitLink|{{{address}}}}}|display={{#ifeq:{{{unique|false}}}|false||hide}}}} | {{TableMid|Address|{{SplitLink|{{{address}}}}}|display={{#ifeq:{{{unique|false}}}|false||hide}}}} | ||
{{TableEnd}} | {{TableEnd}} | ||
<div>{{#if:{{{image|}}}|{{#ifeq:{{#count:{{{image}}}|;}}|0|[[File:{{{image}}}|350px|frameless]]|<slideshow transition="blindDown" refresh="10000"> | <div style={{#if:{{{image}}}|"margin:10px 0px;"|"display:none"}}>{{#if:{{{image|}}}|{{#ifeq:{{#count:{{{image}}}|;}}|0|[[File:{{{image}}}|350px|frameless]]|<slideshow transition="blindDown" refresh="10000"> | ||
{{#loop: slide | {{#loop: slide | ||
| 0 | | 0 | ||
| Line 30: | Line 29: | ||
}}</slideshow>}} | }}</slideshow>}} | ||
}}</div> | }}</div> | ||
<div {{#ifeq:{{NAMESPACE}}|Template|style="display:none"}}>{{TableSlim|width=350px}}<tr><th colspan="2">Metadata</th></tr> | |||
{{#ifeq:{{NAMESPACE}}|Template| | |||
{{TableMid|First Appearance|{{#dpl: | {{TableMid|First Appearance|{{#dpl: | ||
| category = Episode | | category = Episode | ||
| Line 39: | Line 37: | ||
| ordermethod = title | | ordermethod = title | ||
| mode = none | | mode = none | ||
}}}} | |||
{{TableMid|Latest Appearance|{{#dpl: | {{TableMid|Latest Appearance|{{#dpl: | ||
| category = Episode | | category = Episode | ||
| Line 47: | Line 45: | ||
| ordermethod = title | | ordermethod = title | ||
| mode = none | | mode = none | ||
}} | }}}} | ||
</div> | {{TableEnd}}</div> | ||
</div> | </div> | ||
</div>{{Categorize|{{ucfirst:{{{color|cyan}}}}} Boxes|with}} | |||
</onlyinclude></includeonly> | </onlyinclude></includeonly> | ||
Latest revision as of 14:25, 17 April 2024
Template:Location is used to create the summary sidebar on Location pages.
Usage
Defaulting Parameters
These are mandatory parameters, but they have default values.
namedefaults to{{PAGENAME}}. It's primary purpose is applying formatting characters, as in Fräulein Ärtzin.
Non-Defaulting Parameters
These mandatory parameters must be supplied; they have no defaults:
Optional Parameters
color(default:cyan) controls the color of the background. The valid options are:
red
green
blue
yellow
purple
cyan
gray
white
image— a semi-colon separated list of Image files.
Metaparameters
These optional parameters control aspects that are out-of-character and control Mediawiki behavior.
sortkey(default:{{PAGETITLE}}) — This usually suffices for most article, but it can be overriden if needed.
Returns
An example of the possible output is to the right; edit the documentation to see how it is constructed.The documentation above was transcluded from Template:Location/Documentation. [edit]
