Difference between revisions of "Template:IdentifyFriendOrFoe"

From The Shartak Wiki
Jump to navigationJump to search
m (→‎Usage: Typo.)
(Allowed for left/center/right alignment and updated usage notes.)
Line 1: Line 1:
<div style="float:{{{float|left}}}; border:1px solid #ffe671; margin:1px">
+
{| cellspacing="0" style="border:1px solid #ffe671; {{ifeq:{{{float|none}}}|none|margin: 0 auto;|float: {{{float|left}}};}} width: 238px"
{| cellspacing="0" style="width:238px"
 
 
| style="width:45px; height:45px; background:#ffe671; text-align:center" | [[Image:Guilder.png|35px]]
 
| style="width:45px; height:45px; background:#ffe671; text-align:center" | [[Image:Guilder.png|35px]]
 
| style="font-size: 90%; background:#fff6cd; line-height: 140%; padding: 5px" | This user or clan supports the '''[[Identify Friend or Foe]]''' initiative.
 
| style="font-size: 90%; background:#fff6cd; line-height: 140%; padding: 5px" | This user or clan supports the '''[[Identify Friend or Foe]]''' initiative.
|}
+
|}{{ifeq:{{{float|none}}}|none||<br style="clear: both" />}}
</div><br style="clear: both" />
 
 
<includeonly>[[Category:IFF supporter|{{PAGENAME}}]]</includeonly><noinclude>
 
<includeonly>[[Category:IFF supporter|{{PAGENAME}}]]</includeonly><noinclude>
 
==Usage==
 
==Usage==
 
 
Simply add the following to any page where you wish this to be displayed:
 
Simply add the following to any page where you wish this to be displayed:
 +
:<nowiki>{{IdentifyFriendOrFoe}}</nowiki>
  
:<nowiki>{{IdentifyFriendOrFoe}}</nowiki>
+
The template will be centered by default. An optional ''float'' parameter may be specified to display the image at the left or right of a page instead of the left, as in:
 +
:<nowiki>{{IdentifyFriendOrFoe|float=left}}</nowiki>
  
An optional ''float'' parameter may be specified to display the image at the right of a page (''float=right'') instead of the left:
+
Changing "left" to "right" will show the template at the right of the page instead.
:<nowiki>{{IdentifyFriendOrFoe|float=right}}</nowiki>
 
  
[[Category:Templates]]
+
[[Category:Templates]]</noinclude>
</noinclude>
 

Revision as of 02:11, 1 August 2006

Guilder.png This user or clan supports the Identify Friend or Foe initiative.

Template:Ifeq:none

Usage

Simply add the following to any page where you wish this to be displayed:

{{IdentifyFriendOrFoe}}

The template will be centered by default. An optional float parameter may be specified to display the image at the left or right of a page instead of the left, as in:

{{IdentifyFriendOrFoe|float=left}}

Changing "left" to "right" will show the template at the right of the page instead.