v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing User:FJH/fjh tabbed

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.


The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 12: Line 12:
 
From the page you wish to include in tabs - we shall call that page ''WIKIPAGE'' - you first should create a page called ''WIKIPAGE/tabs''.  Create ''WIKIPAGE/tabs'' and in this page include something along the following lines.
 
From the page you wish to include in tabs - we shall call that page ''WIKIPAGE'' - you first should create a page called ''WIKIPAGE/tabs''.  Create ''WIKIPAGE/tabs'' and in this page include something along the following lines.
 
<p>
 
<p>
<div style="width: 14em; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; background: #eee; text-align: left">
+
<blockquote>
 
<font size=-2>
 
<font size=-2>
 
{{PageTabs <br />
 
{{PageTabs <br />
Line 21: Line 21:
 
}}<br />
 
}}<br />
 
</font>
 
</font>
</div>
+
</blockquote>
 
</p>
 
</p>
 
This example creates a header with three tabs on it.  The first tab links to the main ''WIKIPAGE'' on which the tab system shall appear and its tab uses the text LABEL1; subsequent tabs link to respectively subsequent pages and use respectively subsequent labels.  Note that each tab is set up to look as if one is typing an external hyperlink!  Also note that I have included the last tab as a link to the ''WIKIPAGE/tab'' page that contains the definition tag for the rest of this page's tab system.  The purpose of this link is for easy access at a later date, to add or remove tabs from the header.  This is not necessary, at the end or anywhere, but will be helpful.  The specific newline format of the PageTab tag demonstrated here is also not absolutely necessary; it is used for emphasis.
 
This example creates a header with three tabs on it.  The first tab links to the main ''WIKIPAGE'' on which the tab system shall appear and its tab uses the text LABEL1; subsequent tabs link to respectively subsequent pages and use respectively subsequent labels.  Note that each tab is set up to look as if one is typing an external hyperlink!  Also note that I have included the last tab as a link to the ''WIKIPAGE/tab'' page that contains the definition tag for the rest of this page's tab system.  The purpose of this link is for easy access at a later date, to add or remove tabs from the header.  This is not necessary, at the end or anywhere, but will be helpful.  The specific newline format of the PageTab tag demonstrated here is also not absolutely necessary; it is used for emphasis.
Line 31: Line 31:
 
Now navigate to ''WIKIPAGE'' and, considering other formatting on the page, edit the page and, somewhere on it, include the tag:
 
Now navigate to ''WIKIPAGE'' and, considering other formatting on the page, edit the page and, somewhere on it, include the tag:
 
<p>
 
<p>
<div style="width: 12em; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; background: #eee; text-align: left">
+
<blockquote>
 
<font size=-2>
 
<font size=-2>
 
{{<nowiki>WIKIPAGE/tabs</nowiki>|This=1}}
 
{{<nowiki>WIKIPAGE/tabs</nowiki>|This=1}}
 
</font>
 
</font>
</div>
+
</blockquote>
 
</p>
 
</p>
Including this line will display the tab header on this page and identify it as the main page for the tab system.  When you first see the menu, you will noticed that the text on all tabs excluding the first one (the one you are on) will be displayed like they are broken links.  To create and indoctrinate these pages into the system of tabbed browsing, click on the tab to navigate to the nonexistent tab's page and edit it to include the above text, with the appropriate incremented number in the ''This='' line.
+
Including this line will display the tab header on this page and identify it as the main page for the tab system.  When you first see the menu, you will noticed that the text on all tabs excluding the first one (the one you are on) will be displayed like they are broken links.  To create and indoctrinate these pages into the system of tabbed browsing, click on the tab to navigate to the nonexistent tab's page and edit it to include the above text, with the appropriate incremented number in the ''This='' line. As opposed to the main definition tag, this number has to be correct, else the wrong tab could be displayed.  When you preview the page now, it should include the tab menu you defined on ''WIKIPAGE/tabs''.  If you are using my advice and include a tab to ''WIKIPAGE/tabs'', you will still need to edit it in this same manner before it displays the page.
<p>
 
<div style="width: 12em; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; background: #eee; text-align: left">
 
<font size=-2>
 
{{<nowiki>WIKIPAGE/tabs</nowiki>|This=2}}
 
</font>
 
</div>
 
<div style="width: 12em; padding: 0.5em; margin-bottom: 1em; border: 1px solid #ccc; background: #eee; text-align: left">
 
<font size=-2>
 
{{<nowiki>WIKIPAGE/tabs</nowiki>|This=3}}
 
</font>
 
</div>
 
</p>
 
As opposed to the main definition tag, this number has to be correct, else the wrong tab could be displayed.  When you preview the page now, it should include the tab menu you defined on ''WIKIPAGE/tabs''.  If you are using my advice and include a tab to ''WIKIPAGE/tabs'', you will still need to correct its ''This|#'' number before it appears in the menu.
 
  
  
Line 56: Line 43:
  
  
* [[Template]]
+
 
 
* [[Template:PageTabs|Template:PageTabs]]
 
* [[Template:PageTabs|Template:PageTabs]]
* [[Template:Quote_Box|Template:Quote_Box]]
 

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)