Difference between revisions of "Template:CharacterPortal"

From ShadowHaven Reloaded
Jump to navigation Jump to search
Tag: visualeditor-wikitext
Tag: visualeditor-wikitext
Line 1: Line 1:
<includeonly>{| cellpadding=5 cellspacing=0 align="center" width: 100%; style="width: 100%; border: gray 2px solid; -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #222"
 
|-
 
|
 
<center>
 
<big>[[User:{{{User}}}|{{{User}}}]]'s Character Portal</big>
 
<gallery mode="packed-hover" heights=100px>
{{#if: {{{Character1|}}} |{{{Picture1|File:Placeholder.png}}}|link={{{Character1}}}|<small>[[{{{Character1}}}]]</small>}}
{{{Picture1}}}|link={{{Character1}}}|<small>[[{{{Character1}}}]]</small>
</gallery>
{{#ask: [[Category:Runs]] [[hasRunner::{{PAGENAME}}]]
|mainlabel=-
|format=datatables
|default=No runs yet. This list will auto-populate when this character is tagged in a run AAR.
|?=Name
|?hasGM=GM
|?hasMetaplot=Metaplot
|?hasDate=Date of Run
|?hasRunner=Team
|limit=1
|sort=hasDate
|order=descending
}}
</center>
|}</includeonly><noinclude>
{| cellpadding=5 cellspacing=0 style="border: gray 2px solid; width: 100%;  -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #444"
{| cellpadding=5 cellspacing=0 style="border: gray 2px solid; width: 100%;  -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #444"
|-  
|-  
|
|
==Useage==
==Useage==
Generates a character portal to be used alongside [[Template:Infobox Portal]] in the page it tries to pull from.
<pre>
{{CharacterPortal|
|Character1=
|Picture1=
}}
</pre>




This means the following
<pre>
{{CharacterPortal|
|Character1=Trash Panda
|Picture1=File:Trash Panda by Seru.jpg
}}
</pre>




will get you:


{{CharacterPortal|
|User=Teksura
|Character1=Trash Panda
|Picture1=File:Trash Panda by Seru.jpg
}}


[[Category:Templates]]
[[Category:Character Page Templates]]
|}
</noinclude>
</noinclude>

Revision as of 04:44, 23 June 2020



Useage