Difference between revisions of "Template:Infobox doc"

From dieyoung
m
Line 1: Line 1:
{{doc/start}}
+
{| class="infobox wikitable" style="background-color:#333; font-size:85%; width:350px; float:right; clear:right; border: 1px solid gray;" cellpadding="3"
This is just a generic infobox with a few sample fields
+
|- style="text-align:center;"
== Usage ==
+
{{#if: {{{image<includeonly>|</includeonly>}}} | {{!}} colspan="2" style="padding:0;" {{!}} [[{{{image}}}|{{{imagewidth|350}}}px]] }}
<pre style="overflow: auto;">
+
|- style="vertical-align:top;"
{{Infobox doc
+
{{#if: {{{author<includeonly>|</includeonly>}}} | {{!}} '''Author''' {{!!}} {{{author}}} }}
| name    =
+
|- style="vertical-align:top;"
| image    =  
+
{{#if: {{{series<includeonly>|</includeonly>}}} | {{!}} '''Series''' {{!!}} {{{series}}} }}
| size    = //optional, default is 250x250px
+
|- style="vertical-align:top;"
| race    =  
+
{{#if: {{{location<includeonly>| </includeonly>}}} | {{!}} '''Found In''' {{!!}} {{{location}}} }}
| location =
+
|- style="vertical-align:top;"
| source  =  
+
{{#if: {{{related docs<includeonly>| </includeonly>}}} | {{!}} '''Related Docs''' {{!!}} {{{related docs}}} }}
| reward  =
+
|}
| related =
 
| ID      =
 
}}
 
</pre>
 
  
==Example==
+
{{#ifeq: {{PAGENAME}} | Infobox docs | [[Category: Infoboxes]] | [[Category: Documents]] }}
{{Infobox doc
 
| name    = Hydra guy
 
| image    = Curse hydra.png
 
| race    = Plushie
 
| location = Curse Headquarters
 
| source  = [[User:Encredechine{{!}}Encredechine]]
 
| reward  =
 
| related  = Fun
 
| ID      =
 
}}
 
<pre style="overflow: auto;">
 
{{Infobox
 
| name    = Hydra guy
 
| image    = Curse hydra.png
 
| race    = Plushie
 
| location = Curse Headquarters
 
| source  = [[User:Encredechine{{!}}Encredechine]]
 
| reward  =
 
| related  = Fun
 
| ID      =
 
}}
 
</pre>
 
{{clear}}
 
{{doc/end}}
 

Revision as of 03:25, 27 December 2019

[[{{{image}}}|350px]]
Author {{{author}}}
Series {{{series}}}
Found In {{{location}}}
Related Docs {{{related docs}}}