Welcome to Assassin's Creed Wiki! Log in and join the community.

Template:Project Infobox: Difference between revisions

From the Assassin's Creed Wiki
Jump to navigation Jump to search
imported>D. Cello
No edit summary
imported>TheCreedX
No edit summary
 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div id="Template:WPinfobox" class="infobox" style="padding: 0px; {{#if:{{{width|}}}|width:{{{width}}};|}}">
<infobox>
{| id="infoboxinternal" class="infoboxtable" cellspacing="0" cellpadding="4" style="border-width: 0px"
<title source="name"><default>{{PAGENAME}}</default></title>
|-
<image source="image"/>
| class="infoboximage" colspan="2" style="{{#if:{{{imageBG|}}}|background: #{{{imageBG}}}|{{#if:{{#if:{{{BG1|}}}|{{{BG1}}}|181818}}|background: #{{#if:{{{BG1|}}}|{{{BG1}}}|181818}}|background: #181818}}}}" | {{{image|}}}
    <group>
|-
        <header>Project information</header>
! class="infoboxheading" colspan="2" style="{{#if:{{#if:{{{BG1|}}}|{{{BG1}}}|181818}}|background: #{{#if:{{{BG1|}}}|{{{BG1}}}|181818}}|background: #181818}}; {{{css|}}}" | {{{{{{2|name}}}}}}
        <data source="founder"><label>Founder</label></data>
{{#if:{{{hideo|}}}|{{!}}-|{{!}}-
        <data source="founded"><label>Founded</label></data>
! class="infoboxsubheading" colspan="2" style="width:250px; background: #{{#if:{{{BG2|}}}|{{{BG2}}}|CCCCCC}}" {{!}} '''Project information'''}}
        <data source="focus"><label>Focus</label></data>
{{#if:{{{founder|}}}|
        <data source="chiefeditor"><label>Chief Editor</label></data>
{{!}}-
    </group>
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Founder(s)
    <group>
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
        <header>Article information</header>
{{{founder|}}}
    <data source="currentmainfocus"><label>Current Main Focus</label></data>
{{!}}-
    <data source="fas"><label>Featured Articles</label></data>
|}} {{#if:{{{founded|}}}|
    <data source="gas"><label>Good Articles</label></data>
{{!}}-
    <data source="total"><label>Total Articles</label></data>
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Founded
    </group>
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
</infobox><noinclude>{{Clear}}{{documentation}}</noinclude>
{{{founded|}}}
{{!}}-
|}} {{#if:{{{focus|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Focus
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{focus|}}}
{{!}}-
|}} {{#if:{{{ledby|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Led&nbsp;by
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{ledby|}}}
{{!}}-
|}} {{#if:{{{chiefeditor|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Chief&nbsp;Editor
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{chiefeditor|}}}
{{!}}-
|}} {{#if:{{{hidec|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="background: #{{#if:{{{BG2|}}}|{{{BG2}}}|CCCCCC}}" {{!}} '''Article information'''}}
{{#if:{{{currentmainfocus|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Current&nbsp;main&nbsp;focus
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{currentmainfocus|}}}
{{!}}-
|}} {{#if:{{{featuredarticles|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Featured&nbsp;articles
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{featuredarticles|}}}
{{!}}-
|}} {{#if:{{{restoredfeaturedarticles|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Restored&nbsp;featured&nbsp;articles
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{restoredfeaturedarticles|}}}
{{!}}-
|}} {{#if:{{{goodarticles|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Good&nbsp;articles
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{goodarticles|}}}
{{!}}-
|}} {{#if:{{{restoredgoodarticles|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Restored&nbsp;good&nbsp;articles
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{restoredgoodarticles|}}}
{{!}}-
|}} {{#if:{{{totalarticles|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Total&nbsp;articles
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{totalarticles|}}}
{{!}}-
|}} {{#if:{{{hidec|}}}|{{!}}-|{{!}}-
! class="infoboxsubheading" colspan="2" style="background: #{{#if:{{{BG2|}}}|{{{BG2}}}|CCCCCC}}" {{!}} '''Writers and editors'''}}
{{#if:{{{participants|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Participants
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{participants|}}}
{{!}}-
|}} {{#if:{{{guests|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Guest writers
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{guests|}}}
{{!}}-
|}}
|}
<div class="infoboxfooter plainlinks" style="text-align: center; {{#if:{{#if:{{{BG1|}}}|{{{BG1}}}|181818}}|background: #{{#if:{{{BG1|}}}|{{{BG1}}}|181818}}|background: #181818}}"><span id="infoboxend"></span>[[{{{srclink|Template:Project infobox}}}|[Source]]]</div>
</div>
<noinclude>
{{clear}}
===Usage instructions===
Paste the following code at the beginning of the article, filing all relevant fields. If a field doesn't apply, just leave it blank.<br />
'''Note: This template has customizable colors for both primary and secondary headings. However, the heading colors will default to black and gray; choose your colors appropriately.'''
<pre><nowiki>
{{Template:WPinfobox
|BG1= <--primary heading coloring
|BG2= <--secondary heading coloring
|image=
|name=
|founder=
|founded=
|focus=
|ledby=
|chiefeditor=
|currentmainfocus=
|featuredarticles=
|restoredfeaturedarticles=
|goodarticles=
|restoredgoodarticles=
|participants=
|guests=}}
</nowiki></pre>
 
===Display parameters===
*hideo
*hidec
 
===Source===
<nowiki>
{{subst:slh|{{#if:{{{BG1|}}}|{{{BG1}}}|181818}}}} {{subst:sli|{{#if:{{{BG1|}}}|{{{BG1}}}|181818}}}} {{subst:slc|{{#if:{{{BG1|}}}|{{{BG1}}}|181818}}}} {{subst:sls|Project information|{{#if:{{{BG2|}}}|{{{BG2}}}|CCCCCC}}|hideo}} {{subst:sld|Founder(s)|founder}} {{subst:sld|Founded|founded}} {{subst:sld|Focus|focus}} {{subst:sld|Led&nbsp;by|ledby}} {{subst:sld|Chief&nbsp;Editor|chiefeditor}} {{subst:sls|Article information|{{#if:{{{BG2|}}}|{{{BG2}}}|CCCCCC}}|hidec}} {{subst:sld|Current&nbsp;main&nbsp;focus|currentmainfocus}} {{subst:sld|Featured&nbsp;articles|dissolved}} {{subst:sld|Restored&nbsp;featured&nbsp;articles|restoredfeaturedarticles}} {{subst:sld|Good&nbsp;articles|goodarticles}} {{subst:sld|Restored&nbsp;good&nbsp;articles|restoredgoodarticles}} {{subst:sls|Article information|{{#if:{{{BG2|}}}|{{{BG2}}}|CCCCCC}}|hidec}} {{subst:sld|Participants|participants}} {{subst:sld|Guest writers|guests}}{{subst:slf|{{#if:{{{BG1|}}}|{{{BG1}}}|181818}}}}
</nowiki>
 
[[Category:Templates]]
</noinclude>

Latest revision as of 08:21, 17 December 2017

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Project_Infobox/doc to edit this documentation. (How does this work?)

Syntax[edit source]

To use this template, paste the following code into the top of the article, filling all relevant fields:

{{Project Infobox
|name = 
|image = 
|founder = 
|founded = 
|focus = 
|chiefeditor = 
|currentmainfocus = 
|fas = 
|gas = 
|total = 
}}