Difference between revisions of "Template:Infobox chess opening/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zackmann08
imported>Zackmann08
(updating documentation)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
{{Convert to use Infobox}}
+
{{Lua|Module:Infobox|Module:InfoboxImage}}
 +
{{Parameter names example|_template=|  image | caption | moves | ECO | birth | nameorigin | parentopening | AKA }}
 +
 
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
  
==Usage and example==
+
==Usage==
 +
<pre style="overflow: auto;">
 
{{Infobox chess opening
 
{{Infobox chess opening
|openingname = Ruy Lopez
 
|image = {{Chess diagram|=
 
|
 
|
 
|rd|__|bd|qd|kd|bd|nd|rd
 
|pd|pd|pd|pd|__|pd|pd|pd
 
|__|__|nd|__|__|__|__|__
 
|__|bl|__|__|pd|__|__|__
 
|__|__|__|__|pl|__|__|__
 
|__|__|__|__|__|nl|__|__
 
|pl|pl|pl|pl|__|pl|pl|pl
 
|rl|nl|bl|ql|kl|__|__|rl
 
|
 
}}
 
|moves=1.e4 e5 2.Nf3 Nc6 3.Bb5
 
|ECO=C60-C99
 
|birth = [[Göttingen_manuscript|manuscript of Göttingen]], 1490
 
|nameorigin = [[Ruy López de Segura]], Libro del Ajedrez, 1561
 
|parentopening = [[Open Game]]
 
|AKA = Spanish game, Spanish opening
 
}}
 
{| style="background: transparent;"
 
|<pre>{{Infobox chess opening
 
 
|openingname = {{PAGENAME}}
 
|openingname = {{PAGENAME}}
 
|image =  
 
|image =  
Line 36: Line 16:
 
|parentopening =
 
|parentopening =
 
|AKA =  
 
|AKA =  
}}</pre>
+
}}
 +
</pre>
 +
 
 
*''openingname'' defaults to ''PAGENAME'' and can be left out
 
*''openingname'' defaults to ''PAGENAME'' and can be left out
 
*''image'' should be used to display [[Template:Chess diagram]]
 
*''image'' should be used to display [[Template:Chess diagram]]
Line 50: Line 32:
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Chess infobox templates]]
 
[[Category:Chess infobox templates]]
 
 
</includeonly>
 
</includeonly>

Revision as of 02:10, 20 December 2016

Template:Parameter names example


Usage

{{Infobox chess opening
|openingname = {{PAGENAME}}
|image = 
|moves =
|ECO = 
|birth =
|nameorigin =
|parentopening =
|AKA = 
}}
  • openingname defaults to PAGENAME and can be left out
  • image should be used to display Template:Chess diagram
  • moves shows the distinguishing moves
  • ECO is the code or codes of the opening in the Encyclopaedia of Chess Openings
  • birth should specify the event where this opening was first used, or the first known documented mention of it.
  • nameorigin specifies where the name comes from
  • parentopening defines the hierarchical parent of this opening
  • AKA provides alternative names for the opening