Difference between revisions of "Templates"

 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{PageHeaderParent|Templates}}
 
{{PageHeaderParent|Templates}}
  
Templates I have made so far are:
+
Templates created so far are:
  
 
__TOC__
 
__TOC__
Line 7: Line 7:
 
=== Page Header Parent ===
 
=== Page Header Parent ===
  
<pre>{{PageHeaderParent|Title}} - for use at a parent document</pre>
+
<pre>{{PageHeaderParent|Title}}</pre>
 +
For use at a parent document
  
 
'''Sample Output:'''
 
'''Sample Output:'''
 
 
{{PageHeaderParent|Title}}
 
{{PageHeaderParent|Title}}
  
Line 16: Line 16:
 
=== Page Header Child ===
 
=== Page Header Child ===
  
<pre>{{PageHeaderChild|Title|Sub}} - for use in a child doc, nav's back to it's parent</pre>
+
<pre>{{PageHeaderChild|Title|Sub}}</pre>
 +
For use in a child doc, nav's back to it's parent
  
 
'''Sample Output:'''
 
'''Sample Output:'''
 
 
{{PageHeaderChild|Title|Sub}}
 
{{PageHeaderChild|Title|Sub}}
  
Line 25: Line 25:
 
=== Header ===
 
=== Header ===
  
<pre>{{Header|Title|Background Color|Text Color}}} - for use as a subject header, background and text color parameters are optional and don't need to be included</pre>
+
<pre>{{Header|Title|Background Color|Text Color}}}</pre>
 +
For use as a subject header, background and text color parameters are optional and have default values so they don't need to be included.  If the color parameters are included you must use there parameter name, BackgroundColor and FontColor.
  
 
'''Sample Output:'''
 
'''Sample Output:'''
  
 
'''No color parameters'''
 
'''No color parameters'''
 
+
<pre>{{Header|Title}}</pre>
 
{{Header|Title}}
 
{{Header|Title}}
 +
'''Text color set to red'''
 +
<pre>{{Header|Title|FontColor=f00}}</pre>
 +
{{Header|Title|FontColor=f00}}
 +
'''Background color set to red'''
 +
<pre>{{Header|Title|BackgroundColor=f00}}</pre>
 +
{{Header|Title|BackgroundColor=f00}}
 +
'''Background color set to red and text color set to white'''
 +
<pre>{{Header|Title|BackgroundColor=f00|FontColor=fff}}</pre>
 +
{{Header|Title|BackgroundColor=f00|FontColor=fff}}
  
  
Line 42: Line 52:
  
 
'''No color parameters'''
 
'''No color parameters'''
 
 
<pre>{{TextBox|Title|Text}}</pre>
 
<pre>{{TextBox|Title|Text}}</pre>
 
{{TextBox|Title|Text}}
 
{{TextBox|Title|Text}}
Line 56: Line 65:
  
  
=== Packet Details ===
+
=== Box-round ===
 +
 
 +
<pre>{{Box-round|title=Title|Text goes here}}</pre>
 +
 
 +
{{Box-round|title=Title|Text goes here}}
 +
==Parameters==
 +
;content
 +
:Text content of box
 +
;border
 +
:Border color
 +
:''Default: #99c''
 +
;titlebackground
 +
:Title background color
 +
:''Default: #ccf''
 +
;titleforeground
 +
:Title foreground color
 +
:''Default: #000''
 +
;titlestyle
 +
:Additions to title style
 +
;title
 +
:Title text
 +
;background
 +
:Background color
 +
:''Default: #fff''
 +
;foreground
 +
:Foreground color
 +
:''Default: #000''
 +
;style
 +
:Additions to box style
 +
;editpage
 +
:Edit page
 +
:''Default: <nowiki>{{FULLPAGENAME}}</nowiki>''
 +
 
 +
<includeonly>
 +
<!-- PUT HERE THE CATEGORIES OF THE TEMPLATE -->
 +
[[Category:Formatting templates]]
 +
</includeonly>
 +
 
 +
 
 +
=== PacketDetail ===
 +
 
 +
<pre>{{PacketDetails|Text}}</pre>
 +
For detailed packet info display
 +
 
 +
'''Sample Output:'''
 +
 
 +
{{PacketDetails|OP_RemoteCmdMsg - 42 (2A)
 +
|<pre>0x2A</pre>
 +
|<pre>2A 0E 00 08 00 4C 65 76 65 6C 5F 39 30</pre>
 +
|<pre>*....Level_90</pre>
 +
}}
 +
 
 +
 
 +
=== PacketInfo ===
 +
 
 +
<pre>{{PacketInfo|Title|Text}}</pre>
 +
For simple packet info display
 +
 
 +
'''Sample Output:'''
 +
 
 +
{{PacketInfo|Packet Type 42 (2A)  -  OP_RemoteCmdMsg
 +
|<pre>
 +
command_handler - int16
 +
arguments      - EQ2_16Bit_String
 +
</pre>
 +
}}
 +
 
 +
 
 +
=== Info ===
 +
 
 +
<pre>{{Info|Text}}</pre>
 +
For a simple info box
 +
 
 +
'''Sample Output:'''
 +
 
 +
{{Info|This is test info}}
 +
 
 +
 
 +
=== Warning ===
 +
 
 +
<pre>{{Warning|Text}}</pre>
 +
For a simple warning box
 +
 
 +
'''Sample Output:'''
 +
 
 +
{{Warning|This is a test warning}}
 +
 
 +
 
 +
=== Error ===
 +
 
 +
<pre>{{Error|Text}}</pre>
 +
For a simple error box
 +
 
 +
'''Sample Output:'''
 +
 
 +
{{Error|This is a test error (or whatever)}}
 +
 
 +
 
 +
=== InfoSmall ===
 +
 
 +
<pre>{{InfoSmall|Text}}</pre>
 +
For a small info box
 +
 
 +
'''Sample Output:'''
  
Template:PacketDetails
+
{{InfoSmall|This is a small info test}}
  
  
=== Packet Info ===
+
=== WarningSmall ===
 +
 
 +
<pre>{{WarningSmall|Text}}</pre>
 +
For a small warning box
 +
 
 +
'''Sample Output:'''
 +
 
 +
{{WarningSmall|This is a small warning test}}
 +
 
 +
 
 +
=== ErrorSmall ===
 +
 
 +
<pre>{{ErrorSmall|Text}}</pre>
 +
For a small error box
 +
 
 +
'''Sample Output:'''
  
Template:PacketInfo
+
{{ErrorSmall|This is a small error test}}

Latest revision as of 23:09, 4 October 2018

Templates

Return to: Main Page | Tutorials | Portal | Forum | Project Manager | Bug Tracker


Templates created so far are:

Page Header Parent

{{PageHeaderParent|Title}}

For use at a parent document

Sample Output:


Page Header Child

{{PageHeaderChild|Title|Sub}}

For use in a child doc, nav's back to it's parent

Sample Output:

Title - Sub

Return to: Title | Tutorials | Portal | Forum | Project Manager | Bug Tracker


Header

{{Header|Title|Background Color|Text Color}}}

For use as a subject header, background and text color parameters are optional and have default values so they don't need to be included. If the color parameters are included you must use there parameter name, BackgroundColor and FontColor.

Sample Output:

No color parameters

{{Header|Title}}
Title

Text color set to red

{{Header|Title|FontColor=f00}}
Title

Background color set to red

{{Header|Title|BackgroundColor=f00}}
Title

Background color set to red and text color set to white

{{Header|Title|BackgroundColor=f00|FontColor=fff}}
Title


Text Box

{{TextBox|Title|Text|Background Color|Text Color}}

For use to make information stand out, background and text color are optional and have default values so they don't need to be included. If the color parameters are included you must use there parameter name, BackgroundColor and FontColor.

Sample Output:

No color parameters

{{TextBox|Title|Text}}

Title

Text

Text color set to red

{{TextBox|Title|Text|FontColor=f00}}

Title

Text

Background color set to black

{{TextBox|Title|Text|BackgroundColor=000}}

Title

Text

Background color set to red and text color set to black

{{TextBox|Title|Text|BackgroundColor=f00|FontColor=000}}

Title

Text


Box-round

{{Box-round|title=Title|Text goes here}}
edit 

Title

Text goes here

Parameters

content
Text content of box
border
Border color
Default: #99c
titlebackground
Title background color
Default: #ccf
titleforeground
Title foreground color
Default: #000
titlestyle
Additions to title style
title
Title text
background
Background color
Default: #fff
foreground
Foreground color
Default: #000
style
Additions to box style
editpage
Edit page
Default: {{FULLPAGENAME}}



PacketDetail

{{PacketDetails|Text}}

For detailed packet info display

Sample Output:

OP_RemoteCmdMsg - 42 (2A)

Def HEX ASCII
0x2A
2A 0E 00 08 00 4C 65 76 65 6C 5F 39 30
*....Level_90


PacketInfo

{{PacketInfo|Title|Text}}

For simple packet info display

Sample Output:

Packet Type 42 (2A) - OP_RemoteCmdMsg

command_handler	- int16
arguments       - EQ2_16Bit_String


Info

{{Info|Text}}

For a simple info box

Sample Output:

Info.png

This is test info


Warning

{{Warning|Text}}

For a simple warning box

Sample Output:

Warning.png

This is a test warning


Error

{{Error|Text}}

For a simple error box

Sample Output:

Error.png

This is a test error (or whatever)


InfoSmall

{{InfoSmall|Text}}

For a small info box

Sample Output:

InfoSmall.png


This is a small info test



WarningSmall

{{WarningSmall|Text}}

For a small warning box

Sample Output:

WarningSmall.png


This is a small warning test



ErrorSmall

{{ErrorSmall|Text}}

For a small error box

Sample Output:

ErrorSmall.png


This is a small error test