Template:APIOverviewBox/documentation: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
(Created page with '__NOTOC__<div style="background-color: #DBE9F4;"> ={{Font|Template Documentation|16|Calibri|bold|black}}= This template creates a fixed-sized, clickable <nowiki><div></nowiki>…')
 
(Replaced content with 'Category: For Deletion')
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__<div style="background-color: #DBE9F4;">
[[Category: For Deletion]]
 
 
={{Font|Template Documentation|16|Calibri|bold|black}}=
This template creates a fixed-sized, clickable <nowiki><div></nowiki> box. Use this template to create a navigational grid on a wiki page. 
 
==Usage==
This template has three required parameters:
 
:1 = The name of the wiki page to link to.
:2 = The title of the box.
:3 = The description for the box.
 
===Example 1===
The following code sample shows a box that links to the main page of ReliaWiki.
 
<pre>
{{Template:APIOverviewBox
|Main_Page|Box Title
|Text to describe the box.
}}
</pre>
 
The output of this code is as follows. Clicking anywhere within the box will take you to the main page of ReliaWiki (called "Main_Page"):
{{Template:APIOverviewBox
|Main_Page|Box Title
|Text to describe the box.
}}
<div style="clear:both;"></div>
 
===Example 2===
To create a 2 x 2 grid, wrap each row of boxes in a <nowiki><div></nowiki> "wrapper" that clears all floating elements on both sides.
 
<pre>
<!--- Row 1 --->
<div style="clear:both;">
{{Template:APIOverviewBox
|Main_Page|Box Title 1
|Text to describe the box.
}}
 
{{Template:APIOverviewBox
|Main_Page|Box Title 2
|Text to describe the box.
}}
</div>
 
<!--- Row 2 --->
<div style="clear:both;">
{{Template:APIOverviewBox
|Main_Page|Box Title 3
|Text to describe the box.
}}
 
{{Template:APIOverviewBox
|Main_Page|Box Title 4
|Text to describe the box.
}}
</div>
</pre>
 
The output is as follows:
 
<!--- Row 1 --->
<div style="clear:both;">
{{Template:APIOverviewBox
|Main_Page|Box Title 1
|Text to describe the box.
}}
 
{{Template:APIOverviewBox
|Main_Page|Box Title 2
|Text to describe the box.
}}
</div>
 
<!--- Row 2 --->
<div style="clear:both;">
{{Template:APIOverviewBox
|Main_Page|Box Title 3
|Text to describe the box.
}}
 
{{Template:APIOverviewBox
|Main_Page|Box Title 4
|Text to describe the box.
}}
</div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
</div>

Latest revision as of 16:13, 6 May 2016