Difference between revisions of "Template:Header"

From Project: Gorgon Wiki
Jump to: navigation, search
(Introducing a template to be used for headers in tables on creature/mob pages.)
 
m (Adding some padding.)
Line 1: Line 1:
! class="block2" style="background:#1e1615ff;color:#e5b964ff; border-radius:5px;" colspan="{{{2}}}" align="left" {{pipe}} '''{{{1|}}}'''
+
! class="block2" style="background:#1e1615ff;color:#e5b964ff;padding-left:.5em;border-radius:5px;" colspan="{{{2}}}" align="left" {{pipe}} '''{{{1|}}}'''
 
<noinclude>
 
<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 13:30, 1 December 2020

! class="block2" style="background:#1e1615ff;color:#e5b964ff;padding-left:.5em;border-radius:5px;" colspan="{{{2}}}" align="left" | '

Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

Description

Use this template whenever a header is needed with a background inside a table.
A common usage of this template is in tables for Loot, although it is also used in the Miscellaneous section of creature/mob pages.

Syntax

Type {{Header|text|colspan}} inside a table.

Parameters

text
Required. Whatever text you want to have the header display!
colspan
Optional. How many columns the header and its background should stretch. The default is 1.

Sample output

{|
{{Header|Common|4}}|-
|{{Item|Fear Oil}}
|{{Item|Hope Oil}}
|{{Item|Hatred Oil}}
|{{Item|Uncrossing Oil}}
|{{Item|Crossing Oil}}
|}
Common
{|
{{Header|[[Skinning]]}}
|-
|{{Item|Crude Animal Skin}} (Eltibule)
|-
|{{Item|Great Animal Skin}} ([[Rahu]])
|-
{{Header|[[Skinning#Skinning Mechanics|Skinning Bonus]]}}
|-
|{{Item|Wool}} (Bonus)
|-
{{Header|[[Butchering]]}}
|-
|{{Item|Sinewy Beast Meat}} (Eltibule)
|-
|{{Item|Beast Meat}} (Ilmari)
|-
{{Header|[[Butchering#Butchering Mechanics|Butchering Bonus]]|2}}
|-
|{{Item|Filthy Animal Fat}}
|{{Item|Heart}}
|-
|{{Item|Stomach}}
|{{Item|Spleen}}
|-
{{Header|[[Butchering|Skull Extraction]]}}
|-
|{{Item|Orc Skull}} (Kur Mountains)
|-
|{{Item|Impressive Orc Skull}} (Gazluk)
|}
Skinning
(Eltibule)
(Rahu)
Skinning Bonus
(Bonus)
Butchering
(Eltibule)
(Ilmari)
Butchering Bonus
Skull Extraction
(Kur Mountains)
(Gazluk)
The above text is transcluded from Template:Header/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:Header/doc. (View all subpages of this page.)