FANDOM


 
Line 1: Line 1:
 
<onlyinclude><!--
 
<onlyinclude><!--
-->{{#ifeq:{{lc:{{{mode|}}}}}|box|<table style="margin: 0 auto 1em; background: #F5F5DC; border: 2px solid #000; width: 650px;"><tr><td style="padding: 0.4em;">}}<!--
 
   
-->{{#ifeq:{{{header|empty}}}|empty||<div style="font-size: 132%; font-weight: bold; margin-bottom: 0.25em;">{{{header}}}</div>}}<!--
+
-->{{#ifeq:{{lc:{{{mode|}}}}}|box|<!--
--><div style="margin-bottom: 0.25em;">{{{text|Text?}}}</div>
+
--><table class="va-intro-box" cellpadding="0" cellspacing="0"><tr><td><!--
  +
-->}}<!--
   
<table style="margin-bottom: {{#ifeq:{{{footer|empty}}}|empty|{{#ifeq:{{lc:{{{mode|}}}}}|box|0|1em}}|0.25em}};">
+
--><table class="va-intro" cellpadding="0" cellspacing="0"><!--
<tr>
 
{{#ifeq:{{lc:{{{image|}}}}}|none||<td>[[File:{{{image|Intro default.png}}}|x80px|link=]]</td>}}
 
<td style="font-size: 90%; vertical-align: top;" ><!--
 
-->{{#ifeq:{{{bullet1|empty}}}|empty||* {{{bullet1}}} }}<!--
 
-->{{#ifeq:{{{bullet2|empty}}}|empty||* {{{bullet2}}} }}<!--
 
-->{{#ifeq:{{{bullet3|empty}}}|empty||* {{{bullet3}}} }}<!--
 
-->{{#ifeq:{{{bullet4|empty}}}|empty||* {{{bullet4}}} }}<!--
 
-->{{#ifeq:{{{bullet5|empty}}}|empty||* {{{bullet5}}} }}
 
</td>
 
</tr>
 
</table><!--
 
   
-->{{#ifeq:{{{footer|empty}}}|empty||<div style="margin-bottom: {{#ifeq:{{lc:{{{mode|}}}}}|box|0|1em}};">{{{footer}}}</div> }}<!--
+
-->{{#if:{{{header|}}}|<!--
  +
--><tr><td class="va-intro-header va-intro-firstrow" colspan="{{#ifeq:{{lc:{{{image|}}}}}|none|1|2}}">{{{header}}}</td></tr><!--
  +
-->}}<!--
   
-->{{#ifeq:{{lc:{{{mode|}}}}}|box|</td></tr></table>}}<!--
+
--><tr><td class="va-intro-text{{#if:{{{header|}}}||&#032;va-intro-firstrow}}" colspan="{{#ifeq:{{lc:{{{image|}}}}}|none|1|2}}">{{#if:{{{text|}}}|{{{text|}}}|Text?}}</td></tr><!--
  +
  +
--><tr><!--
  +
-->{{#ifeq:{{lc:{{{image|}}}}}|none||<!--
  +
--><td class="va-intro-image">[[File:{{#if:{{{image|}}}|{{{image}}}|Intro default.png}}|x80px|link=]]</td><!--
  +
-->}}<!--
  +
--><td class="va-intro-bullets" style="{{#ifeq:{{lc:{{{image|}}}}}|none||padding-left: 0;}}"><!--
  +
-->{{#if:{{{bullet1|}}}|* {{{bullet1}}} }}<!--
  +
-->{{#if:{{{bullet2|}}}|* {{{bullet2}}} }}<!--
  +
-->{{#if:{{{bullet3|}}}|* {{{bullet3}}} }}<!--
  +
-->{{#if:{{{bullet4|}}}|* {{{bullet4}}} }}<!--
  +
-->{{#if:{{{bullet5|}}}|* {{{bullet5}}} }}<!--
  +
--></td><!--
  +
--></tr><!--
  +
  +
-->{{#if:{{{footer|}}}|<!--
  +
--><tr><td class="va-intro-footer" colspan="{{#ifeq:{{lc:{{{image|}}}}}|none|1|2}}">{{{footer}}}</td></tr><!--
  +
-->}}<!--
  +
  +
--></table><!--
  +
  +
-->{{#ifeq:{{lc:{{{mode|}}}}}|box|<!--
  +
--></td></tr></table><!--
  +
-->}}<!--
   
 
--></onlyinclude>
 
--></onlyinclude>
{{Documentation}}
+
{{documentation}}
[[Category:Intro templates]]
+
[[Category:Meta templates]]
  +
[[Category:Intro templates| ]]
  +
[[no:Mal:Intro]]

Latest revision as of 10:34, February 24, 2011

Text?
Intro default
[view · edit · purge]
Template documentation (for the template shown above, sometimes hidden or invisible)

Meta-template for constructing standardized intro text templates.

UsageEdit

{{Intro
|image   =Intro default.png
|text    =This is the text which appears above the image and bulleted list.
|bullet1 =The first item in the bulleted list
|bullet2 =The second item in the bulleted list
|bullet3 =The third item in the bulleted list
}}

ParametersEdit

R
text
Text which appears above image and list. Should usually contain a sentence like "This page lists content in game".
S
bullet1 up to bullet5
Items in the bulleted list. If set to "empty" (or not given at all), the corresponding list item will not be displayed. It is recommended to specify 3 or 4 list items.
N
footer
Text displayed below image and list.
N
header
Text displayed above text, headline-style.
N
(default: "Intro default.png")
image
Image to be displayed to the left of the bulleted list. If set to "none", no image will be displayed.
N
mode
If set to "box", the template will be put in a box and centered.

Copy/pasteEdit

{{Intro
|mode    =default
|image   =
|header  =
|text    =
|bullet1 =
|bullet2 =
|bullet3 =
|bullet4 =
|bullet5 =
|footer  =
}}

ExampleEdit

{{Intro
|image   =Intro default.png
|text    =This is the text which appears above the image and bulleted list.
|bullet1 =The first item in the bulleted list
|bullet2 =The second item in the bulleted list
|bullet3 =The third item in the bulleted list
}}

results in:

This is the text which appears above the image and bulleted list.
Intro default
  • The first item in the bulleted list
  • The second item in the bulleted list
  • The third item in the bulleted list
Documentation transcluded from Template:Intro/doc.
no:Mal:Intro
Community content is available under CC-BY-SA unless otherwise noted.