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

Template:X1: Difference between revisions

From the Assassin's Creed Wiki
Jump to navigation Jump to search
imported>Thisismyrofl
No edit summary
imported>Thisismyrofl
No edit summary
Line 3: Line 3:
► ► ► ► ► DO NOT DELETE ANYTHING ABOVE THE </nοinclude>.  Feel free to edit anything after the </nοinclude>. ◄ ◄ ◄ ◄ ◄
► ► ► ► ► DO NOT DELETE ANYTHING ABOVE THE </nοinclude>.  Feel free to edit anything after the </nοinclude>. ◄ ◄ ◄ ◄ ◄


--></noinclude><includeonly>{|style="background:transparent; border: 1px #AAAAAA solid; float:right; padding: 6px; -moz-border-radius:7px;"
--></noinclude><div style="position: relative; width: {{{xsize}}}px; height: {{{ysize}}}px; overflow: hidden;"><div style="position: absolute; top: 0; left: 0; font-size: 200pt; width: {{{xsize}}}px; height: {{{ysize}}}px;  overflow: hidden; line-height: {{{ysize}}}px; z-index: 3;">[[:{{{link|}}}|{{{alttext|&nbsp;}}}]]</div><div style="position: absolute; top: 0; left: 0; z-index: 2;">[[Image:{{{image|}}}|{{{xsize}}}px|image page]]</div></div><noinclude>
|
This is a template used to create images in articles that link not to the image page, but to an article of your choiceCopy this:
{|style="width: 250px; float:right; background:transparent"
|-
| colspan=2 align=center | {{#if: {{{icon|}}} | [[File:{{{icon}}}{{!}}left{{!}}20px]] '''<big>{{BASEPAGENAME}}</big>''' [[File:{{{icon}}}{{!}}right{{!}}20px]] | '''<big>{{BASEPAGENAME}}</big>''' }}
|-
{{#if: {{{image|}}} | {{!}}colspan=2 align=center style="-moz-border-radius:3.5px; background:#ffffff"{{!}}<p>[[Image:{{{image}}}{{!}}200px]]</p> |
}}
|- style="font-size:90%" valign="top"
{{#if: {{{heldby|}}} | {{!}}'''Controlled by:''' {{!}}{{!}} align=right {{!}} {{{heldby}}}|
}}
|- style="font-size:90%" valign="top"
{{#if: {{{factions|}}} | {{!}}'''Other factions:''' {{!}}{{!}} align=right {{!}} {{{factions}}}|
}}
|- style="font-size:90%" valign="top"
{{#if: {{{flags|}}} | {{!}}'''[[Flags]]:''' {{!}}{{!}} align=right {{!}} {{{flags}}}|
}}
|- style="font-size:90%" valign="top"
{{#if: {{{seenin|}}} | {{!}}'''Seen in:''' {{!}}{{!}} align=right {{!}} {{{seenin}}}|
}}
|- style="font-size:90%" valign="top"
{{#if: {{{targets|}}} | {{!}}  style="border-top:1px solid silver" colspan=2 align="center"{{!}} '''Assassination targets:'''
{{!}}-
{{!}} colspan=2 align=center {{!}} {{{targets}}}|
}}
|-
|}
|}[[Category:Locations]]</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 locationsTo 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>
<pre>{{Navimg
:This template has been coded to account for if no image is given- the field is just left blank.
|image   =
;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>
|link    =
:This template has been coded to account for if no icon is given- the field is just left blank.
|alttext =
;heldby=:Is the area currently controlled by Assassins, Saracens, Crusaders, or disputed?
|xsize  =
;factions=:The factions who can be found in the city.
|ysize  =</pre>
;targets=:The assassination targets found in the city.
;flags=:Which [[flags]] are found in the city?
;seenin=:In which game does the city appear?


;image=:The image displayed.  OMIT all wiki markup.  <code><nowiki>[[File:Example.jpg]]</nowiki></code> becomes just <code>Example.jpg</code>.
;link=:The article to link to.  OMIT all wiki markup.  <code><nowiki>[[Knights Templar]]</nowiki></code> becomes just <code>[[Knights Templar</code>.
;alttext=:The text that is displayed when the image is moused over for a second.
;xsize=:The width of the image, as it should be displayed.
;ysize=:The height of the image, as it should be displayed.


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.
'''ALL FIELDS ARE MANDATORY''' except for <code>alttext=</code>.


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 02:19, 1 August 2009

This page is a sandbox template. Edit it however you want, then use it as a template.

[[:| ]]
[[Image:|{{{xsize}}}px|image page]]

This is a template used to create images in articles that link not to the image page, but to an article of your choice. Copy this:

{{Navimg
|image   =
|link    =
|alttext =
|xsize   =
|ysize   =
image=
The image displayed. OMIT all wiki markup. [[File:Example.jpg]] becomes just Example.jpg.
link=
The article to link to. OMIT all wiki markup. [[Knights Templar]] becomes just [[Knights Templar.
alttext=
The text that is displayed when the image is moused over for a second.
xsize=
The width of the image, as it should be displayed.
ysize=
The height of the image, as it should be displayed.

ALL FIELDS ARE MANDATORY except for alttext=.