Template:Go: Difference between revisions

From den4b Wiki
Jump to navigation Jump to search
m (moved Template:Go to Template:Nav: better name)
(Allow custom page titles, increase padding and margin.)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| border="0" cellspacing="0" cellpadding="0"
<includeonly><div class="noprint"><div style="background-color: #ffe; border: 1px solid #c0c0c0; padding: 0.5em 1em; margin-bottom: 1em; font-style: italic;">
| {{#if: {{{up|}}} | [[Image:Nav Up Blue.png|16px|link={{{up}}}]] ''[[{{{up}}}]]'' &nbsp; | }}
{| border="0" cellspacing="0" cellpadding="0"  
| {{#if: {{{prev|}}} | [[Image:Nav Prev.png|16px|link={{{prev}}}]] ''[[{{{prev}}}]]'' &nbsp; | }}
| '''Navigation''' &nbsp;
| {{#if: {{{next|}}} | [[Image:Nav Next.png|16px|link={{{next}}}]] ''[[{{{next}}}]]'' | }}
| {{#if: {{{up|}}} | [[Image:Arrow Return.png|link={{{up}}}]] [[{{{up}}}{{#if: {{{uptitle|}}} | {{!}}{{{uptitle}}} | }}]] &nbsp; | }}
|}<noinclude>
| {{#if: {{{prev|}}} | [[Image:Arrow Left.png|link={{{prev}}}]] [[{{{prev}}}{{#if: {{{prevtitle|}}} | {{!}}{{{prevtitle}}} | }}]] &nbsp; | }}
| {{#if: {{{next|}}} | [[Image:Arrow Right.png|link={{{next}}}]] [[{{{next}}}{{#if: {{{nexttitle|}}} | {{!}}{{{nexttitle}}} | }}]] &nbsp; | }}
|}</div></div></includeonly><noinclude>
__NOTOC__
== Usage ==
== Usage ==


<pre><nowiki>{{Go|up=Parent article}}</nowiki></pre>
=== Parent ===
{{Go|up=Parent article}}
 
<pre><nowiki>{{Go|up=Parent Article}}</nowiki></pre>
{{Go|up=#Parent Article}}
 
=== Previous and Next ===


<pre><nowiki>{{Go|prev=Previous Article|next=Next Article}}</nowiki></pre>
<pre><nowiki>{{Go|prev=Previous Article|next=Next Article}}</nowiki></pre>
{{Go|prev=Previous Article|next=Next Article}}
{{Go|prev=#Previous Article|next=#Next Article}}
 
=== Parent, Previous and Next ===


<pre><nowiki>{{Go|up=Parent Article|prev=Previous Article|next=Next Article}}</nowiki></pre>
<pre><nowiki>{{Go|up=Parent Article|prev=Previous Article|next=Next Article}}</nowiki></pre>
{{Go|up=Parent Article|prev=Previous Article|next=Next Article}}
{{Go|up=#Parent Article|prev=#Previous Article|next=#Next Article}}
 
=== Parent, Previous and Next, with custom titles ===
 
<pre><nowiki>{{Go|up=Parent Article|uptitle=My Parent Title|prev=Previous Article|prevtitle=My Previous Title|next=Next Article|nexttitle=My Next Title}}</nowiki></pre>
{{Go|up=#Parent Article|uptitle=My Parent Title|prev=#Previous Article|prevtitle=My Previous Title|next=#Next Article|nexttitle=My Next Title}}
 
[[Category:Navigation]]
[[Category:Exclude in print]]
</noinclude>
</noinclude>

Latest revision as of 15:09, 17 April 2025


Usage

Parent

{{Go|up=Parent Article}}
Navigation   Arrow Return.png #Parent Article  

Previous and Next

{{Go|prev=Previous Article|next=Next Article}}
Navigation   Arrow Left.png #Previous Article   Arrow Right.png #Next Article  

Parent, Previous and Next

{{Go|up=Parent Article|prev=Previous Article|next=Next Article}}

Parent, Previous and Next, with custom titles

{{Go|up=Parent Article|uptitle=My Parent Title|prev=Previous Article|prevtitle=My Previous Title|next=Next Article|nexttitle=My Next Title}}