Difference between revisions of "FGC:Header"
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{#switch: {{{num}}} |
− | <noinclude> | + | |1 = <h1 class="fgc_header" id="{{{name|}}}">{{{text|}}}</h1> |
+ | |2 = <div style="text-align:center;"><h2 class="fgc_header" id="{{{name|}}}">{{{text|}}}</h2></div> | ||
+ | |3 = <h3 class="fgc_header" id="{{{name|}}}">{{{text|}}}</h3> | ||
+ | |4 = <h4 class="fgc_header" id="{{{name|}}}">{{{text|}}}</h4> | ||
+ | |5 = <h5 class="fgc_header" id="{{{name|}}}">{{{text|}}}</h5> | ||
+ | |6 = <h6 class="fgc_header" id="{{{name|}}}">{{{text|}}}</h6> | ||
+ | |#default = <h1 class="fgc_header" id="{{{name|}}}">{{{text|}}}</h1> | ||
+ | }}</includeonly><noinclude> | ||
==Usage== | ==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. | 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. |
Latest revision as of 20:28, 30 March 2010
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}}
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}}