Difference between revisions of "FGC:Header"
Line 1: | Line 1: | ||
− | <includeonly>< | + | <includeonly><h class="fgc_header" id="{{{name|}}}">{{{text|}}}</h{{{num|1}}}></includeonly> |
<noinclude> | <noinclude> | ||
==Usage== | ==Usage== | ||
Line 6: | Line 6: | ||
To create a header, use the following code | To create a header, use the following code | ||
<pre> | <pre> | ||
− | {{FGC:Header|text=|name=}} | + | {{FGC:Header|text=|name=|num=}} |
</pre> | </pre> | ||
==Example== | ==Example== | ||
Line 20: | Line 20: | ||
</pre> | </pre> | ||
[[FGC:Header#example_link_end]] | [[FGC:Header#example_link_end]] | ||
+ | |||
+ | If given a number "num", the header will have that number level | ||
+ | |||
+ | The following code create the header below it. <pre> | ||
+ | {{FGC:Header|text=This is a centred header|name=example_link_end|num=2}} | ||
+ | </pre> | ||
+ | {{FGC:Header|text=This is a centred header|name=example_link_end|num=2}} | ||
[[Category: FGC Templates]] | [[Category: FGC Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 21:46, 19 December 2009
Usage
Creates a centred header, useful on FGC pages where the standard Mediawiki header system is unsuitable. Creates a header with the required text and optional id, useful for linking to the page.
To create a header, use the following code
{{FGC:Header|text=|name=|num=}}
Example
The following code create the header below it.
{{FGC:Header|text=This is a centred header|name=example_link_end}}
<h class="fgc_header" id="example_link_end">This is a centred header
The header can be linked to with code similar to the following
[[FGC:Header#example_link_end]]
If given a number "num", the header will have that number level
The following code create the header below it.
{{FGC:Header|text=This is a centred header|name=example_link_end|num=2}}
<h class="fgc_header" id="example_link_end">This is a centred header