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

Template:Faction Infobox: Difference between revisions

From the Assassin's Creed Wiki
Jump to navigation Jump to search
imported>Thisismyrofl
width
imported>Weas-El
added margin bottom and left, minor cleanup
Line 1: Line 1:
<includeonly>{|style="background:taansparent; border: 1px #AAAAAA solid; float:right; padding: 6px; -moz-border-radius:7px;"
<includeonly>{|style="background:transparent; border:1px #AAAAAA solid; float:right; padding:6px; -moz-border-radius:7px; margin:0 0 0.5em 0.5em;"
|
|
{|style="width: 250px; float:right; background:transparent"
{|style="width:250px; float:right; background:transparent;"
|-
|-
| colspan=2 align=center | '''<big>{{BASEPAGENAME}}</big>'''
| colspan="2" align="center" | '''<big>{{BASEPAGENAME}}</big>'''
|-
|-
{{#if: {{{image|}}} | {{!}}colspan=2 align=center style="-moz-border-radius:3.5px; background:transparent"{{!}}<p>[[Image:{{{image}}}{{!}}{{{imgwidth|200}}}px]]</p>
{{#if: {{{image|}}} | {{!}}colspan="2" align="center" style="-moz-border-radius:3.5px; background:transparent;"{{!}}<p>[[Image:{{{image}}}{{!}}{{{imgwidth|200}}}px]]</p>
{{!}}-
{{!}}-
{{!}} {{#if: {{{imgdesc|}}} |colspan=2 align=center {{!}} <small>{{{imgdesc}}}</small>
{{!}} {{#if: {{{imgdesc|}}} |colspan="2" align="center" {{!}} <small>{{{imgdesc}}}</small>
{{!}}-
{{!}}-
{{!}}colspan=2 {{!}} <p><hr></p> |
{{!}}colspan=2 {{!}} <p><hr></p> |
Line 13: Line 13:
}}
}}
|- style="font-size:90%" valign="top"
|- style="font-size:90%" valign="top"
{{#if: {{{game|}}} | {{!}}'''Appears in:''' {{!}}{{!}} align=right {{!}} {{{game}}}|
{{#if: {{{game|}}} | {{!}}'''Appears in:''' {{!}}{{!}} align="right" {{!}} {{{game}}}|
}}
}}
|- style="font-size:90%" valign="top"
|- style="font-size:90%" valign="top"
{{#if: {{{religion|}}} | {{!}}'''Religion:''' {{!}}{{!}} align=right {{!}} {{{religion}}}|
{{#if: {{{religion|}}} | {{!}}'''Religion:''' {{!}}{{!}} align="right" {{!}} {{{religion}}}|
}}
}}
|- style="font-size:90%" valign="top"
|- style="font-size:90%" valign="top"
{{#if: {{{nationality|}}} | {{!}}'''Nationality:''' {{!}}{{!}} align=right {{!}} {{{nationality}}}|
{{#if: {{{nationality|}}} | {{!}}'''Nationality:''' {{!}}{{!}} align="right" {{!}} {{{nationality}}}|
}}
}}
|- style="font-size:90%" valign="top"
|- style="font-size:90%" valign="top"
{{#if: {{{location|}}} | {{!}}'''Location:''' {{!}}{{!}} align=right {{!}} {{{location}}}|
{{#if: {{{location|}}} | {{!}}'''Location:''' {{!}}{{!}} align="right" {{!}} {{{location}}}|
}}
}}
|- style="font-size:90%" valign="top"
|- style="font-size:90%" valign="top"
{{#if: {{{targets|}}} | {{!}} style="border-top:1px solid silver" colspan=2 {{!}} '''Assassination targets:'''
{{#if: {{{targets|}}} | {{!}} style="border-top:1px solid silver" colspan="2" {{!}} '''Assassination targets:'''
{{!}}-
{{!}}-
{{!}} align=center colspan=2 {{!}} {{{targets}}} | }}
{{!}} align="center" colspan="2" {{!}} {{{targets}}} | }}
|-
|-
|}
|}
|}[[Category:Factions]]</includeonly><noinclude>{{Faction Infobox
|}[[Category:Factions]]</includeonly><noinclude>
{{Faction Infobox
|image= Example.jpg
|image= Example.jpg
|imgdesc= Image Description
|imgdesc= Image Description
Line 38: Line 39:
|targets= Assassination targets
|targets= Assassination targets
|game= Appears in
|game= Appears in
}}This is an infobox designed to be used on articles about factions.
}}
This is an infobox designed to be used on articles about factions.


Copy this:<br>
Copy this:
<pre>
<pre>
{{Faction Infobox
{{Faction Infobox
Line 54: Line 56:
</pre>
</pre>


;image=:The file to be used in the infobox. OMIT "File:" and wiki markup. <tt><nowiki>[[File:Example.jpg]]</nowiki></tt> becomes just <tt><nowiki>Example.jpg</nowiki></tt>
;image=:The file to be used in the infobox. OMIT "File:" and wiki markup. <tt><nowiki>[[File:Example.jpg]]</nowiki></tt> becomes just <tt><nowiki>Example.jpg</nowiki></tt>
:This template has been coded to account for if no image is given- the field is just left blank.
:This template has been coded to account for if no image is given- the field is just left blank.
;imgdesc=:The small text that will appear under the Image.
;imgdesc=:The small text that will appear under the Image.
;imgwidth=:The width of the image, in pixels. Defaults to 200.
;imgwidth=:The width of the image, in pixels. Defaults to 200.
:If field is left blank, it defaults to the name of the page. If no Image is given, no Image Description will show.
:If field is left blank, it defaults to the name of the page. If no Image is given, no Image Description will show.
;religion=:The religious affiliation of the faction.
;religion=:The religious affiliation of the faction.
;nationality=:The nationality of the faction.
;nationality=:The nationality of the faction.
Line 65: Line 67:
;game=:The game(s) in which this faction appears.
;game=:The game(s) in which this faction appears.


 
You can omit any field or leave it blank, and the entire field will, in the end result, be cleanly omitted. This includes the image= and imgdesc= fields.
You can omit any field or leave it blank, and the entire field will, in the end result, be cleanly omitted. This includes the image= and imgdesc= fields.
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
[[Category:Infobox templates]]</noinclude>

Revision as of 12:32, 16 August 2010

Faction Infobox

Image Description


Appears in: Appears in
Religion: Religion
Nationality: Nationality
Location: Location
Assassination targets:
Assassination targets

This is an infobox designed to be used on articles about factions.

Copy this:

{{Faction Infobox
|image       = 
|imgdesc     = 
|imgwidth    = 
|religion    = 
|nationality = 
|location    = 
|targets     = 
|game        = 
}}
image=
The file to be used in the infobox. OMIT "File:" and wiki markup. [[File:Example.jpg]] becomes just Example.jpg
This template has been coded to account for if no image is given- the field is just left blank.
imgdesc=
The small text that will appear under the Image.
imgwidth=
The width of the image, in pixels. Defaults to 200.
If field is left blank, it defaults to the name of the page. If no Image is given, no Image Description will show.
religion=
The religious affiliation of the faction.
nationality=
The nationality of the faction.
location=
The locations in which members of the faction may be found.
targets=
Assassination targets who are members of this faction.
game=
The game(s) in which this faction appears.

You can omit any field or leave it blank, and the entire field will, in the end result, be cleanly omitted. This includes the image= and imgdesc= fields.