Difference between revisions of "Template:Infobox doc"

From dieyoung
m
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{doc/start}}
+
__NOTOC__
This is just a generic infobox with a few sample fields
+
{| class="infobox wikitable floatright" style="margin-left: 10px; font-size:85%; width:350px; clear:right; cellpadding="3"
== Usage ==
+
! colspan="2" style="background-color:#e6e6e6; padding:5px;" | {{{name|{{PAGENAME}}}}}
<pre style="overflow: auto;">
+
|- style="vertical-align:top;"
{{Infobox doc
+
{{#if: {{{category<includeonly>|</includeonly>}}} | {{!}} '''Category''' {{!!}} {{{category}}} }}
| name    =  
+
|- style="vertical-align:top;"
| image    =  
+
{{#if: {{{location<includeonly>| </includeonly>}}} | {{!}} '''Pages''' {{!!}} {{{pages}}} }}
| size    = //optional, default is 250x250px
+
|- style="vertical-align:top;"
| race    =  
+
{{#if: {{{series<includeonly>|</includeonly>}}} | {{!}} '''Location''' {{!!}} {{{location}}} }}
| location =  
+
|- style="vertical-align:top;"
| source  =  
+
{{#if: {{{author<includeonly>|</includeonly>}}} | {{!}} '''Author(s)''' {{!!}} {{{author}}} }}
| reward  =  
+
|- style="vertical-align:top;"
| related  =  
+
{{#if: {{{location<includeonly>| </includeonly>}}} | {{!}} '''Date''' {{!!}} {{{date}}} }}
| ID      =
+
|-
}}
+
! colspan="2" style="background-color:#e6e6e6; padding:5px;" | Related Tasks
</pre>
+
|- style="vertical-align:top;"
 +
| colspan="2" {{!}} {{#if: {{{related tasks}}} | {{{related tasks}}} | None }}
 +
|-
 +
! colspan="2" style="background-color:#e6e6e6; padding:5px;" | Unlocked Recipes
 +
|- style="vertical-align:top;"
 +
| colspan="2" {{!}} {{#if: {{{unlocked recipes}}} | {{{unlocked recipes}}} | None }}
 +
|}
  
==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}}
 

Latest revision as of 22:12, 9 July 2020

Infobox doc
Category {{{category}}}
Pages {{{pages}}}
Location {{{location}}}
Author(s) {{{author}}}
Date {{{date}}}
Related Tasks
{{{related tasks}}}
Unlocked Recipes
{{{unlocked recipes}}}