Difference between revisions of "Template:EditHeading"

From Epic Paths
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 16: Line 16:
-----
-----


'''Template:''' <nowiki>{{</nowiki>EditHeading||}}</noinclude><includeonly><h{{{2}}} {{#if:{{{4|}}}|style="margin-top:{{{4}}};"><span class="mw-headline"}}>{{{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>
'''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||}}