Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:CharacterHubCardDefault: Difference between revisions

Template page
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<noinclude>{{Documentation}}</noinclude>
<div class="charcard" style="width: {{{width|250px}}}; display:inline-block; vertical-align:top; text-align:center; margin:8px; padding:6px; border:1px solid #AAA; border-radius:4px; background:#F9F9F9;">
<div style="display:inline-block;text-align:center;">
  <!-- image -->
[[File:{{{image|}}}|300px]]
  <div class="charcard-image" style="margin-bottom:6px;">
{| class="wikitable" style="width:300px;margin:0;text-align:center;"
    [[File:{{{image|}}}|{{{width|250px}}}x|link={{{page|}}}]]
|-
  </div>
| '''[[{{{link|}}}|{{{name|}}}]]'''
 
{{#if:{{{subtitle|}}}
  <!-- name/title -->
|<div><small>[[{{{link}}}|{{{subtitle}}}]]</small></div>
  <div class="charcard-title" style="font-size:1.2em; font-weight:bold; margin-bottom:4px;">
    [[{{{page|}}}|{{{name|Unnamed character}}}]]
  </div>
 
  <!-- optional logos -->
  <div class="charcard-logos" style="margin-bottom:6px;">
    {{#if:{{{logo1|}}}
      | [[File:{{{logo1}}}|30px|link={{{logo1link|}}}]]
    }}
    {{#if:{{{logo2|}}}
      | [[File:{{{logo2}}}|30px|link={{{logo2link|}}}]]
    }}
  </div>
 
  <!-- optional blurb -->
  <div class="charcard-blurb" style="font-size:0.9em; color:#333;">
    {{{blurb|}}}
  </div>
</div>
</includeonly>
 
<noinclude>
== Usage ==
<pre>
{{CharacterCard
| image      = CharacterImage.jpg
| page        = Character_Main_Page_Name
| name        = Display Name Here
| logo1      = SeriesLogo1.png
| logo1link  = Series_Main_Page
| logo2      = SeriesLogo2.png
| logo2link  = Another_Series_Page
| blurb      = This is a short optional blurb describing the default version.
| width      = 280px                <!-- optional override of the card width -->
}}
}}
</pre>
{{#if:{{{logo1|}}}
 
|[[File:{{{logo1}}}|40px|link={{{logo1link}}}]]
*Parameters:*
}}{{#if:{{{logo2|}}}
- **image** (required): filename of the portrait (rectangular, ~400×600px).
|&nbsp;[[File:{{{logo2}}}|40px|link={{{logo2link}}}]]
- **page** (required): target page for the name link.
- **name** (required): text to display.
- **logo1**, **logo2** (optional): filenames of small franchise logos.
- **logo1link**, **logo2link** (optional): target pages for each logo.
- **blurb** (optional): free‑form paragraph.
- **width** (optional): overall card width (e.g. “200px”, “15em”); default 250px.
 
You can place two (or more) of these inline at the top of your hub page:
 
```wikitext
{{CharacterCard
| image    = HeroMain.jpg
| page      = Hero_Main
| name      = “Valiant Hero”
| logo1    = SeriesA_Logo.png
| logo1link = SeriesA
| blurb    = The default incarnation of our world’s champion.
}}
{{CharacterCard
| image    = HeroAlt.jpg
| page      = Hero_Alt
| name      = “Valiant Hero (Stealth Suit)”
| logo1    = SeriesB_Logo.png
| logo1link = SeriesB
| logo2    = SeriesC_Logo.png
| logo2link = SeriesC
| blurb    = Specialized for covert ops.
| width    = 220px
}}
}}
<br/>
{{{blurb|}}}
|}
</div>

Latest revision as of 17:57, 19 April 2025

Template:Documentation

[[File:|300px]]

[[|]]