Difference between revisions of "Template:NPCPageHeader"
Jump to navigation
Jump to search
>Eave (as I'm not an admin I can't modify the widget namespace so I have to do this the old fashioned (and less nice way). should an admin like to use the widget instead I've commented in the code as well) |
>Eave m (removing newline before as well :/) |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 9: | Line 9: | ||
[[Category:Templates]] | [[Category:Templates]] | ||
<includeonly> | <includeonly> | ||
| − | <onlyinclude> | + | <onlyinclude><div style="text-align:center"> |
| − | <div style="text-align:center"> | ||
<div style="margin:10px"> | <div style="margin:10px"> | ||
<div class="mw-ui-button {{#ifeq:{{lc:{{PAGENAME}}}}|{{lc:{{BASEPAGENAME}}}}|mw-ui-progressive}}">[[{{BASEPAGENAME}}]]</div> | <div class="mw-ui-button {{#ifeq:{{lc:{{PAGENAME}}}}|{{lc:{{BASEPAGENAME}}}}|mw-ui-progressive}}">[[{{BASEPAGENAME}}]]</div> | ||
<div class="mw-ui-button {{#ifeq:{{lc:{{SUBPAGENAME}}}}|misc|mw-ui-progressive}}">[[{{BASEPAGENAME}}/Misc|Misc]]</div> | <div class="mw-ui-button {{#ifeq:{{lc:{{SUBPAGENAME}}}}|misc|mw-ui-progressive}}">[[{{BASEPAGENAME}}/Misc|Misc]]</div> | ||
</div> | </div> | ||
| − | </div> | + | </div></onlyinclude> |
| − | </onlyinclude> | ||
</includeonly> | </includeonly> | ||
Latest revision as of 06:41, 6 November 2019
| Under Construction!
This page is currently in the process of being expanded on. Please note that there may be missing or incomplete information. |
Usage
{{NPCPageHeader}}
(No arguments needed or accepted)
BELOW IS WIKITEXT THAT REQUIRES WIDGET: NAMESPACE EDITING CAPABILITY TO FULLY REALIZE.
If you have such editing capability, the existing implementation can instead be replaced by this, along with a Widget:NPCPageButtons creation with contents defined further below.
<div style="text-align:center">
{{#widget:NPCPageButtons
|button1={{#ifeq:{{lc:{{PAGENAME}}}}|{{lc:{{BASEPAGENAME}}}}|mw-ui-progressive}}
|button2={{#ifeq:{{lc:{{SUBPAGENAME}}}}|misc|mw-ui-progressive}}
|button1link=/{{BASEPAGENAME}}
|button2link=/{{BASEPAGENAME}}/Misc
}}</div>
== Widget:NPCPageButtons ==
<div style="display:inline-block;margin:10px">
<a href="<!--{$button1link}-->" class="mw-ui-button <!--{$button1|escape:'html'}-->" style="padding:5px 10px">General</a>
<a href="<!--{$button2link}-->" class="mw-ui-button <!--{$button2|escape:'html'}-->" style="padding:5px 10px">Misc</a>
</div>