Difference between revisions of "User:Piphi/Chess/Template:Game"

(Created page with "<center> {| style='background:#ffce9e;border:1px solid black;width:25%;font-size:12px;' class='wikitable' |+ style='text-align:center;font-size:12px;background:#d18b47;border:...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<center>
+
<includeonly><center>
 
{| style='background:#ffce9e;border:1px solid black;width:25%;font-size:12px;' class='wikitable'
 
{| style='background:#ffce9e;border:1px solid black;width:25%;font-size:12px;' class='wikitable'
 
|+ style='text-align:center;font-size:12px;background:#d18b47;border:none;' |'''[[User:Piphi/Chess|<span style="color:#ffffff;font-size:20px;">Piphi's Chess Games</span>]]'''
 
|+ style='text-align:center;font-size:12px;background:#d18b47;border:none;' |'''[[User:Piphi/Chess|<span style="color:#ffffff;font-size:20px;">Piphi's Chess Games</span>]]'''
 
|-  
 
|-  
| [[User:Piphi/Chess/Game_{{{p}}}|Previous game]] | '''Game {{{g}}}''' | [[User:Piphi/Chess/Game_{{{n}}}|Next game]]
+
| <center>'''{{{before|[[User:Piphi/Chess/Game_{{{p}}}|Previous Game]]}}}''' | '''Game {{{g}}}''' | '''[[User:Piphi/Chess/Game_{{{n}}}|Next game]]'''</center>
 
|}
 
|}
 
</center>
 
</center>
 
+
[[Category:Chess_Piphi]]</includeonly>
<includeonly>
 
[[Category:Chess_Piphi]]
 
</includeonly>
 
 
 
 
<noinclude>
 
<noinclude>
 
==Template documentation==
 
==Template documentation==
 
This template is to be used as follows:
 
This template is to be used as follows:
 
  <nowiki>{{User:Piphi/Chess/Template:Game</nowiki>|g='''''game number'''''|p='''''preceding game number'''''|n='''''next game number'''''}}
 
  <nowiki>{{User:Piphi/Chess/Template:Game</nowiki>|g='''''game number'''''|p='''''preceding game number'''''|n='''''next game number'''''}}
</noinclude>
 
  
 +
{{User:Piphi/Chess/Template:Game|g=2|p=1|n=3}}
 +
 +
If the game is the first then use the template like so:
 +
<nowiki>{{User:Piphi/Chess/Template:Game</nowiki>|g='''''game number'''''|before='''''First Question'''''|n='''''next game number'''''}}
 +
 +
{{User:Piphi/Chess/Template:Game|g=1|before=First Game|n=2}}
  
<noinclude>[[Category:Succession templates]]
+
[[Category:Succession templates]]
 
[[Category:Chess_Piphi]]</noinclude>
 
[[Category:Chess_Piphi]]</noinclude>

Latest revision as of 20:01, 28 June 2020


Template documentation

This template is to be used as follows:

{{User:Piphi/Chess/Template:Game|g=game number|p=preceding game number|n=next game number}}
Piphi's Chess Games
Previous Game | Game 2 | Next game


If the game is the first then use the template like so:

{{User:Piphi/Chess/Template:Game|g=game number|before=First Question|n=next game number}}
Piphi's Chess Games
Game 1 | Next game