Difference between revisions of "Template:IdentifyFriendOrFoe"

From The Shartak Wiki
Jump to navigationJump to search
(Fixing.. I hope.. after the ParserFunctions and wiki upgrade)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| align="center" style="margin: 0em 2em 0em 2em; border:solid #FFFF99 2px; width: 500px;"
+
{| cellspacing="0" style="border:1px solid #ffe671; {{#ifeq:{{{float|none}}}|none|margin-left: auto; margin-right: auto;|float: {{{float|left}}};}} margin-top: 1px; margin-bottom: 1px; width: 238px"
|rowspan=2|[[Image:Goldcoin.png]]||style="background: #FFFF99; text-align: center;"|'''[[:Category:IFF_supporter|Identify Friend or Foe Supporter]]'''
+
| 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%; text-align: center;"|This User or Group supports the [[Identify Friend or Foe]] initiative & acknowledges that before attacking, it should be certain that the potential target is in fact a foe by the exchange of a coin.
+
|}{{#ifeq:{{{float|none}}}|none||<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:
 +
:<nowiki>{{IdentifyFriendOrFoe}}</nowiki>
  
Simply add the following to any page where you with this to be displayed:
+
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>
  
<nowiki>{{IdentifyFriendOrFoe}}</nowiki>
+
Changing "left" to "right" will show the template at the right of the page instead.
  
[[Category:{{PAGENAME}}]]
+
[[Category:Templates]]</noinclude>
</noinclude>
 

Latest revision as of 21:37, 3 September 2008

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

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.