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>Thisismyrofl
No edit summary
imported>UJ112013
No edit summary
 
(32 intermediate revisions by 12 users not shown)
Line 1: Line 1:
<includeonly>{|style="background:transparent; border: 1px #AAAAAA solid; float:right; padding: 6px; -moz-border-radius:7px;"
<infobox>
|
<title source="name"><default>{{PAGENAME}}</default></title>
{|style="width: 250px; float:right; background:transparent"
<image source="image"/>
|-
<navigation>{{#if:{{{image|}}}||Have an image of this location?<br />Then please '''[[Special:Upload|upload]]''' it!}}</navigation>
| colspan=2 align=center | {{#if: {{{icon|}}} | [[File:{{{icon}}}{{!}}20px]] '''<big>{{BASEPAGENAME}}</big>''' [[File:{{{icon}}}{!}}20px]] | '''<big>{{BASEPAGENAME}}</big>''' }}
<group>
|-
<header>Political information</header>
{{#if: {{{image|}}} | {{!}}colspan=2 align=center style="-moz-border-radius:3.5px; background:#ffffff"{{!}}<p>[[Image:{{{image}}}{{!}}200px]]</p> |
        <data source="state"><label>Sovereign state</label></data>
}}
        <data source="rulers"><label>Government</label></data>
|- style="font-size:90%" valign="top"
        <data source="factions"><label>Factions</label></data>
{{#if: {{{heldby|}}} | {{!}}'''Controlled by:''' {{!}}{{!}} align=right {{!}} {{{heldby}}}|
    </group>
}}
     <group>
|- style="font-size:90%" valign="top"
        <header>Historical information</header>
{{#if: {{{factions|}}} | {{!}}'''Other factions:''' {{!}}{{!}} align=right {{!}} {{{factions}}}|
            <data source="founded"><label>Founded by</label></data>
}}
            <data source="date"><label>Date founded</label></data>
|- style="font-size:90%" valign="top"
            <data source="abandoned"><label>Date abandoned</label></data>
{{#if: {{{targets|}}} | {{!}}'''Assassination targets:''' {{!}}{{!}} align=right {{!}} {{{targets}}}|
    </group>
}}
    <group>
|- style="font-size:90%" valign="top"
        <header>Additional information</header>
{{#if: {{{flags|}}} | {{!}}'''[[Flags]]:''' {{!}}{{!}} align=right {{!}} {{{flags}}}|
            <data source="coordinates"><label>Coordinates</label></data>
}}
            <data source="landmark"><label>Notable landmarks</label></data>
|- style="font-size:90%" valign="top"
            <data source="flags"><label>Flags</label></data>
{{#if: {{{seenin|}}} | {{!}}'''Seen in:''' {{!}}{{!}} align=right {{!}} {{{seenin}}}|
            <data source="targets"><label>Assassination targets</label></data>
}}
    </group>
|-
</infobox>
|}
<noinclude>{{Clear}}{{documentation}}</noinclude>
|}[[Category:Characters]]</includeonly><noinclude>{{Location Infobox
|image= Example.jpg
|icon= Damascus.svg
|heldby= Held by
|factions= Factions
|targets= Targets
|flags= Flags
|seenin= Appearances
}}This is an infobox designed to be used on articles about locations.  To use, copy this:<br>
<pre>
{{Location Infobox
|image    =
|icon     =
|heldby  =
|factions =  
|targets  =  
|flags    =  
|seenin  =
}}
</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>
: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>
: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?
;factions=:The factions who can be found in the city.
;targets=:The assassination targets found in the city.
;flags=:Which [[flags]] are found in the city?
;seenin=:In which game does the city appear?
 
 
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.</noinclude>

Latest revision as of 14:39, 28 January 2023

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[edit source]

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

Syntax[edit source]

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.