Difference between revisions of "Template:Faction Infobox"

From Discovery Wiki
Jump to navigationJump to search
(New page: <div id="Organization_infobox" class="infobox hidable" style="padding: 0px; {{#if:{{{width|}}}|width:{{{width}}};|}}"> {| class="infoboxtable hidable-content" cellspacing="0" cellpadding="...)
 
(Removing all content from page)
Line 1: Line 1:
<div id="Organization_infobox" class="infobox hidable" style="padding: 0px; {{#if:{{{width|}}}|width:{{{width}}};|}}">
 
{| class="infoboxtable hidable-content" cellspacing="0" cellpadding="4" style="border-width: 0px"
 
|-
 
| class="infoboximage" colspan="2" style="{{#if:{{{imageBG|}}}|background: #{{{imageBG}}}|{{#if:{{#if:{{{BG1|}}}|{{{BG1}}}|999999}}|background: #{{#if:{{{BG1|}}}|{{{BG1}}}|999999}}|background: #999999}}}}" | {{{image|}}}
 
|-
 
! class="infoboxheading" colspan="2" style="{{#if:{{#if:{{{BG1|}}}|{{{BG1}}}|999999}}|background: #{{#if:{{{BG1|}}}|{{{BG1}}}|999999}}|background: #999999}}; {{{css|}}}" | {{{{{{2|name}}}}}}
 
{{#if:{{{hidei|}}}|{{!}}-|{{!}}-
 
! class="infoboxsubheading" colspan="2" style="background: #{{#if:{{{BG2|}}}|{{{BG2}}}|CCCCCC}}" {{!}} '''General information'''}}
 
{{#if:{{{founder|}}}|
 
{{!}}-
 
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Founder(s)
 
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
{{{founder|}}}
 
{{!}}-
 
|}}{{#if:{{{leader|}}}|
 
{{!}}-
 
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Leader(s)
 
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
{{{leader|}}}
 
{{!}}-
 
|}}{{#if:{{{members|}}}|
 
{{!}}-
 
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Notable members
 
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
{{{members|}}}
 
{{!}}-
 
|}}{{#if:{{{headquarters|}}}|
 
{{!}}-
 
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Headquarters
 
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
{{{headquarters|}}}
 
{{!}}-
 
|}}{{#if:{{{locations|}}}|
 
{{!}}-
 
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Locations
 
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
{{{locations|}}}
 
{{!}}-
 
|}}{{#if:{{{hideh|}}}|{{!}}-|{{!}}-
 
! class="infoboxsubheading" colspan="2" style="background: #{{#if:{{{BG2|}}}|{{{BG2}}}|CCCCCC}}" {{!}} '''Historical information'''}}
 
{{#if:{{{formed|}}}|
 
{{!}}-
 
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Formed from
 
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
{{{formed|}}}
 
{{!}}-
 
|}}{{#if:{{{founded|}}}|
 
{{!}}-
 
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Founding
 
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
{{{founded|}}}
 
{{!}}-
 
|}}{{#if:{{{fragmented|}}}|
 
{{!}}-
 
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Fragmentation
 
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
{{{fragmented|}}}
 
{{!}}-
 
|}}{{#if:{{{reorganized|}}}|
 
{{!}}-
 
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Reorganization
 
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
{{{reorganized|}}}
 
{{!}}-
 
|}}{{#if:{{{dissolved|}}}|
 
{{!}}-
 
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Dissolution
 
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
{{{dissolved|}}}
 
{{!}}-
 
|}}{{#if:{{{restored|}}}|
 
{{!}}-
 
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Restoration
 
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
{{{restored|}}}
 
{{!}}-
 
|}}{{#if:{{{hideot|}}}|{{!}}-|{{!}}-
 
! class="infoboxsubheading" colspan="2" style="background: #{{#if:{{{BG2|}}}|{{{BG2}}}|CCCCCC}}" {{!}} '''Other information'''}}
 
{{!}}-
 
|}}{{#if:{{{affiliation|}}}|
 
{{!}}-
 
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Affiliation
 
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
{{{affiliation|}}}
 
{{!}}-
 
|}}
 
|}
 
<div class="infoboxfooter plainlinks" style="text-align: center; {{#if:{{#if:{{{BG1|}}}|{{{BG1}}}|999999}}|background: #{{#if:{{{BG1|}}}|{{{BG1}}}|999999}}|background: #999999}}"><span class="hidable-button"></span>[[{{{srclink|Template:Organization infobox}}}|[Source]]]</div>
 
{{#if:{{#if:{{{BG1|}}}|{{{BG1}}}|999999}}|{{rb|#{{#if:{{{BG1|}}}|{{{BG1}}}|999999}}}}|{{rb|#999999}}}}</div><!-- TEMPLATE ENDS HERE. In order to regenerate the template, replace the code above with the source code provided. --><noinclude>
 
{{Clear}}
 
==Data fields==
 
*name
 
*image
 
*founder
 
*leader
 
*members
 
*headquarters
 
*locations
 
*formed
 
*founded
 
*fragmented
 
*reorganized
 
*dissolved
 
*restored
 
*affiliation
 
*BG1 (optional color modifier)
 
*BG2 (optional color modifier)
 
  
==Display parameters==
 
*hidei (General information)
 
*hideh (Historical information)
 
*hideo (Other information)
 
 
==Usage instructions==
 
Copy and paste the following code into the top of the article, filling the appropriate fields. Omitted or blank fields will not be shown on the article page.
 
 
'''Note: This template has customizable colors for both primary and secondary headings. However, the heading colors will default to shades of gray; choose your colors appropriately.'''
 
 
<pre><nowiki>{{Eras|}}
 
{{Organization_infobox
 
|BG1=
 
|BG2=
 
|imageBG=
 
|image=
 
|name=
 
|hidei=
 
|founder=
 
|leader=
 
|members=
 
|headquarters=
 
|locations=
 
|hideh=
 
|formed=
 
|founded=
 
|fragmented=
 
|reorganized=
 
|dissolved=
 
|restored=
 
|hideot=
 
|affiliation=}}</nowiki></pre>
 
 
==Source==
 
<nowiki>{{Subst:Slh|{{#if:{{{BG1|}}}|{{{BG1}}}|999999}}}} {{Subst:Sli|{{#if:{{{BG1|}}}|{{{BG1}}}|999999}}}} {{Subst:Slc|{{#if:{{{BG1|}}}|{{{BG1}}}|999999}}}} {{Subst:Sls|General information|{{#if:{{{BG2|}}}|{{{BG2}}}|CCCCCC}}|hidei}} {{Subst:Sld|Founder(s)|founder}} {{Subst:Sld|Leader(s)|leader}} {{Subst:Sld|Notable members|members}} {{Subst:Sld|Headquarters|headquarters}} {{Subst:Sld|Locations|locations}} {{Subst:Sls|Historical information|{{#if:{{{BG2|}}}|{{{BG2}}}|CCCCCC}}|hideh}} {{Subst:Sld|Formed from|formed}} {{Subst:Sld|Founding|founded}} {{Subst:Sld|Fragmentation|fragmented}} {{Subst:Sld|Reorganization|reorganized}} {{Subst:Sld|Dissolution|dissolved}} {{Subst:Sld|Restoration|restored}} {{Subst:Sls|Other information|{{#if:{{{BG2|}}}|{{{BG2}}}|CCCCCC}}|hideot}} {{Subst:Sld|Affiliation|affiliation}} {{Subst:Slf|{{#if:{{{BG1|}}}|{{{BG1}}}|999999}}}}</nowiki>
 
 
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
 

Revision as of 14:22, 17 March 2008