Difference between revisions of "Template:NPCPageHeader"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Mornsta-gpuser
(Created page with "<div style="text-align:center"><!-- -->{{#widget:AdventurerPageButtons |button1={{#ifeq:{{lc:{{PAGENAME}}}}|{{lc:{{BASEPAGENAME}}}}|mw-ui-progressive}} |button2={{#ifeq:{{lc:{...")
>Eave
m (removing newline before as well :/)
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="text-align:center"><!--
+
{{NoticeUnderConstruction}}
-->{{#widget:AdventurerPageButtons
+
 
 +
== Usage ==
 +
<pre>
 +
{{NPCPageHeader}}
 +
</pre>
 +
(No arguments needed or accepted)
 +
 
 +
[[Category:Templates]]
 +
<includeonly>
 +
<onlyinclude><div style="text-align:center">
 +
<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:{{SUBPAGENAME}}}}|misc|mw-ui-progressive}}">[[{{BASEPAGENAME}}/Misc|Misc]]</div>
 +
</div>
 +
</div></onlyinclude>
 +
</includeonly>
 +
 
 +
<pre>
 +
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}}
 
|button1={{#ifeq:{{lc:{{PAGENAME}}}}|{{lc:{{BASEPAGENAME}}}}|mw-ui-progressive}}
|button2={{#ifeq:{{lc:{{PAGENAME}}}}|{{lc:{{BASEPAGENAME}}}}/stories|mw-ui-progressive}}
+
|button2={{#ifeq:{{lc:{{SUBPAGENAME}}}}|misc|mw-ui-progressive}}
|button3={{#ifeq:{{lc:{{PAGENAME}}}}|{{lc:{{BASEPAGENAME}}}}/misc|mw-ui-progressive}}
+
|button1link=/{{BASEPAGENAME}}
|button1link=/{{#replace:{{BASEPAGENAME}}|:|%3A}}
+
|button2link=/{{BASEPAGENAME}}/Misc
|button2link=/{{#replace:{{#replace:{{BASEPAGENAME}}/Stories|'|\'}}|:|%3A}}
 
|button3link=/{{#replace:{{#replace:{{BASEPAGENAME}}/Misc|'|\'}}|:|%3A}}
 
 
}}</div>
 
}}</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>
 +
</pre>

Latest revision as of 06:41, 6 November 2019


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>