Difference between revisions of "FGC:Header"
Line 1: | Line 1: | ||
− | <h1 class="fgc_header">{{{text|}}}</h1> | + | <h1 class="fgc_header" id="{{{name|}}}">{{{text|}}}</h1> |
<noinclude> | <noinclude> | ||
+ | ==Usage== | ||
+ | Creates a centred header, useful on FGC pages where the standard Mediawiki header system is unsuitable. Creates a header with the required text an optional tag id, useful for linking to the page. | ||
+ | |||
+ | To create a header, use the following code | ||
+ | <pre> | ||
+ | {{FGC:Header|text=|name=}} | ||
+ | </pre> | ||
+ | ==Example== | ||
+ | |||
+ | The following code create the header below it. <pre> | ||
+ | {{FGC:Header|text=This is a centred header|id="example_link_end"}} | ||
+ | </pre> | ||
+ | {{FGC:Header|text=This is a centred header|id="example_link_end"}} | ||
+ | |||
+ | The header can be linked to with code similar to the following | ||
+ | <pre> | ||
+ | [[FGC:Header#example_link_end]] | ||
+ | </pre> | ||
+ | [[FGC:Header#example_link_end]] | ||
+ | |||
+ | |||
[[Category: FGC Templates]] | [[Category: FGC Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 19:40, 29 November 2009
Contents
Usage
Creates a centred header, useful on FGC pages where the standard Mediawiki header system is unsuitable. Creates a header with the required text an optional tag id, useful for linking to the page.
To create a header, use the following code
{{FGC:Header|text=|name=}}
Example
The following code create the header below it.
{{FGC:Header|text=This is a centred 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]]