Difference between revisions of "Template:GenTab"

From BIONICLEsector01
(Undo revision 106172 by Surel-nuva (talk))
(Trying to fix a glitch where the text spreads to two lines)
Line 4: Line 4:
 
|gen1=
 
|gen1=
 
{{#if: {{{gen2|}}}
 
{{#if: {{{gen2|}}}
|[[{{FULLPAGENAME}}|<span style="display:block;padding:.25em 1.25em;float:left;{{Bevel|bg_color=#0797b0|tl=.5em|tr=0|bl=0|br=0}};font-size:1.25em;color:#fff;" id="gen1"><img>http://www.brickshelf.com/gallery/Infra-Red/BS01/gen1ignikanotextsmallwhite.svg</img> Generation 1</span>]][[{{{gen2}}}|<span style="display:block;padding:.25em 1.25em;float:left;{{Bevel|bg_color=#52b6c8|tl=0|tr=0|bl=0|br=.5em}}font-size:1.25em;color:#fff;" id="gen2"><img>http://www.brickshelf.com/gallery/Infra-Red/BS01/gen2maskofcreationnotextsmallwhite.svg</img> Generation 2</span>]]
+
|[[{{FULLPAGENAME}}|<span style="display:block;padding:.25em 1.25em;float:left;{{Bevel|bg_color=#0797b0|tl=.5em|tr=0|bl=0|br=0}};font-size:1.25em;color:#fff;" id="gen1"><img>http://www.brickshelf.com/gallery/Infra-Red/BS01/gen1ignikanotextsmallwhite.svg</img> Generation&nbsp1</span>]][[{{{gen2}}}|<span style="display:block;padding:.25em 1.25em;float:left;{{Bevel|bg_color=#52b6c8|tl=0|tr=0|bl=0|br=.5em}}font-size:1.25em;color:#fff;" id="gen2"><img>http://www.brickshelf.com/gallery/Infra-Red/BS01/gen2maskofcreationnotextsmallwhite.svg</img> Generation&nbsp2</span>]]
|[[{{FULLPAGENAME}}|<span style="display:block;padding:.25em 1.25em;float:left;{{Bevel|bg_color=#52b6c8|tl=.5em|tr=0|bl=0|br=.5em}};font-size:1.25em;color:#fff;" id="gen1"><img>http://www.brickshelf.com/gallery/Infra-Red/BS01/gen1ignikanotextsmallwhite.svg</img> Generation 1</span>]]}}
+
|[[{{FULLPAGENAME}}|<span style="display:block;padding:.25em 1.25em;float:left;{{Bevel|bg_color=#52b6c8|tl=.5em|tr=0|bl=0|br=.5em}};font-size:1.25em;color:#fff;" id="gen1"><img>http://www.brickshelf.com/gallery/Infra-Red/BS01/gen1ignikanotextsmallwhite.svg</img> Generation&nbsp1</span>]]}}
 
|gen2=
 
|gen2=
 
{{#if: {{{gen1|}}}
 
{{#if: {{{gen1|}}}
|[[{{{gen1}}}|<span style="display:block;padding:.25em 1.25em;float:left;{{Bevel|bg_color=#52b6c8|tl=.5em|tr=0|bl=0|br=0}};font-size:1.25em;color:#fff;" id="gen1"><img>http://www.brickshelf.com/gallery/Infra-Red/BS01/gen1ignikanotextsmallwhite.svg</img> Generation 1</span>]][[{{FULLPAGENAME}}|<span style="display:block;padding:.25em 1.25em;float:left;{{Bevel|bg_color=#0797b0|tl=0|tr=0|bl=0|br=.5em}}font-size:1.25em;color:#fff;" id="gen2"><img>http://www.brickshelf.com/gallery/Infra-Red/BS01/gen2maskofcreationnotextsmallwhite.svg</img> Generation 2</span>]]
+
|[[{{{gen1}}}|<span style="display:block;padding:.25em 1.25em;float:left;{{Bevel|bg_color=#52b6c8|tl=.5em|tr=0|bl=0|br=0}};font-size:1.25em;color:#fff;" id="gen1"><img>http://www.brickshelf.com/gallery/Infra-Red/BS01/gen1ignikanotextsmallwhite.svg</img> Generation&nbsp1</span>]][[{{FULLPAGENAME}}|<span style="display:block;padding:.25em 1.25em;float:left;{{Bevel|bg_color=#0797b0|tl=0|tr=0|bl=0|br=.5em}}font-size:1.25em;color:#fff;" id="gen2"><img>http://www.brickshelf.com/gallery/Infra-Red/BS01/gen2maskofcreationnotextsmallwhite.svg</img> Generation&nbsp2</span>]]
|[[{{FULLPAGENAME}}|<span style="display:block;padding:.25em 1.25em;float:left;{{Bevel|bg_color=#52b6c8|tl=.5em|tr=0|bl=0|br=.5em}};font-size:1.25em;color:#fff;" id="gen2"><img>http://www.brickshelf.com/gallery/Infra-Red/BS01/gen2maskofcreationnotextsmallwhite.svg</img> Generation 2</span>]]}}
+
|[[{{FULLPAGENAME}}|<span style="display:block;padding:.25em 1.25em;float:left;{{Bevel|bg_color=#52b6c8|tl=.5em|tr=0|bl=0|br=.5em}};font-size:1.25em;color:#fff;" id="gen2"><img>http://www.brickshelf.com/gallery/Infra-Red/BS01/gen2maskofcreationnotextsmallwhite.svg</img> Generation&nbsp2</span>]]}}
 
}}</div></includeonly><noinclude>
 
}}</div></includeonly><noinclude>
 
==Documentation==
 
==Documentation==

Revision as of 10:40, 5 August 2016

Documentation

This template produces an indicator at the top of an article that indicates which generation the article's topic corresponds to. There are four possibilities:

  • {{GenTab|gen1}} should be used when a page describes something that is only in generation 1 (e.g. Vakama)
  • {{GenTab|gen2}} should be used when a page describes something that is only in generation 2 (e.g. Ekimu)
  • {{GenTab|gen1|gen2=CORRESPONDING GEN 2 ARTICLE}} should be used when a page describes the generation 1 version of something that is in both generations (e.g. Tahu (Generation 1))
  • {{GenTab|gen2|gen1=CORRESPONDING GEN 1 ARTICLE}} should be used when a page describes the generation 2 version of something that is in both generations (e.g. Tahu (Generation 2))