Difference between revisions of "Templates"
From Gladiabots Wiki
(Created page with "== Used Templates == Templates can be used to reuse colors or wiki code in the whole project. Templates in use are: {|class="wikitable" !Template!!Code!!Description |- |re...") |
|||
(20 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
{|class="wikitable" | {|class="wikitable" | ||
− | !Template!! | + | !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: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:Blue]] ||Defines the blue background color for table cells globally ||<code><nowiki>{{blue}}|blue text </nowiki></code>||{{blue}} |blue text |
|- | |- | ||
− | |[[ | + | |[[Template:Dark]] ||Defines the dark background color for table cells globally ||<code><nowiki>{{dark}}|blue text </nowiki></code>||{{dark}} |dark cell |
|- | |- | ||
− | |[[ | + | |[[Template:C]] ||Shortens the code needed for centered cells. ||<code><nowiki>{{c}}|center </nowiki></code>||{{c}} |center |
+ | |- | ||
+ | |[[Template:R]] ||Shortens the code needed for right aligned cells. ||<code><nowiki>{{r}}|right </nowiki></code>||{{r}} |right | ||
+ | |- | ||
+ | |[[Template:X]] ||Shows a checked cell. ||<code><nowiki>{{X}} </nowiki></code>||{{X}} | ||
+ | |- | ||
+ | |[[Template:H]] ||Shows a checked cell with hint. ||<code><nowiki>{{H|Precious hint.}} </nowiki></code>||{{H|Precious hint.}} | ||
+ | |- | ||
+ | |[[Template:O]] ||Shows an unchecked cell. (without content and color) ||<code><nowiki>{{O}} </nowiki></code>||{{O}} | ||
+ | |- | ||
+ | |[[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}} | ||
|} | |} | ||
== 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 fifth column contains a checkmark or not. | ||
+ | |||
+ | {|class="wikitable" | ||
+ | !Lorem!!Ipsum!!Dolor||Sit||Igur | ||
+ | |- | ||
+ | |Amet ||{{r}}{{green}} |123||{{c}}|AAA||{{dark}}|nonumy||{{X}} | ||
+ | |- | ||
+ | |Consetetur||{{r}}{{yellow}}| 10||{{c}}|AA || nonumy||{{H|Precious hint.}} | ||
+ | |- | ||
+ | |sadipscing||{{r}}{{green}} |789||{{c}}|A || nonumy||{{O}} | ||
+ | |- | ||
+ | |elitr ||{{r}}{{red}} |-12||{{c}}|B || nonumy||{{X}} | ||
+ | |- | ||
+ | |sed ||{{r}}{{yellow}}| 20||{{c}}|C ||{{blue}}|eirmod||{{X}} | ||
+ | |- | ||
+ | |diam ||{{r}}{{green}} |456||{{c}}|D || nonumy||{{I}} | ||
+ | |} | ||
+ | |||
+ | {{Information|Precious hint.}} | ||
+ | |||
+ | {{InformationCollapsed|1=Caption|2=Hint}} | ||
+ | |||
+ | {{Warning|Take care.}} | ||
+ | |||
+ | There is a {{Tooltip|hidden message|Secret}}. | ||
+ | |||
+ | 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 == | ||
+ | |||
+ | What color scheme should be used in the wiki? | ||
+ | |||
+ | === Microsoft Excel 2007 === | ||
{|class="wikitable" | {|class="wikitable" | ||
!Lorem!!Ipsum!!Dolor||Sit | !Lorem!!Ipsum!!Dolor||Sit | ||
|- | |- | ||
− | |Amet ||123|| | + | |Amet ||{{r}} style="background:#C6EFCE; color:#006100"|123||{{c}}|AAA|| nonumy |
|- | |- | ||
− | |Consetetur||10 ||AA ||nonumy | + | |Consetetur||{{r}} style="background:#FFEB9C; color:#9C6500"| 10||{{c}}|AA || nonumy |
|- | |- | ||
− | |sadipscing||789|| | + | |sadipscing||{{r}} style="background:#C6EFCE; color:#006100"|789||{{c}}|A || nonumy |
|- | |- | ||
− | |elitr ||-12||B ||nonumy | + | |elitr ||{{r}} style="background:#FFC7CE; color:#9C0006"|-12||{{c}}|B || nonumy |
|- | |- | ||
− | |sed ||20 ||C ||eirmod | + | |sed ||{{r}} style="background:#FFEB9C; color:#9C6500"| 20||{{c}}|C ||style="background:#C5D9F1; color:#1F497D"|eirmod |
|- | |- | ||
− | |diam ||456||D ||nonumy | + | |diam ||{{r}} style="background:#C6EFCE; color:#006100"|456||{{c}}|D || nonumy |
|} | |} | ||
− | + | === Google Docs 2017 bright 3 === | |
− | style="background:# | + | {|class="wikitable" |
− | style="background:# | + | !Lorem!!Ipsum!!Dolor||Sit |
+ | |- | ||
+ | |Amet ||{{r}} style="background:#D9EAD3"|123||{{c}}|AAA|| nonumy | ||
+ | |- | ||
+ | |Consetetur||{{r}} style="background:#FFF2CC"| 10||{{c}}|AA || nonumy | ||
+ | |- | ||
+ | |sadipscing||{{r}} style="background:#D9EAD3"|789||{{c}}|A || nonumy | ||
+ | |- | ||
+ | |elitr ||{{r}} style="background:#F4CCCC"|-12||{{c}}|B || nonumy | ||
+ | |- | ||
+ | |sed ||{{r}} style="background:#FFF2CC"| 20||{{c}}|C ||style="background:#C9DAF8"|eirmod | ||
+ | |- | ||
+ | |diam ||{{r}} style="background:#D9EAD3"|456||{{c}}|D || nonumy | ||
+ | |} | ||
− | -- | + | === Google Docs 2017 bright 2 === |
+ | |||
+ | {|class="wikitable" | ||
+ | !Lorem!!Ipsum!!Dolor||Sit | ||
+ | |- | ||
+ | |Amet ||{{r}} style="background:#B6D7A8"|123||{{c}}|AAA|| nonumy | ||
+ | |- | ||
+ | |Consetetur||{{r}} style="background:#FFE599"| 10||{{c}}|AA || nonumy | ||
+ | |- | ||
+ | |sadipscing||{{r}} style="background:#B6D7A8"|789||{{c}}|A || nonumy | ||
+ | |- | ||
+ | |elitr ||{{r}} style="background:#EA9999"|-12||{{c}}|B || nonumy | ||
+ | |- | ||
+ | |sed ||{{r}} style="background:#FFE599"| 20||{{c}}|C ||style="background:#A4C2F4"|eirmod | ||
+ | |- | ||
+ | |diam ||{{r}} style="background:#B6D7A8"|456||{{c}}|D || nonumy | ||
+ | |} | ||
+ | |||
+ | === Google Docs 2017 bright 1 === | ||
+ | |||
+ | {|class="wikitable" | ||
+ | !Lorem!!Ipsum!!Dolor||Sit | ||
+ | |- | ||
+ | |Amet ||{{r}} style="background:#93C47D"|123||{{c}}|AAA|| nonumy | ||
+ | |- | ||
+ | |Consetetur||{{r}} style="background:#FFD966"| 10||{{c}}|AA || nonumy | ||
+ | |- | ||
+ | |sadipscing||{{r}} style="background:#93C47D"|789||{{c}}|A || nonumy | ||
+ | |- | ||
+ | |elitr ||{{r}} style="background:#E06666"|-12||{{c}}|B || nonumy | ||
+ | |- | ||
+ | |sed ||{{r}} style="background:#FFD966"| 20||{{c}}|C ||style="background:#6D9EEB"|eirmod | ||
+ | |- | ||
+ | |diam ||{{r}} style="background:#93C47D"|456||{{c}}|D || nonumy | ||
+ | |} | ||
+ | |||
+ | === Google Docs 2017 normal === | ||
+ | |||
+ | {|class="wikitable" | ||
+ | !Lorem!!Ipsum!!Dolor||Sit | ||
+ | |- | ||
+ | |Amet ||{{r}} style="background:#6AA84F"|123||{{c}}|AAA|| nonumy | ||
+ | |- | ||
+ | |Consetetur||{{r}} style="background:#F1C232"| 10||{{c}}|AA || nonumy | ||
+ | |- | ||
+ | |sadipscing||{{r}} style="background:#6AA84F"|789||{{c}}|A || nonumy | ||
+ | |- | ||
+ | |elitr ||{{r}} style="background:#CC0000"|-12||{{c}}|B || nonumy | ||
+ | |- | ||
+ | |sed ||{{r}} style="background:#F1C232"| 20||{{c}}|C ||style="background:#3C78D8"|eirmod | ||
+ | |- | ||
+ | |diam ||{{r}} style="background:#6AA84F"|456||{{c}}|D || nonumy | ||
+ | |} | ||
+ | |||
+ | === Google Docs 2017 normal - white color === | ||
+ | |||
+ | {|class="wikitable" | ||
+ | !Lorem!!Ipsum!!Dolor||Sit | ||
+ | |- | ||
+ | |Amet ||{{r}} style="background:#6AA84F; color:#FFFFFF"|123||{{c}}|AAA|| nonumy | ||
+ | |- | ||
+ | |Consetetur||{{r}} style="background:#F1C232; color:#FFFFFF"| 10||{{c}}|AA || nonumy | ||
+ | |- | ||
+ | |sadipscing||{{r}} style="background:#6AA84F; color:#FFFFFF"|789||{{c}}|A || nonumy | ||
+ | |- | ||
+ | |elitr ||{{r}} style="background:#CC0000; color:#FFFFFF"|-12||{{c}}|B || nonumy | ||
+ | |- | ||
+ | |sed ||{{r}} style="background:#F1C232; color:#FFFFFF"| 20||{{c}}|C ||style="background:#3C78D8; color:#FFFFFF"|eirmod | ||
+ | |- | ||
+ | |diam ||{{r}} style="background:#6AA84F; color:#FFFFFF"|456||{{c}}|D || nonumy | ||
+ | |} | ||
+ | |||
+ | === Google Docs 2017 dark - white color === | ||
+ | |||
+ | {|class="wikitable" | ||
+ | !Lorem!!Ipsum!!Dolor||Sit | ||
+ | |- | ||
+ | |Amet ||{{r}} style="background:#38761D; color:#FFFFFF"|123||{{c}}|AAA|| nonumy | ||
+ | |- | ||
+ | |Consetetur||{{r}} style="background:#BF9000; color:#FFFFFF"| 10||{{c}}|AA || nonumy | ||
+ | |- | ||
+ | |sadipscing||{{r}} style="background:#38761D; color:#FFFFFF"|789||{{c}}|A || nonumy | ||
+ | |- | ||
+ | |elitr ||{{r}} style="background:#990000; color:#FFFFFF"|-12||{{c}}|B || nonumy | ||
+ | |- | ||
+ | |sed ||{{r}} style="background:#BF9000; color:#FFFFFF"| 20||{{c}}|C ||style="background:#1155CC; color:#FFFFFF"|eirmod | ||
+ | |- | ||
+ | |diam ||{{r}} style="background:#38761D; color:#FFFFFF"|456||{{c}}|D || nonumy | ||
+ | |} | ||
+ | |||
+ | === Source unknown === | ||
+ | |||
+ | Previously used in the wiki. | ||
+ | |||
+ | {|class="wikitable" | ||
+ | !Lorem!!Ipsum!!Dolor||Sit | ||
+ | |- | ||
+ | |Amet ||{{r}} style="background:#AFF79B"|123||{{c}}|AAA|| nonumy | ||
+ | |- | ||
+ | |Consetetur||{{r}} style="background:#FFFFFF"| 10||{{c}}|AA || nonumy | ||
+ | |- | ||
+ | |sadipscing||{{r}} style="background:#AFF79B"|789||{{c}}|A || nonumy | ||
+ | |- | ||
+ | |elitr ||{{r}} style="background:#FFFFFF"|-12||{{c}}|B || nonumy | ||
+ | |- | ||
+ | |sed ||{{r}} style="background:#FFFFFF"| 20||{{c}}|C ||style="background:#80C8F8"|eirmod | ||
+ | |- | ||
+ | |diam ||{{r}} style="background:#AFF79B"|456||{{c}}|D || nonumy | ||
+ | |} |
Latest revision as of 22:54, 22 November 2017
Contents
[hide]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.}} |
| ||||
Template:InformationCollapsed | Shows a collapsed information message. | {{InformationCollapsed|1=Caption|2=Hint}} |
| ||||
Template:Warning | Shows a warning message. | {{Warning|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 |
|
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 | ✖ |
![]() |
Precious hint. |
![]() |
|
![]() |
Take care. |
There is a hidden message.
A good player has stats like this: +85% -5% =10%.
Standard messages
![]() |
This page is no longer maintained and is retained for historical reference. |
![]() |
This page needs improvement, you are welcome to contribute. |
![]() |
This page contains shiny awesome content from the upcoming new version. Check the forum for a preview of it.
|
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 |