Template:Force Image Banner Width

From Cosmoteer Wiki
Jump to navigation Jump to search
CalloutIconWarning.png
Supplementary template
This template is supplementary to {{Image Banner}} and should only be used in pair with it.
Template documentation
View or edit this documentation. (About template documentation)
CalloutIconNote.pngNote
Portions of the template sample may not be visible without values provided.

Usage

  1. Use this template at the start of the page to affect width of all {{Image Banner}}s. You can also use it somewhere else on a page to redefine the forced width for subsequent image banners.
    In this example, the width is forced to 800px.
    {{Force Image Banner Width|800px}}
    
  2. Use an image banner. If it has no width defined, it width would be forced to what you've defined here.

    For example:
    {{Image Banner|Random moving interior.webp|1919|h4=Header text|height=50px|x=0px|y=-733px}}
    

    would result in:

    Header text banner image

    Header text

    but with width forced:

    Header text banner image

    Header text

Makes all {{Image Banner}}s on the page to the same width. The resulting width will be restricted to the width of the page.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Width1

The width to force.

Stringrequired