Difference between revisions of "Template:EditHeading"
Jump to navigation
Jump to search
Tag: Reverted |
|||
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 15: | Line 15: | ||
----- | ----- | ||
'''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://dicemonger.com/p6spheres/index.php?title={{#replace:{{#if:{{{3|}}}|{{{3}}}|{{PAGENAME}}}}| |_}}&action=edit edit]</span>]</span></h{{{2}}}></includeonly> |
Revision as of 21:47, 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||}}