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

Template:Location Infobox: Difference between revisions

From the Assassin's Creed Wiki
Jump to navigation Jump to search
imported>Weas-El
m added margin bottom and left
imported>Jasca Ducato
m updating parameters
Line 1: Line 1:
<includeonly>{|style="background:transparent; border:1px #AAAAAA solid; float:right; padding:6px; -moz-border-radius:7px; margin:0 0 0.5em 0.5em;"
{| class="infobox" style="float:right; width:264px; font-size:90%; text-align:left; -moz-border-radius:7px; background:transparent; padding:6px;" cellspacing="0" cellpadding="3"
|
{|style="width:250px; float:right; background:transparent"
|-
|-
| colspan=2 align=center | {{#if: {{{icon|}}} | [[File:{{{icon}}}{{!}}left{{!}}{{{iconwidth|20}}}px]] '''<big>{{BASEPAGENAME}}</big>''' [[File:{{{icon}}}{{!}}right{{!}}{{{iconwidth|20}}}px]] | '''<big>{{BASEPAGENAME}}</big>''' }}
! colspan="2" style="font-size:130%; text-align:center;" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
|-
|-
{{#if: {{{image|}}} | {{!}}colspan=2 align=center{{!}}<p>[[Image:{{{image}}}{{!}}200px]]</p> |
| colspan="2" style="text-align:center; border-bottom:1px solid #AAA;" | {{#if:{{{image|}}}|[[File:{{{image}}}{{!}}250px]]|Have an emblem for this faction?<br />Then please '''[[Special:Upload|upload]]''' it!}}{{#if:{{{imgdesc|}}}|<br />{{{imgdesc}}}}}
}}
|-
|- style="font-size:90%" valign="top"
{{#if:{{{hidep|}}}|{{!}}-|{{!}}-
{{#if: {{{heldby|}}} | {{!}}'''Controlled by:''' {{!}}{{!}} align=right {{!}} {{{heldby}}}|
! class="infoboxsubheading" colspan="2" style="text-align:left; background: #{{#if:705C5C|705C5C|E55}}" {{!}} '''Political&nbsp;information'''}}
}}
{{#if:{{{state|}}}|
|- style="font-size:90%" valign="top"
{{!}}-
{{#if: {{{factions|}}} | {{!}}'''Other factions:''' {{!}}{{!}} align=right {{!}} {{{factions}}}|
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} '''''Soverign state'''''
}}
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
|- style="font-size:90%" valign="top"
{{{state|}}}
{{#if: {{{flags|}}} | {{!}}'''[[Flags]]:''' {{!}}{{!}} align=right {{!}} {{{flags}}}|
{{!}}-
}}
|}}{{#if:{{{rulers|}}}|
|- style="font-size:90%" valign="top"
{{!}}-
{{#if: {{{seenin|}}} | {{!}}'''Seen in:''' {{!}}{{!}} align=right {{!}} {{{seenin}}}|
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} '''''Ruling body'''''
}}
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
|- style="font-size:90%" valign="top"
{{{rulers|}}}
{{#if: {{{targets|}}} | {{!}} style="border-top:1px solid silver" colspan=2 align="center"{{!}} '''Assassination targets:'''
{{!}}-
|}}{{#if:{{{factions|}}}|
{{!}}-
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} '''''Other factions'''''
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
{{{factions|}}}
{{!}}-
{{!}}-
{{!}} colspan=2 align=center {{!}} {{{targets}}}|
|}}{{#if:{{{hideh|}}}|{{!}}-|{{!}}-
}}
! class="infoboxsubheading" colspan="2" style="text-align:left; background: #{{#if:705C5C|705C5C|E55}}" {{!}} '''Historical&nbsp;information'''}}
|-
{{#if:{{{founded|}}}|
|}
{{!}}-
|}</includeonly><noinclude>
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} '''''Founded by'''''
{{Location Infobox
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
|image= Example.jpg
{{{founded|}}}
|icon= Assassins_Crest_White.svg
{{!}}-
|heldby= Held by
|}}{{#if:{{{date|}}}|
|factions= Factions
{{!}}-
|targets= Targets
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} '''''Date founded'''''
|flags= Flags
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
|seenin= Appearances
{{{date|}}}
}}This is an infobox designed to be used on articles about locations.  To use, copy this:<br>
{{!}}-
<pre>
|}}{{#if:{{{abandoned|}}}|
{{Location Infobox
{{!}}-
|image    =  
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} '''''Date abandoned'''''
|icon      =  
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
|heldby    =
{{{abandoned|}}}
|factions  =
{{!}}-
|targets  =
|}}{{#if:{{{hidea|}}}|{{!}}-|{{!}}-
|flags    =
! class="infoboxsubheading" colspan="2" style="text-align:left; background: #{{#if:705C5C|705C5C|E55}}" {{!}} '''Additional&nbsp;information'''}}
|seenin    =
{{#if:{{{landmark|}}}|
}}
{{!}}-
</pre>
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} '''''Notable landmarks'''''
 
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
;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>
{{{landmark|}}}
:This template has been coded to account for if no image is given- the field is just left blank.
{{!}}-
;icon=:The file to be used in the small pictures on either side of the name at the top of the infobox.  OMIT "File:" and wiki markup.  <tt><nowiki>[[File:Example.svg]]</nowiki></tt> becomes just <tt><nowiki>Example.svg</nowiki></tt>
|}}{{#if:{{{flags|}}}|
:This template has been coded to account for if no icon is given- the field is just left blank.
{{!}}-
;heldby=:Is the area currently controlled by Assassins, Saracens, Crusaders, or disputed?
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} '''''Flags'''''
;factions=:The factions who can be found in the city.
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
;targets=:The assassination targets found in the city.
{{{flags|}}}
;flags=:Which [[flags]] are found in the city?
{{!}}-
;seenin=:In which game does the city appear?
|}}{{#if:{{{targets|}}}|
 
{{!}}-
 
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} '''''Assassination targets'''''
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.
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
{{{targets|}}}
===Advanced parameters===
{{!}}-
These are optional advanced parameters.
|}}
<pre>
|}<div class="infoboxfooter plainlinks" style="text-align: center |background:transparent|background: #705C5C}}"><span class="hidable-button"></span></div>
|iconwidth =
<noinclude>{{clear}}{{documentation}}</noinclude>
</pre>
 
;iconwidth=:The width of the icons flanking the large text at the top of the infobox.  Defaults to 20 pixels.
 
[[Category:Infobox templates]]</noinclude>

Revision as of 17:32, 24 October 2010

Location Infobox
Have an emblem for this faction?
Then please upload it!
Political information
Historical information
Additional information
Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Location_Infobox/doc to edit this documentation. (How does this work?)

Usage

{{Location Infobox
|name = 
|image = 
|state = 
|rulers = 
|factions = 
|founded = 
|date = 
|abandoned = 
|coordinates = 
|landmark = 
|flags = 
|targets = 
|}}

Syntax

name
The name of the location.
image
An image of the location. Omit the "File:" part of the image. E.g. "Example.jpg", not "File:Example.jpg".
state
The state in which the location is located.
rulers
The location's ruling body.
factions
A list of factions operating within the location.
founded
Whom the location was founded by.
date
The date the location was founded.
abandoned
The date the location was abandoned.
coordinates
The coordinates of the location.
landmark
A list of notable landmarks within the location.
flags
The number of flags located within the location.
targets
Assassination targets within the location.