Template:Stack: Difference between revisions

From Dead Suns Game
Jump to navigationJump to search
No edit summary
No edit summary
 
(34 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOEDITSECTION__ __NOTOC__
__NOEDITSECTION__ __NOTOC__<includeonly>
<div style="display: block; border-radius: 25px; width:400px; height: 400px; border: 2px solid #007;padding:5px;margin: 5px;float:left">
<div style="box-shadow: 5px 5px 10px 1px #bbf;display: block; border-radius: 25px; width:400px; max-width:95%;height: 350px; border: 2px solid #007;padding:5px;margin: 5px;float:left;overflow: auto;background-color:#FFF;">
<div style="display: block; float: left; width: 200px; padding: 20px">{{{pic|}}}</div>
<div style="display: block; overflow:hidden; border-radius: 16px 0 0 0;float: left; height: 185px; width:150px; margin: 2px">{{{pic|}}}</div>
<div style="display: block; float: left; padding: 20px">
<div style="display: block; float: left; padding:2px 5px 5px 5px">
{| class="wikitable" style="align: left"
<div style="width:200px">
! Name !! Race !! Theme !! Class !! Player
{| class="StarVTable" style="margin:auto; width: 235px;"
|-
|+
| {{{name|}}} || {{{race|}}} || {{{theme|}}} || {{{class|}}} || {{{player|}}}
|- {{#ifeq: {{{name|+}}} | {{{name|-}}} | | style="display:none" }}
| Name || {{{name}}}
|- {{#ifeq: {{{race|+}}} | {{{race|-}}}| | style="display: none;" }}
| Race || {{{race}}}
|- {{#ifeq: {{{theme|+}}} | {{{theme|-}}} | | style="display: none;" }}
|Theme|| {{{theme}}}
|- {{#ifeq: {{{class|+}}} | {{{class|-}}} | | style="display: none;" }}
| Class|| {{{class}}}
|- {{#ifeq: {{{homeworld|+}}} | {{{homeworld|-}}} | | style="display: none;" }}
| Homeword|| {{{homeworld}}}
|- {{#ifeq: {{{player|+}}} | {{{player|-}}} | | style="display: none;" }}
| Player || {{{player}}}
|- {{#ifeq: {{{faction|+}}} | {{{faction|-}}} | | style="display: none;" }}
| Faction || {{{faction|}}}
|- {{#ifeq: {{{status|+}}} | {{{status|-}}} | | style="display: none;" }}
| Status|| {{{status}}}
|}
|}
</div>
</div>
<div style="clear: both;"></div>
{{{content|}}}
{{{content|}}}
</div>
<div style="clear: both;"></div>
<div style="clear: both;"></div>
</div>
</div></includeonly>
<noinclude>
<noinclude>
<templatedata>
{
"description": "Character Cards",
"params": {
"name": {
"label": "Character name",
"required": false,
"suggested": true,
"description": "Character name"
},
"theme": {
"label": "Theme",
"required": false,
"description": "Theme"
},
"class": {
"label": "Class",
"required": false,
"description": "Class"
},
"homeworld": {
"label": "Homeworld",
"required": false,
"description": "Homeworld"
},
"player": {
"label": "Player",
"required": false,
"description": "Player"
},
"faction": {
"label": "Faction",
"required": false,
"description": "Faction"
},
"status": {
"label": "Status",
"required": false,
"description": "Alive? Dead? Missing?"
},
"pic": {
"label": "Picture",
"required": false,
"suggested": true,
"description": "A Pic - maybe with a link 128px",
"type": "wiki-file-name"
},
"extra": {
"label": "extra",
"required": false,
"description": "Text below the stats-block"
}
},
"paramOrder": [
"pic",
"name",
"theme",
"class",
"homeworld",
"player",
"faction",
"status",
"extra"
]
}
</templatedata>
=== Note ===
If you put Linefeeds or spaces between the instances they will get rendered as unevenness; that is just the nature of floating divs.
=== Usage ===
=== Usage ===
<pre>
Name    {{{name}}}
Race    {{{race}}}
Theme    {{{theme}}}
Class    {{{class}}}
Homeword {{{homeworld}}}
Player  {{{player}}}
Faction  {{{faction}}}
Status  {{{status}}}
Pic      {{{pic}}}}
extra    {{{content}}}


This template is used to the rounded box for a PC or NPC in a rounded box
{{stack
|name=
|race=
|theme=
|class=
|homeworld=
|player=
|faction=
|status=
|pic=
|content=}}


</pre>
==== Example ====
==== Example ====


&lcub;&lcub;stack|name=Mike|race=Human|theme=Indiana Jones Main Title|content=Extra text|class=none|player=Michael Sandler|pic=&lsqb;&lsqb;File:sandler.png|125px&rsqb;&rsqb;&rcub;&rcub;
<pre>
{{stack|name=Mike|race=Human|class=none|theme=Indiana Jones Main Title|content=Extra text|player=Michael Sandler|pic=[[File:sandler.png|125px]]}}
{{stack
 
|pic=[[File:Sir Not Appearing.jpg|120x120px]]
|name=Sir Not Appearing in This Film
|player=Vin Deisel
|class=Unknown
|theme=Unknown
|race=Human|status=Unknown
|homeworld=Earth
|faction=Unaligned
|content=Just some text}}
</pre>
{{stack
|pic=[[File:Sir Not Appearing.jpg|120x120px]]
|name=Sir Not Appearing in This Film
|player=Vin Deisel
|class=Unknown
|theme=Unknown
|race=Human
|status=Unknown
|homeworld=Earth
|faction=Unaligned
|content=Just some text}}
<div style="clear: both;"></div>
</noinclude>
</noinclude>

Latest revision as of 12:49, 28 October 2022


Character Cards

Template parameters

ParameterDescriptionTypeStatus
Picturepic

A Pic - maybe with a link 128px

Filesuggested
Character namename

Character name

Unknownsuggested
Themetheme

Theme

Unknownoptional
Classclass

Class

Unknownoptional
Homeworldhomeworld

Homeworld

Unknownoptional
Playerplayer

Player

Unknownoptional
Factionfaction

Faction

Unknownoptional
Statusstatus

Alive? Dead? Missing?

Unknownoptional
extraextra

Text below the stats-block

Unknownoptional

Note

If you put Linefeeds or spaces between the instances they will get rendered as unevenness; that is just the nature of floating divs.

Usage

Name     {{{name}}}
Race     {{{race}}}
Theme    {{{theme}}}
Class    {{{class}}}
Homeword {{{homeworld}}}
Player   {{{player}}}
Faction  {{{faction}}}
Status   {{{status}}}
Pic      {{{pic}}}}
extra    {{{content}}}

{{stack
|name=
|race=
|theme=
|class=
|homeworld=
|player=
|faction=
|status=
|pic=
|content=}}

Example

{{stack
|pic=[[File:Sir Not Appearing.jpg|120x120px]]
|name=Sir Not Appearing in This Film
|player=Vin Deisel
|class=Unknown
|theme=Unknown
|race=Human|status=Unknown
|homeworld=Earth
|faction=Unaligned
|content=Just some text}}
Sir Not Appearing.jpg
Name Sir Not Appearing in This Film
Race Human
Theme Unknown
Class Unknown
Homeword Earth
Player Vin Deisel
Faction Unaligned
Status Unknown

Just some text