Difference between revisions of "Template:Fb gd"

From blackwiki
Jump to navigation Jump to search
imported>Jkudlick
(simplifying - negative calculations with automatically display negative symbol. This may also fix issue with positive GD displaying above wikitable.)
imported>Jkudlick
(Undid revision 716119593 by Jkudlick (talk) worked in my sandbox, seems broken when used live. self-reverting until proper fix found.)
Line 1: Line 1:
 
<!-- Football goal difference
 
<!-- Football goal difference
{{{1}}} : goals for
+
{{{1}}} : goal for
{{{2}}} : goals against
+
{{{2}}} : goal against
 
   
 
   
-->{{#ifexpr:{{{1|0}}}>{{{2|0}}}|+{{#expr:{{{1|0}}}-{{{2|0}}}}}|{{#expr:{{{1|0}}}-{{{2|0}}}}}}}<!--
+
-->{{#ifexpr:{{{1|0}}}>{{{2|0}}}|+{{#expr:{{{1|0}}}-{{{2|0}}}}}|{{#ifexpr:{{{1|0}}}<{{{2|0}}}|−{{#expr:{{{2}}}-{{{1}}}}}|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 01:41, 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:თარგი:ფბ სხვაობა