Difference between revisions of "Template:Exclusive/doc"

From blackwiki
Jump to navigation Jump to search
imported>Rukario-sama
(Created page with '{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> ==...')
 
imported>WOSlinker
m (change source to syntaxhighlight)
 
(11 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
== Usage ==
 
== Usage ==
Adds exclusivity cell to the list of games sortable table.
+
Adds exclusivity cell to the list of games sortable table. The prefix "X" in some template names stands for "Exclusive", inspired from [[XOR]].
 
{| class="wikitable"
 
{| class="wikitable"
|{{Tlx|XEdition}}
+
!
|{{legend2|#DDF|Edition/Remake&nbsp;exclusive|border=1px solid #AAAAAA}}
+
!Simple
 +
!
 +
!Simple
 
|-
 
|-
|{{Tlx|XExclusive}}
+
|colspan="2"|{{Tlx|Edition}}
|{{legend2|#9F9|Exclusive to this console|border=1px solid #AAAAAA}}
+
|colspan="2"|{{legend2|#DDF|Edition/Remake&nbsp;exclusive|border=1px solid #AAAAAA}}
 
|-
 
|-
|{{Tlx|XMicrosoft}}
+
|colspan="2"|{{Tlx|Exclusive}}
|{{legend2|#BFD|Microsoft|border=1px solid #AAAAAA}}
+
|colspan="2"|{{legend2|#9F9|Exclusive to this console|border=1px solid #AAAAAA}}
 
|-
 
|-
|{{Tlx|XNintendo}}
+
|{{Tlx|XMicrosoft}}<br />
|{{legend2|#BFD|Nintendo|border=1px solid #AAAAAA}}
+
{{Tlx|XNintendo}}<br />
|-
+
{{Tlx|XSony}}<br />
|{{Tlx|XSony}}
+
|rowspan="2"|{{Tlx|XCC}}
|{{legend2|#BFD|Sony|border=1px solid #AAAAAA}}
+
|{{legend2|#BFD|Company (Microsoft/Nintendo/Sony)|border=1px solid #AAAAAA}}
 +
|rowspan="2"|{{legend2|#8DB|Console/Company|border=1px solid #AAAAAA}}
 
|-
 
|-
 
|{{Tlx|XConsole}}
 
|{{Tlx|XConsole}}
 
|{{legend2|#FDD|Console|border=1px solid #AAAAAA}}
 
|{{legend2|#FDD|Console|border=1px solid #AAAAAA}}
 
|-
 
|-
|{{Tlx|XTimed}}
+
|colspan="2"|{{Tlx|Timed}}
|{{legend2|#D66|Timed|border=1px solid #AAAAAA}}
+
|colspan="2"|{{legend2|#D66|Timed|border=1px solid #AAAAAA}}
 
|-
 
|-
 
|{{Tlx|NX}}
 
|{{Tlx|NX}}
 +
|{{n/a|None}}
 
|{{legend2|#F99|Multiplatform (Non-exclusive)|border=1px solid #AAAAAA}}
 
|{{legend2|#F99|Multiplatform (Non-exclusive)|border=1px solid #AAAAAA}}
 +
|{{legend2|#F9F9F9|Multiplatform|border=1px solid #AAAAAA}}
 
|}
 
|}
  
 
== Example ==
 
== Example ==
<pre>
+
<syntaxhighlight lang="text">
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
!  
 
!  
 
! Title
 
! Title
 
|-
 
|-
| {{XEdition}}||''[[A]]''
+
| {{Edition}}||''[[A]]''
 
|-
 
|-
| {{XExclusive}}||''[[B]]''
+
| {{Exclusive}}||''[[B]]''
 
|-
 
|-
| {{XTimed}}||''[[L]]''
+
| {{Timed}}||''[[L]]''
 
|-
 
|-
 
| {{NX}}||''[[R]]''
 
| {{NX}}||''[[R]]''
Line 47: Line 52:
 
| {{XConsole}}||''[[Y]]''
 
| {{XConsole}}||''[[Y]]''
 
|}
 
|}
</pre>
+
</syntaxhighlight>
  
 
produces:
 
produces:
Line 54: Line 59:
 
! Title
 
! Title
 
|-
 
|-
| {{XEdition}}||''[[A]]''
+
| {{Edition}}||''[[A]]''
 
|-
 
|-
| {{XExclusive}}||''[[B]]''
+
| {{Exclusive}}||''[[B]]''
 
|-
 
|-
| {{XTimed}}||''[[L]]''
+
| {{Timed}}||''[[L]]''
 
|-
 
|-
 
| {{NX}}||''[[R]]''
 
| {{NX}}||''[[R]]''
Line 65: Line 70:
 
|-
 
|-
 
| {{XConsole}}||''[[Y]]''
 
| {{XConsole}}||''[[Y]]''
 +
|}
 +
 +
== Example (Simple) ==
 +
<syntaxhighlight lang="text">
 +
{| class="wikitable sortable"
 +
!
 +
! Title
 +
|-
 +
| {{Edition}}||''[[A]]''
 +
|-
 +
| {{Exclusive}}||''[[B]]''
 +
|-
 +
| {{XCC}}||''[[Z]]''
 +
|-
 +
| ||''[[C]]''
 +
|}
 +
</syntaxhighlight>
 +
 +
Produces:
 +
{| class="wikitable sortable"
 +
!
 +
! Title
 +
|-
 +
| {{Edition}}||''[[A]]''
 +
|-
 +
| {{Exclusive}}||''[[B]]''
 +
|-
 +
| {{XCC}}||''[[Z]]''
 +
|-
 +
| ||''[[C]]''
 
|}
 
|}
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
+
[[Category:Table cell templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 12:38, 7 July 2020

Usage

Adds exclusivity cell to the list of games sortable table. The prefix "X" in some template names stands for "Exclusive", inspired from XOR.

Simple Simple
{{Edition}}   Edition/Remake exclusive
{{Exclusive}}   Exclusive to this console
{{XMicrosoft}}

{{XNintendo}}
{{XSony}}

{{XCC}}   Company (Microsoft/Nintendo/Sony)   Console/Company
{{XConsole}}   Console
{{Timed}}   Timed
{{NX}} None   Multiplatform (Non-exclusive)   Multiplatform

Example

{| class="wikitable sortable"
! 
! Title
|-
| {{Edition}}||''[[A]]''
|-
| {{Exclusive}}||''[[B]]''
|-
| {{Timed}}||''[[L]]''
|-
| {{NX}}||''[[R]]''
|-
| {{XNintendo}}||''[[X]]''
|-
| {{XConsole}}||''[[Y]]''
|}

produces:

Title
A
B
Template:Timed L
Template:NX R
Template:XNintendo X
Template:XConsole Y

Example (Simple)

{| class="wikitable sortable"
! 
! Title
|-
| {{Edition}}||''[[A]]''
|-
| {{Exclusive}}||''[[B]]''
|-
| {{XCC}}||''[[Z]]''
|-
| ||''[[C]]''
|}

Produces:

Title
A
B
Template:XCC Z
C