Template:Responsive Character Page

From Holocron - Star Wars Combine
Jump to: navigation, search


Usage

This responsive character page template is best used together with the responsive character infobox template as its infobox template.

{{Template:Responsive Character Page
| backdrop-color = This defaults to 'none'.
| background-color = This defaults to 'rgba(#000000, .2)'.
| character-infobox-width = required, preferably in pixels (character images are sized in pixels).
| intro = 
| main-content = 
| character-infobox = required, works best with the responsive character infobox template.
| filler-content = This is shown below the infobox box, regardless of the platform (desktop/mobile)!
}}

Table of Contents Usage

It is recommended to place the __TOC__ magic word inside the intro field to force the Table of Contents of the page to render inside the template. Otherwise, it will most likely render above the template. Use the __NOTOC__ magic word if you want to stop the Table of Contents from rendering altogether.

Known Issues

Wikitable Rendering

It is known that wikitables do not go well included with template parameters. Therefore, you need to escape the pipe | characters of wikitables with {{!}}. For more information, see the official MediaWiki documentation (archived on July 30th 2023).

A workaround would be to make a template of those tables, and using HTML table syntax instead of a wikitable.

Examples

Try and view these examples both on mobile and desktop view via the F12 menu. See here (archived on March 24th 2023) to see how to.

No background color specified

This is the intro.

{{{name}}}
{{{image}}}
Biographical Information
Race {{{race}}}
Physical Description
Gender {{{gender}}}
Political Information
Affiliation {{{affiliation}}}
 
 

This is the main content without any specified background color.


No background color specified and with filler content

This is the intro.

{{{name}}}
{{{image}}}
Biographical Information
Race {{{race}}}
Physical Description
Gender {{{gender}}}
Political Information
Affiliation {{{affiliation}}}
 
 

This is some optional filler content.

This is the main content with extra filler.


Background color specified

This is the intro.

{{{name}}}
{{{image}}}
Biographical Information
Race {{{race}}}
Physical Description
Gender {{{gender}}}
Political Information
Affiliation {{{affiliation}}}
 
 

This is some optional filler content.

This is the main content with extra filler. The background-color parameter is set to rgba(50, 0, 0, .5).


Backdrop color specified

This is the intro.

{{{name}}}
{{{image}}}
Biographical Information
Race {{{race}}}
Physical Description
Gender {{{gender}}}
Political Information
Affiliation {{{affiliation}}}
 
 

This is some optional filler content.

This is the main content with extra filler. The backdrop-color parameter is set to rgba(0, 0, 0, .2).