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...") |
|||
Line 6: | Line 6: | ||
!Template!!Code!!Description | !Template!!Code!!Description | ||
|- | |- | ||
− | |[[ | + | |[[Template:Red]] ||<code>style="background:#[Hexadecimal code]"</code>||Defines the red background color for table cells globally |
|- | |- | ||
− | |[[ | + | |[[Template:Yellow]]||<code>style="background:#[Hexadecimal code]"</code>||Defines the yellow background color for table cells globally |
|- | |- | ||
− | |[[ | + | |[[Template:Green]] ||<code>style="background:#[Hexadecimal code]"</code>||Defines the green background color for table cells globally |
|- | |- | ||
− | |[[ | + | |[[Template:Blue]] ||<code>style="background:#[Hexadecimal code]"</code>||Defines the blue background color for table cells globally |
|- | |- | ||
− | |[[ | + | |[[Template:C]] ||<code>align="center"</code> ||Shortens the code needed for centered cells. |
|- | |- | ||
− | |[[ | + | |[[Template:R]] ||<code>align="right"</code> ||Shortens the code needed for right aligned cells. |
|} | |} | ||
Line 24: | Line 24: | ||
!Lorem!!Ipsum!!Dolor||Sit | !Lorem!!Ipsum!!Dolor||Sit | ||
|- | |- | ||
− | |Amet ||123||A ||nonumy | + | |Amet ||{{r}}{{green}}|123||{{c}}|A || nonumy |
|- | |- | ||
− | |Consetetur||10 ||AA ||nonumy | + | |Consetetur||{{r}} | 10||{{c}}|AA || nonumy |
|- | |- | ||
− | |sadipscing||789||AAA||nonumy | + | |sadipscing||{{r}}{{green}}|789||{{c}}|AAA|| nonumy |
|- | |- | ||
− | |elitr ||-12||B ||nonumy | + | |elitr ||{{r}} |-12||{{c}}|B || nonumy |
|- | |- | ||
− | |sed ||20 ||C ||eirmod | + | |sed ||{{r}} | 20||{{c}}|C ||{{blue}}|eirmod |
|- | |- | ||
− | |diam ||456||D ||nonumy | + | |diam ||{{r}}{{green}}|456||{{c}}|D || nonumy |
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 12:18, 6 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 |
---|---|---|
Template:Red | style="background:#[Hexadecimal code]" |
Defines the red background color for table cells globally |
Template:Yellow | style="background:#[Hexadecimal code]" |
Defines the yellow background color for table cells globally |
Template:Green | style="background:#[Hexadecimal code]" |
Defines the green background color for table cells globally |
Template:Blue | style="background:#[Hexadecimal code]" |
Defines the blue background color for table cells globally |
Template:C | align="center" |
Shortens the code needed for centered cells. |
Template:R | align="right" |
Shortens the code needed for right aligned cells. |
Examples
Lorem | Ipsum | Dolor | Sit |
---|---|---|---|
Amet | 123 | A | nonumy |
Consetetur | 10 | AA | nonumy |
sadipscing | 789 | AAA | nonumy |
elitr | -12 | B | nonumy |
sed | 20 | C | eirmod |
diam | 456 | D | nonumy |