Difference between revisions of "Template:EditHeading"

From Epic Paths
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...")
 
Line 9: Line 9:
Examples:
Examples:


<nowiki>{{</nowiki>EditHeading|Monster|2}}</noinclude>: {f{EditHeading|Monster|2}}
<nowiki>{{</nowiki>TestDemo|Monster|2}}</noinclude>: <h2><span class="mw-headline">Monster</span><span class="mw-editsection">[<span class=plainlinks>[http://dicemonger.com/p6spheres/index.php?title={{PAGENAME}}&action=edit edit]</span>]</span></h2>


<nowiki>{{</nowiki>EditHeading|Monster|2|OGL}}</noinclude>: {f{EditHeading|Monster|2|OGL}}
<nowiki>{{</nowiki>TestDemo|Monster|2|OGL}}</noinclude>: <h2><span class="mw-headline">Monster</span><span class="mw-editsection">[<span class=plainlinks>[http://dicemonger.com/p6spheres/index.php?title=OGL&action=edit edit]</span>]</span></h2>


-----
-----


'''Template:''' <nowiki>{{</nowiki>EditHeading||}}</noinclude>
'''Template:''' <nowiki>{{</nowiki>TestDemo||}}</noinclude>

Revision as of 19:33, 8 July 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.

Examples:

{{TestDemo|Monster|2}}:

Monster[edit]

{{TestDemo|Monster|2|OGL}}:

Monster[edit]


Template: {{TestDemo||}}