Difference between revisions of "Templates"

From Gladiabots Wiki
Jump to: navigation, search
(Used Templates)
 
(7 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
!Template!!Description!!Example code!!Example output
 
!Template!!Description!!Example code!!Example output
 
|-
 
|-
|[[Template:Red]]       ||Defines the red background color for table cells globally  ||<code><nowiki>{{red}}|red text             </nowiki></code>||{{red}}  |red text
+
|[[Template:Red]]                 ||Defines the red background color for table cells globally  ||<code><nowiki>{{red}}|red text                         </nowiki></code>||{{red}}  |red text
 
|-
 
|-
|[[Template:Yellow]]     ||Defines the yellow background color for table cells globally||<code><nowiki>{{yellow}}|yellow text       </nowiki></code>||{{yellow}}|yellow text
+
|[[Template:Yellow]]             ||Defines the yellow background color for table cells globally||<code><nowiki>{{yellow}}|yellow text                   </nowiki></code>||{{yellow}}|yellow text
 
|-
 
|-
|[[Template:Green]]     ||Defines the green background color for table cells globally ||<code><nowiki>{{green}}|green text         </nowiki></code>||{{green}} |green text
+
|[[Template:Green]]               ||Defines the green background color for table cells globally ||<code><nowiki>{{green}}|green text                     </nowiki></code>||{{green}} |green text
 
|-
 
|-
|[[Template:Blue]]       ||Defines the blue background color for table cells globally  ||<code><nowiki>{{blue}}|blue text           </nowiki></code>||{{blue}}  |blue text
+
|[[Template:Blue]]               ||Defines the blue background color for table cells globally  ||<code><nowiki>{{blue}}|blue text                       </nowiki></code>||{{blue}}  |blue text
 
|-
 
|-
|[[Template:C]]         ||Shortens the code needed for centered cells.                ||<code><nowiki>{{c}}|center                  </nowiki></code>||{{c}}     |center
+
|[[Template:Dark]]               ||Defines the dark background color for table cells globally  ||<code><nowiki>{{dark}}|blue text                      </nowiki></code>||{{dark}} |dark cell
 
|-
 
|-
|[[Template:R]]         ||Shortens the code needed for right aligned cells.           ||<code><nowiki>{{r}}|right                  </nowiki></code>||{{r}}    |right
+
|[[Template:C]]                   ||Shortens the code needed for centered cells.               ||<code><nowiki>{{c}}|center                            </nowiki></code>||{{c}}    |center
 
|-
 
|-
|[[Template:X]]         ||Shows a checked cell.                                       ||<code><nowiki>{{X}}                         </nowiki></code>||{{X}}
+
|[[Template:R]]                   ||Shortens the code needed for right aligned cells.           ||<code><nowiki>{{r}}|right                              </nowiki></code>||{{r}}     |right
 
|-
 
|-
|[[Template:O]]         ||Shows an unchecked cell. (without content and color)        ||<code><nowiki>{{O}}                         </nowiki></code>||{{O}}
+
|[[Template:X]]                   ||Shows a checked cell.                                       ||<code><nowiki>{{X}}                                   </nowiki></code>||{{X}}
 
|-
 
|-
|[[Template:Information]]||Shows an information message.                               ||<code><nowiki>{{Information|Precious hint.}}</nowiki></code>||{{Information|Precious hint.}}
+
|[[Template:H]]                   ||Shows a checked cell with hint.                             ||<code><nowiki>{{H|Precious hint.}}                     </nowiki></code>||{{H|Precious hint.}}
 
|-
 
|-
|[[Template:Warning]]   ||Shows a warning message.                                   ||<code><nowiki>{{Warning|Take care.}}       </nowiki></code>||{{Warning|Take care.}}
+
|[[Template:O]]                   ||Shows an unchecked cell. (without content and color)        ||<code><nowiki>{{O}}                                   </nowiki></code>||{{O}}
 
|-
 
|-
|[[Template:Ratio]]     ||Shows a victory-defeat-draw ratio.                          ||<code><nowiki>{{Ratio|75|25|0}}             </nowiki></code>||{{Ratio|75|25|0}}
+
|[[Template:I]]                  ||Shows a invalid cell.                                      ||<code><nowiki>{{I}}                                    </nowiki></code>||{{I}}
 +
|-
 +
|[[Template:Information]]        ||Shows an information message.                              ||<code><nowiki>{{Information|Precious hint.}}          </nowiki></code>||{{Information|Precious hint.}}
 +
|-
 +
|[[Template:InformationCollapsed]]||Shows a collapsed information message.                      ||<code><nowiki>{{InformationCollapsed|1=Caption|2=Hint}}</nowiki></code>||{{InformationCollapsed|1=Caption|2=Hint}}
 +
|-
 +
|[[Template:Warning]]            ||Shows a warning message.                                    ||<code><nowiki>{{Warning|Take care.}}                  </nowiki></code>||{{Warning|Take care.}}
 +
|-
 +
|[[Template:Tooltip]]            ||Shows a tooltip.                                            ||<code><nowiki>{{Tooltip|Hidden message|Secret}}.      </nowiki></code>||{{Tooltip|Hidden message|Secret}}.
 +
|-
 +
|[[Template:Ratio]]               ||Shows a victory-defeat-draw ratio.                          ||<code><nowiki>{{Ratio|75|25|0}}                       </nowiki></code>||{{Ratio|75|25|0}}
 +
|-
 +
|[[Template:Version]]            ||Shows a new version content message.                        ||<code><nowiki>{{Version|* Change 1</nowiki><br><nowiki>* Change 2</nowiki><br><nowiki>* Change 3}} </nowiki></code>||{{Version|* Change 1
 +
* Change 2
 +
* Change 3}}
 
|}
 
|}
  
Line 36: Line 50:
 
!Lorem!!Ipsum!!Dolor||Sit||Igur
 
!Lorem!!Ipsum!!Dolor||Sit||Igur
 
|-
 
|-
|Amet      ||{{r}}{{green}} |123||{{c}}|AAA||         nonumy||{{X}}
+
|Amet      ||{{r}}{{green}} |123||{{c}}|AAA||{{dark}}|nonumy||{{X}}
 
|-
 
|-
|Consetetur||{{r}}{{yellow}}| 10||{{c}}|AA ||        nonumy||{{O}}
+
|Consetetur||{{r}}{{yellow}}| 10||{{c}}|AA ||        nonumy||{{H|Precious hint.}}
 
|-
 
|-
 
|sadipscing||{{r}}{{green}} |789||{{c}}|A  ||        nonumy||{{O}}
 
|sadipscing||{{r}}{{green}} |789||{{c}}|A  ||        nonumy||{{O}}
Line 46: Line 60:
 
|sed      ||{{r}}{{yellow}}| 20||{{c}}|C  ||{{blue}}|eirmod||{{X}}
 
|sed      ||{{r}}{{yellow}}| 20||{{c}}|C  ||{{blue}}|eirmod||{{X}}
 
|-
 
|-
|diam      ||{{r}}{{green}} |456||{{c}}|D  ||        nonumy||{{O}}
+
|diam      ||{{r}}{{green}} |456||{{c}}|D  ||        nonumy||{{I}}
 
|}
 
|}
  
 
{{Information|Precious hint.}}
 
{{Information|Precious hint.}}
 +
 +
{{InformationCollapsed|1=Caption|2=Hint}}
  
 
{{Warning|Take care.}}
 
{{Warning|Take care.}}
 +
 +
There is a {{Tooltip|hidden message|Secret}}.
  
 
A good player has stats like this: {{Ratio|85|5|10}}.
 
A good player has stats like this: {{Ratio|85|5|10}}.
 +
 +
=== Standard messages ===
 +
 +
{{Warning|This page is no longer maintained and is retained for historical reference.}}
 +
 +
{{Information|This page needs improvement, you are welcome to contribute.}}
 +
 +
{{Version|* Change 1
 +
* Change 2
 +
* Change 3}}
  
 
== Color schemes ==
 
== Color schemes ==

Latest revision as of 21:54, 22 November 2017

Used Templates

Templates can be used to reuse colors or wiki code in the whole project. Templates in use are:

Template Description Example code Example output
Template:Red Defines the red background color for table cells globally {{red}}|red text red text
Template:Yellow Defines the yellow background color for table cells globally {{yellow}}|yellow text yellow text
Template:Green Defines the green background color for table cells globally {{green}}|green text green text
Template:Blue Defines the blue background color for table cells globally {{blue}}|blue text blue text
Template:Dark Defines the dark background color for table cells globally {{dark}}|blue text dark cell
Template:C Shortens the code needed for centered cells. {{c}}|center center
Template:R Shortens the code needed for right aligned cells. {{r}}|right right
Template:X Shows a checked cell. {{X}}
Template:H Shows a checked cell with hint. {{H|Precious hint.}}
Template:O Shows an unchecked cell. (without content and color) {{O}}
Template:I Shows a invalid cell. {{I}}
Template:Information Shows an information message. {{Information|Precious hint.}}
Information.png Precious hint.
Template:InformationCollapsed Shows a collapsed information message. {{InformationCollapsed|1=Caption|2=Hint}}
Information.png
Caption 

Hint

Template:Warning Shows a warning message. {{Warning|Take care.}}
Warning.png Take care.
Template:Tooltip Shows a tooltip. {{Tooltip|Hidden message|Secret}}. Hidden message.
Template:Ratio Shows a victory-defeat-draw ratio. {{Ratio|75|25|0}} +75% -25% =0%
Template:Version Shows a new version content message. {{Version|* Change 1
* Change 2
* Change 3}}
Information.png This page contains shiny awesome content from the upcoming new version. Check the forum for a preview of it.
  • Change 1
  • Change 2
  • Change 3

Examples

The second numeric column uses right aligned cells and is colored green, yellow and red. The third column is centered. The forth column contains a value that is highlighted in blue. The fifth column contains a checkmark or not.

Lorem Ipsum Dolor Sit Igur
Amet 123 AAA nonumy
Consetetur 10 AA nonumy
sadipscing 789 A nonumy
elitr -12 B nonumy
sed 20 C eirmod
diam 456 D nonumy
Information.png Precious hint.
Information.png
Caption 

Hint

Warning.png Take care.

There is a hidden message.

A good player has stats like this: +85% -5% =10%.

Standard messages

Warning.png This page is no longer maintained and is retained for historical reference.
Information.png This page needs improvement, you are welcome to contribute.


Information.png This page contains shiny awesome content from the upcoming new version. Check the forum for a preview of it.
  • Change 1
  • Change 2
  • Change 3

Color schemes

What color scheme should be used in the wiki?

Microsoft Excel 2007

Lorem Ipsum Dolor Sit
Amet 123 AAA nonumy
Consetetur 10 AA nonumy
sadipscing 789 A nonumy
elitr -12 B nonumy
sed 20 C eirmod
diam 456 D nonumy

Google Docs 2017 bright 3

Lorem Ipsum Dolor Sit
Amet 123 AAA nonumy
Consetetur 10 AA nonumy
sadipscing 789 A nonumy
elitr -12 B nonumy
sed 20 C eirmod
diam 456 D nonumy

Google Docs 2017 bright 2

Lorem Ipsum Dolor Sit
Amet 123 AAA nonumy
Consetetur 10 AA nonumy
sadipscing 789 A nonumy
elitr -12 B nonumy
sed 20 C eirmod
diam 456 D nonumy

Google Docs 2017 bright 1

Lorem Ipsum Dolor Sit
Amet 123 AAA nonumy
Consetetur 10 AA nonumy
sadipscing 789 A nonumy
elitr -12 B nonumy
sed 20 C eirmod
diam 456 D nonumy

Google Docs 2017 normal

Lorem Ipsum Dolor Sit
Amet 123 AAA nonumy
Consetetur 10 AA nonumy
sadipscing 789 A nonumy
elitr -12 B nonumy
sed 20 C eirmod
diam 456 D nonumy

Google Docs 2017 normal - white color

Lorem Ipsum Dolor Sit
Amet 123 AAA nonumy
Consetetur 10 AA nonumy
sadipscing 789 A nonumy
elitr -12 B nonumy
sed 20 C eirmod
diam 456 D nonumy

Google Docs 2017 dark - white color

Lorem Ipsum Dolor Sit
Amet 123 AAA nonumy
Consetetur 10 AA nonumy
sadipscing 789 A nonumy
elitr -12 B nonumy
sed 20 C eirmod
diam 456 D nonumy

Source unknown

Previously used in the wiki.

Lorem Ipsum Dolor Sit
Amet 123 AAA nonumy
Consetetur 10 AA nonumy
sadipscing 789 A nonumy
elitr -12 B nonumy
sed 20 C eirmod
diam 456 D nonumy