Difference between revisions of "Template:Fb gd"

From blackwiki
Jump to navigation Jump to search
imported>AnomieBOT
imported>Jkudlick
(simplifying - negative calculations with automatically display negative symbol. This may also fix issue with positive GD displaying above wikitable.)
Line 1: Line 1:
 
<!-- Football goal difference
 
<!-- Football goal difference
{{{1}}} : goal for
+
{{{1}}} : goals for
{{{2}}} : goal against
+
{{{2}}} : goals against
 
   
 
   
-->{{#ifexpr:{{{1|0}}}>{{{2|0}}}|+{{#expr:{{{1|0}}}-{{{2|0}}}}}|{{#ifexpr:{{{1|0}}}<{{{2|0}}}|−{{#expr:{{{2}}}-{{{1}}}}}|0}}}}<!--
+
-->{{#ifexpr:{{{1|0}}}>{{{2|0}}}|+{{#expr:{{{1|0}}}-{{{2|0}}}}}|{{#expr:{{{1|0}}}-{{{2|0}}}}}}}<!--
 
--><noinclude>
 
--><noinclude>
 
{{documentation}}
 
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 00:54, 20 April 2016

0

Template documentation[view] [edit] [history] [purge]

This template is used to display goal differences, given the number of goals for and goals against. The template is used as such:

{{fb gd|number of goals for|number of goals against}}

fr:Modèle:Fb diff ka:თარგი:ფბ სხვაობა