Difference between revisions of "User:Nat/Template:Version"

From Robowiki
Jump to navigation Jump to search
m (sandbox for my new template)
 
(not work at all, don't try to use this template, it do huge request to RRQuery API)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>Sandbox for my new version history item template. Base on [[Ocnirp/Version History]], [[Diamond/Version History]] and several other. Not complete yet.</noinclude>
 
<noinclude>Sandbox for my new version history item template. Base on [[Ocnirp/Version History]], [[Diamond/Version History]] and several other. Not complete yet.</noinclude>
 
----
 
----
<!-- Header -->
+
{{{{{subst|}}}if|test={{{subst|}}}|then=
'''{{{1}}}{{if|test={{{description|}}}|then=&nbsp;- {{{description|}}}}}'''
+
'''{{{version|''unreleased''}}}{{if|test={{{date|}}}|then=&nbsp;&ndash; {{{date|}}}}}'''{{if|test={{{tagline|}}}|then=&nbsp;&ndash; ''{{{tagline|}}}''}}
{{if|test={{{melee|}}}|then=
+
<includeonly><nowiki><!--
  {{if|test={{{1v1|}}}|then=
+
        ############## MELEE RUMBLE STATS ###################
    {{if|test={{{team|}}}|then=
+
-->{{ifeq|{{{melee|}}}|nochanges|* '''MeleeRumble - Not entered.'''
      <!-- 1v1, melee, team -->
+
}}<!--
    |else=
+
-->{{ifeq|{{{melee|}}}|pulled|* '''MeleeRumble - Pulled.'''
      <!-- 1v1 and melee -->
+
}}<!--
    }}
+
        ------------ NANO MELEE RUMBLE STATS ---------------
  |else=
+
-->{{ifeq|{{{melee|}}}|nano|* '''{{{subst:rumblestats:nanomeleerumble|{{{name}} {{{version}}}}}'''}}<!--
    <!-- melee only -->
+
        ------------ MICRO MELEE RUMBLE STATS ---------------
  }}
+
-->{{ifeq|{{{melee|}}}|micro|* '''{{{subst:rumblestats:micromeleerumble|{{{name}} {{{version}}}}}'''}}<!--
|else=
+
-->{{ifeq|{{{melee|}}}|nano|* '''{{{subst:rumblestats:micromeleerumble|{{{name}} {{{version}}}}}'''}}<!--
  {{if|{{{team|}}}|then=
+
        ------------ MINI MELEE RUMBLE STATS ---------------
    {{if|{{{melee|}}}|then=
+
-->{{ifeq|{{{melee|}}}|mini|* '''{{{subst:rumblestats:minimeleerumble|{{{name}} {{{version}}}}}'''}}<!--
      <!-- melee and team -->
+
-->{{ifeq|{{{melee|}}}|micro|* '''{{{subst:rumblestats:minimeleerumble|{{{name}} {{{version}}}}}'''}}<!--
    |else=
+
-->{{ifeq|{{{melee|}}}|nano|* '''{{{subst:rumblestats:minimeleerumble|{{{name}} {{{version}}}}}'''}}<!--
      <!-- team only -->
+
        ------------ GENERAL MELEE RUMBLE STATS --------------- -->
    }}
+
-->{{ifeq|{{{melee|}}}|yes|* '''{{{subst:rumblestats:meleerumble|{{{name}} {{{version}}}}}'''}}<!--
  |else=
+
-->{{ifeq|{{{melee|}}}|mini|* '''{{{subst:rumblestats:meleerumble|{{{name}} {{{version}}}}}'''}}<!--
    <!-- 1v1 only -->
+
-->{{ifeq|{{{melee|}}}|micro|* '''{{{subst:rumblestats:meleerumble|{{{name}} {{{version}}}}}'''}}<!--
  }}
+
-->{{ifeq|{{{melee|}}}|nano|* '''{{{subst:rumblestats:meleerumble|{{{name}} {{{version}}}}}'''}}<!--
 +
        ############## ROBORUMBLE STATS ###################
 +
-->{{ifeq|{{{oneOnOne|}}}|nochanges|* '''RoboRumble - Not entered.'''}}
 +
-->{{ifeq|{{{oneOnOne|}}}|pulled|* '''RoboRumble - Pulled.'''}}<!--
 +
        ------------ NANO ROBORUMBLE STATS ---------------
 +
-->{{ifeq|{{{oneOnOne|}}}|nano|* '''{{{subst:rumblestats:nanorumble|{{{name}} {{{version}}}}}'''}}<!--
 +
        ------------ MICRO ROBORUMBLE STATS ---------------
 +
-->{{ifeq|{{{oneOnOne|}}}|micro|* '''{{{subst:rumblestats:microrumble|{{{name}} {{{version}}}}}'''}}<!--
 +
-->{{ifeq|{{{oneOnOne|}}}|nano|* '''{{{subst:rumblestats:microrumble|{{{name}} {{{version}}}}}'''}}<!--
 +
        ------------ MINI ROBORUMBLE STATS ---------------
 +
-->{{ifeq|{{{oneOnOne|}}}|mini|* '''{{{subst:rumblestats:minirumble|{{{name}} {{{version}}}}}'''}}<!--
 +
-->{{ifeq|{{{oneOnOne|}}}|micro|* '''{{{subst:rumblestats:minirumble|{{{name}} {{{version}}}}}'''}}<!--
 +
-->{{ifeq|{{{oneOnOne|}}}|nano|* '''{{{subst:rumblestats:minirumble|{{{name}} {{{version}}}}}'''}}<!--
 +
        ------------ GENERAL ROBORUMBLE STATS ---------------
 +
-->{{ifeq|{{{oneOnOne|}}}|yes|* '''{{{subst:rumblestats:roborumble|{{{name}} {{{version}}}}}'''}}<!--
 +
-->{{ifeq|{{{oneOnOne|}}}|mini|* '''{{{subst:rumblestats:roborumble|{{{name}} {{{version}}}}}'''}}<!--
 +
-->{{ifeq|{{{oneOnOne|}}}|micro|* '''{{{subst:rumblestats:roborumble|{{{name}} {{{version}}}}}'''}}<!--
 +
-->{{ifeq|{{{oneOnOne|}}}|nano|* '''{{{subst:rumblestats:roborumble|{{{name}} {{{version}}}}}'''}}<!--
 +
        ############## TEAM RUMBLE STATS ###################
 +
-->{{ifeq|{{{team|}}}|nochanges|* '''TeamRumble - Not entered.'''}}<!--
 +
-->{{ifeq|{{{team|}}}|pulled|* '''TeamRumble - Pulled.'''}}<!--
 +
        ------------ TEAM RUMBLE STATS ---------------
 +
-->{{ifeq|{{{team|}}}|yes|* '''{{{subst:rumblestats:teamrumble|{{{name}} {{{version}}}}}'''}}<!--
 +
        ############## TWIN DUEL STATS ###################
 +
-->{{ifeq|{{{twinduel|}}}|nochanges|* '''Twin Duel - Not entered.'''}}
 +
-->{{ifeq|{{{twinduel|}}}|pulled|* '''Twin Duel - Pulled.'''}}<!--
 +
        ------------ TEAM RUMBLE STATS ---------------
 +
-->{{ifeq|{{{twinduel|}}}|yes|* '''{{{subst:rumblestats:twinduel|{{{name}} {{{version}}}}}'''}}<!--
 +
</nowiki></includeonly><noinclude>* '''The stats will only show on the real page.'''</noinclude>
 +
{{{list|* No changes}}}
 +
|else=ERROR! This template must be substituted with <nowiki>subst=subst:</nowiki> parameter
 
}}
 
}}
{{{list}}}
+
<noinclude>
----
+
== Test ==
Test:
+
{{User:Nat/Template:Version
{{User:Nat/Template:Version|1.0}}
+
| name = NP
 +
|version=1.32
 +
|date=Today
 +
|tagline=Test tagline
 +
|oneOnOne = micro
 +
}}
 +
</noinclude>

Latest revision as of 15:39, 19 August 2009

Sandbox for my new version history item template. Base on Ocnirp/Version History, Diamond/Version History and several other. Not complete yet.


ERROR! This template must be substituted with subst=subst: parameter

Test


ERROR! This template must be substituted with subst=subst: parameter