• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.215
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Portal box placard

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
File:Alpha lowercase.svgThis template is rated as alpha. It is ready for third party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome.

Lua error in Module:TNT at line 167: Missing Commons dataset I18n/Module:TNT.tab.

Usage

This template is designed to be used in Portals (Portal Boxes).

{{Portal box placard|1=<file>|res-width=<width-in-px>|caption=<caption>}}


Examples:

{{Portal box placard|1=File:Santa Catalina Mountains Banner.jpg|res-width=1024px|caption=test caption}}

"res-width" and "caption" are optional.

{{Portal box placard|1=File:Santa Catalina Mountains Banner.jpg}}


Box with full resolution image and caption

test caption

See also...

Smaller box with full resolution and no caption

File:Catalonia 2016 Zout Fotografie (196 van 196) (32589506286) crop.jpg

See also...

Same box with res-width set to 1000px

File:Catalonia 2016 Zout Fotografie (196 van 196) (32589506286) crop.jpg

See also...

Same box with res-width set to 200px

File:Catalonia 2016 Zout Fotografie (196 van 196) (32589506286) crop.jpg

See also...

Same box with res-width set to 20px

File:Catalonia 2016 Zout Fotografie (196 van 196) (32589506286) crop.jpg

See also...

More complex example with Flexboxes Template

Sport climbing

Lead climbing

File:Climbing World Championships 2018 Lead Qual Bergant 03.jpg


Read More...

Bouldering

File:Climbing World Championships 2018 Boulder Final Garnbret (BT0A8388).jpg


Read More...

Speed climbing

File:Climbing World Championships 2018 Speed Semifinals (BT0A6386).jpg


Read More...

Ice climbing

File:2016 UIAA Ice Climbing World Tour Cheongsong - 16.jpg


Read More...

What is the point of the res-width?

Big images take a long time to load and take up bandwidth. So please don't embed 8k high resolution images without setting a reasonable res-width, especially if you use a box that is smaller than 100%.
For instance if your box takes up 25% of the available space, then 1000px is definitely more than enough. And it will probably still look fine with less, even on 4k monitors.
Even for full width boxes, more than 3840px does not make much sense (as of 2019. Things might change in the future).

This is similar to Template:Portal image banner?

Yes, but this...

  • ...does not use any Lua
  • ...allows you to set a resolution width
  • ...has a more consistent margin on top and left/right
  • ...does not offer image carousels
  • ...does not place any text below the image
  • ...does not crop the image

Maybe at some point both can be merged.

See also

  • v
  • t
  • e
Portal templates
Visual overview of template usage
Layout and formatting
  • {{Box portal skeleton}}
  • {{Box-header}}
    • color palettes
    • plain
    • round
    • square
    • watch
  • {{Box-header colour}}1
  • {{Box-footer}}
  • {{Flex columns}}
  • {{Plain navboxes}}
File:Portal.svg
Content transclusion
  • {{Transclude lead excerpt}}2
  • {{Transclude linked excerpt}}2
  • {{Transclude list item excerpt}}2
  • {{Transclude random excerpt}}2
  • {{Transclude selected excerpt}}2
  • {{Excerpt}}
  • {{Transclude DYK}}9
  • {{Transclude selected current events}}3
  • {{Transclude selected recent additions}}4
Content slideshows
  • {{Random slideshow}}5
  • {{Transclude files as random slideshow}}5
  • {{Transclude excerpts as random slideshow}}6
  • {{Transclude linked excerpts as random slideshow}}6
  • {{Transclude list item excerpts as random slideshow}}6
Content randomisation
  • {{Random portal component}}7
  • {{Random quotation}}
  • {{Random subpage}}
General
  • {{Portals}}
  • {{Portals browsebar}}
  • {{Portal description}}
  • {{Portal information sidebar}}
  • {{Portal navbar no header2}}
  • {{Purge link portals}}
  • {{Wikimedia for portals}}
Linking templates
  • {{Portal}}
  • {{Portal bar}}
  • {{Portal-inline}}11
  • {{Pbox}}
  • {{Related portals}}
  • {{Related portals2}}
Talk pages / Maintenance
  • {{Portal talk}}
  • {{Portal maintenance status}}8
  • {{Portal suggestions}}
  • {{Portal toolbox}}
  • {{WikiProject Portals}}8
Images
  • {{Portal dynamic image}}
  • {{Portal image banner}}10
  • {{Portal pictures}}12
  • {{Portal POTD}}
Modules
  • 1 Module:Box-header
  • 2 Module:Excerpt/portals
  • 3 Module:Selected current events
  • 4 Module:Selected recent additions
  • 5 Module:Random slideshow
  • 6 Module:Excerpt slideshow
  • 7 Module:Random portal component
  • 8 Module:Portal maintenance status
  • 9 Module:Transclude DYK
  • 10 Module:Portal image banner
  • 11 Module:Portal-inline
  • 12 Module:Portal pictures
Usage
  • Wikipedia:Portal
  • Wikipedia:WikiProject Portals
For more information, see: Category:Template-Class Portal pages and Category:Wikipedia Portal templates

No description.

Template parameters

ParameterDescriptionTypeStatus
11

no description

Filerequired
res-widthres-width

no description

Unknownoptional
captioncaption

no description

Unknownoptional
The above documentation is transcluded from Template:Portal box placard/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Portal_box_placard&oldid=27128"
Categories:
  • Pages with script errors
  • Pages with broken file links
  • Templates in alpha
Last edited on 27 June 2021, at 14:37

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 27 June 2021, at 14:37.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop