Difference between revisions of "Template:EditHeading"
Jump to navigation
Jump to search
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 | ||
Line 9: | Line 9: | ||
Examples: | Examples: | ||
<nowiki>{{</nowiki>TestDemo|Monster|2}}</ | <nowiki>{{</nowiki>TestDemo|Monster|2}}</nowiki>: <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>TestDemo|Monster|2|OGL}}</ | <nowiki>{{</nowiki>TestDemo|Monster|2|OGL}}</nowiki>: <h2><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>TestDemo||}}</noinclude> | '''Template:''' <nowiki>{{</nowiki>TestDemo||}}</noinclude><includeonly><h{{{2}}}><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> |
Revision as of 21:54, 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}}</nowiki>:
Monster[edit]
{{TestDemo|Monster|2|OGL}}</nowiki>:
Monster[edit]
Template: {{TestDemo||}}