Difference between revisions of "Templates"

From Gladiabots Wiki
Jump to: navigation, search
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
!Template!!Code!!Description!!Example
 
!Template!!Code!!Description!!Example
 
|-
 
|-
|[[Template:Red]]   ||<code>style="background:#[Hexadecimal code]"</code>                                ||Defines the red background color for table cells globally          ||{{red}}  |red text
+
|[[Template:Red]]       ||<code>style="background:#[Hexadecimal code]"</code>                                ||Defines the red background color for table cells globally          ||{{red}}  |red text
 
|-
 
|-
|[[Template:Yellow]]||<code>style="background:#[Hexadecimal code]"</code>                                ||Defines the yellow background color for table cells globally      ||{{yellow}}|yellow text
+
|[[Template:Yellow]]     ||<code>style="background:#[Hexadecimal code]"</code>                                ||Defines the yellow background color for table cells globally      ||{{yellow}}|yellow text
 
|-
 
|-
|[[Template:Green]] ||<code>style="background:#[Hexadecimal code]"</code>                                ||Defines the green background color for table cells globally        ||{{green}} |green text
+
|[[Template:Green]]     ||<code>style="background:#[Hexadecimal code]"</code>                                ||Defines the green background color for table cells globally        ||{{green}} |green text
 
|-
 
|-
|[[Template:Blue]] ||<code>style="background:#[Hexadecimal code]"</code>                                ||Defines the blue background color for table cells globally        ||{{blue}}  |blue text
+
|[[Template:Blue]]       ||<code>style="background:#[Hexadecimal code]"</code>                                ||Defines the blue background color for table cells globally        ||{{blue}}  |blue text
 
|-
 
|-
|[[Template:C]]     ||<code>align="center"</code>                                                        ||Shortens the code needed for centered cells.                      ||{{c}}    |center
+
|[[Template:C]]         ||<code>align="center"</code>                                                        ||Shortens the code needed for centered cells.                      ||{{c}}    |center
 
|-
 
|-
|[[Template:R]]     ||<code>align="right"</code>                                                          ||Shortens the code needed for right aligned cells.                  ||{{r}}    |right
+
|[[Template:R]]         ||<code>align="right"</code>                                                          ||Shortens the code needed for right aligned cells.                  ||{{r}}    |right
 
|-
 
|-
|[[Template:X]]     ||<code>align="center" style="background:[Hexadecimal code]"<nowiki>|</nowiki>X</code>||Shortens the code needed for green centered cells named "X".      ||{{X}}
+
|[[Template:X]]         ||<code>align="center" style="background:[Hexadecimal code]"<nowiki>|</nowiki>X</code>||Shortens the code needed for green centered cells named "X".      ||{{X}}
 
|-
 
|-
|[[Template:O]]     ||<code>                                                                       </code>||Shortens the code needed for normal uncentered cells not named "O".||{{O}}
+
|[[Template:O]]         ||<code></code>                                                                       ||Shortens the code needed for normal uncentered cells not named "O".||{{O}}
 +
|-
 +
|[[Template:Information]]||Some more code...                                                                  ||Shows an information message                                      ||{{Information|Precious hint.}}
 +
|-
 +
|[[Template:Warning]]    ||Some more code...                                                                  ||Shows a warning message                                            ||{{Warning|Take care.}}
 
|}
 
|}
  
 
== Examples ==
 
== 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 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.
  
 
{|class="wikitable"
 
{|class="wikitable"
!Lorem!!Ipsum!!Dolor||Sit
+
!Lorem!!Ipsum!!Dolor||Sit||Igur
 
|-
 
|-
|Amet      ||{{r}}{{green}}|123||{{c}}|AAA||        nonumy
+
|Amet      ||{{r}}{{green}} |123||{{c}}|AAA||        nonumy||{{X}}
 
|-
 
|-
|Consetetur||{{r}}         | 10||{{c}}|AA ||        nonumy
+
|Consetetur||{{r}}{{yellow}}| 10||{{c}}|AA ||        nonumy||{{O}}
 
|-
 
|-
|sadipscing||{{r}}{{green}}|789||{{c}}|A  ||        nonumy
+
|sadipscing||{{r}}{{green}} |789||{{c}}|A  ||        nonumy||{{O}}
 
|-
 
|-
|elitr    ||{{r}}         |-12||{{c}}|B  ||        nonumy
+
|elitr    ||{{r}}{{red}}  |-12||{{c}}|B  ||        nonumy||{{X}}
 
|-
 
|-
|sed      ||{{r}}         | 20||{{c}}|C  ||{{blue}}|eirmod
+
|sed      ||{{r}}{{yellow}}| 20||{{c}}|C  ||{{blue}}|eirmod||{{X}}
 
|-
 
|-
|diam      ||{{r}}{{green}}|456||{{c}}|D  ||        nonumy
+
|diam      ||{{r}}{{green}} |456||{{c}}|D  ||        nonumy||{{O}}
 
|}
 
|}
 +
 +
{{Information|Precious hint.}}
 +
 +
{{Warning|Take care.}}
  
 
== Color schemes ==
 
== Color schemes ==

Revision as of 02:14, 10 October 2017

Used Templates

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

Template Code Description Example
Template:Red style="background:#[Hexadecimal code]" Defines the red background color for table cells globally red text
Template:Yellow style="background:#[Hexadecimal code]" Defines the yellow background color for table cells globally yellow text
Template:Green style="background:#[Hexadecimal code]" Defines the green background color for table cells globally green text
Template:Blue style="background:#[Hexadecimal code]" Defines the blue background color for table cells globally blue text
Template:C align="center" Shortens the code needed for centered cells. center
Template:R align="right" Shortens the code needed for right aligned cells. right
Template:X align="center" style="background:[Hexadecimal code]"|X Shortens the code needed for green centered cells named "X".
Template:O Shortens the code needed for normal uncentered cells not named "O".
Template:Information Some more code... Shows an information message
Information.png Precious hint.
Template:Warning Some more code... Shows a warning message
Warning.png Take care.

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.
Warning.png Take care.

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