Difference between revisions of "Template:EditHeading"
Jump to navigation
Jump to search
(Created page with "<includeonly><h{{{2}}}><span class="mw-headline">{{{1}}}</span><span class="mw-editsection">[<span class=plainlinks>[http://dicemonger.com/p6spheres/index.php?title={{#replace...") |
|||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>This template is used to produce a heading when wikitext (eg: ==Heading== ) won't work, and adds an edit link to to entire page. Headings will be added to the table of contents like normal headings. This templates takes 2 parameters, |1= and |2=. | |||
* |1= is the contents of the heading | * |1= is the contents of the heading | ||
* |2= is the level of the heading (1 being the biggest, 5 being the smallest) | * |2= is the level of the heading (1 being the biggest, 5 being the smallest) | ||
* |3= (optional) the page to edit. Defaults to the page heading is currently on. | * |3= (optional) the page to edit. Defaults to the page heading is currently on. | ||
* |4= (optional) change top margin to this value. | |||
----- | ----- | ||
Line 9: | Line 10: | ||
Examples: | Examples: | ||
<nowiki>{{</nowiki>EditHeading|Monster|2}}</ | <nowiki>{{</nowiki>EditHeading|Monster|2}}: <h2><span class="mw-headline">Monster</span><span class="mw-editsection">[<span class=plainlinks>[http://51.159.159.154/epicpaths/index.php?title={{PAGENAME}}&action=edit edit]</span>]</span></h2> | ||
<nowiki>{{</nowiki>EditHeading|Monster|2|OGL}}</ | <nowiki>{{</nowiki>EditHeading|Monster|2|OGL|0px}}: <h2 style="margin-top:0px;><span class="mw-headline"">Monster</span><span class="mw-editsection">[<span class=plainlinks>[http://51.159.159.154/epicpaths/index.php?title=OGL&action=edit edit]</span>]</span></h2> | ||
----- | ----- | ||
'''Template:''' <nowiki>{{</nowiki>EditHeading||}}</noinclude> | '''Template:''' <nowiki>{{</nowiki>EditHeading||}}</noinclude><includeonly><h{{{2}}} {{#if:{{{4|}}}|style="margin-top:{{{4}}}; padding-top:0px;"><span class="mw-headline" id="{{{1}}}"}}>{{{1}}}</span><span class="mw-editsection">[<span class=plainlinks>[http://51.159.159.154/epicpaths/index.php?title={{#replace:{{#if:{{{3|}}}|{{{3}}}|{{PAGENAME}}}}| |_}}&action=edit edit]</span>]</span></h{{{2}}}></includeonly> |
Latest revision as of 13:49, 21 August 2021
This template is used to produce a heading when wikitext (eg: ==Heading== ) won't work, and adds an edit link to to entire page. Headings will be added to the table of contents like normal headings. This templates takes 2 parameters, |1= and |2=.
- |1= is the contents of the heading
- |2= is the level of the heading (1 being the biggest, 5 being the smallest)
- |3= (optional) the page to edit. Defaults to the page heading is currently on.
- |4= (optional) change top margin to this value.
Examples:
{{EditHeading|Monster|2}}:
Monster[edit]
{{EditHeading|Monster|2|OGL|0px}}:
Monster[edit]
Template: {{EditHeading||}}