Difference between revisions of "Templates"

 
Line 63: Line 63:
 
<pre>{{TextBox|Title|Text|BackgroundColor=f00|FontColor=000}}</pre>
 
<pre>{{TextBox|Title|Text|BackgroundColor=f00|FontColor=000}}</pre>
 
{{TextBox|Title|Text|BackgroundColor=f00|FontColor=000}}
 
{{TextBox|Title|Text|BackgroundColor=f00|FontColor=000}}
 +
 +
 +
=== 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>
  
  

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