Category:Style and Navigation

From Vectorlab
Jump to: navigation, search

This category is for utility templates which are included inline on multiple pages to make the interface consistant or to save typing. Please use care when editing these templates as they appear in many places.

Useful links


Note
please make use of the following template for adding template infos:
{{Templ Info
| templ name= add template name
| description= add description
| use= add how to use it
}}

Introduction

There are templates valid for the whole site. Please make sure that these templates can correctly display within the whole contest of vcor. Go to the template that you wish to edit and check What links here for a complete list of all pages making use of the template.

VcorToc

Description: VcorToc Places the TOC on the right making it smaller.
Use: Place {{VcorToc}} at the beginning of the page, just after the category.
Code:
<div class="rightmenu">

<div style="text-align: center;"> '''{{PAGENAME}}'''

__TOC__</div>'''export this page''' [{{fullurl:Special:Export/{{FULLPAGENAME}}}} XML] [{{fullurl:{{FULLPAGENAME}}|action=raw}} wiki]</div><noinclude>[[Category:Style and Navigation|{{PAGENAME}}]]</noinclude>
Example:

VectorWorks Toc

Description: VectorWorks Toc displays a numbered list of the principal themes related to VectorWorks.
Use: Place {{VectorWorks Toc}} anywhere you wish to have a list of the main VectorWorks themes.
Code:
'''[[:category:VectorWorks| VectorWorks]]'''

---- * [[:Category:Workflow_Examples| Workflow ]] * [[:Category:VectorWorks_Glossary| Glossary]]

* [[Resources| NNA Resources]]<noinclude>[[Category:Style and Navigation|{{PAGENAME}}]]</noinclude>
Example:

VectorScript Toc

Description: VectorScript Toc displays a numbered list of the principal themes related to VectorScript.
Use: Place {{VectorScript Toc}} anywhere you wish to have a list of the main VectorScript themes.
Code:
'''[[:category:VectorScript| VectorScript]]'''

---- {| |- | * [[:category:VectorScript Guide| VectorScript Guide]] * [[:category:VectorScript_Function_Reference| Function Reference]] * [[Object Types Commented]] | style="vertical-align: top" | * [[:category:VectorScript Appendix| Appendix]] * [[:category:VectorScript Example Library| Example Library]] * [[External Examples | External Examples]] * [[VectorScript Resources| VS Resources]]

|}<noinclude>[[Category:Style and Navigation|{{PAGENAME}}]]</noinclude>
Example:

ThirdParty Toc

Description: ThirdParty Toc displays a numbered list of the principal themes related to Third party.
Use: Place {{ThirdParty Toc}} anywhere you wish to have a list of the main Third party themes.
Code:
'''[[:category:Third Party Developers| Third Party]]'''

---- <DynamicPageList> category = Third Party Developers namespace = 0 order = ascending ordermethod = alpha </DynamicPageList><noinclude>

<noinclude>[[Category:Style and Navigation|{{PAGENAME}}]]</noinclude>
Example:

MainNav

Description: MainNav allows general navigation for vcor pages. It organizes the above mentioned templates VectorWorks Toc, VectorScript Toc and ThirdParty Toc in a structured way.
Use: Place {{MainNav}} at the end of your page.
Code:
----

{| style="width: 100%; font-size: 85%; text-align: left; margin-left: auto; margin-right: auto;" |- valign="top" | {{VectorWorks Toc}} | {{ThirdParty Toc}} | {{VectorScript Toc}} | style="width: 25%; border-left: 1px dotted #aaa; padding-left: 1em;" | '''Recent Changes:''' ---- <DynamicPageList> namespace ={{NAMESPACE}} notcategory=nonexistingcat ordermethod=lastedit count=6 shownamespace=false suppresserrors=false </DynamicPageList>

|}<noinclude>[[Category:Style and Navigation|{{PAGENAME}}]]</noinclude>
Example:

NavDown

Description: NavDown is to be used in a sequence of related pages. It allows to proceed to the next or previous page.
Use: Place {{NavDown}} at the end of your page, filling in the given parameters. The result is to be seen below.
Code:
----

<div class="center" style="margin: 1em auto 1em auto; text-align: left;"> <div style="text-align: right; float: right">'''next page:'''<br />{{{nextPage}}}</div> <div>'''previous page:'''<br />{{{prevPage}}}</div>

</div><noinclude>[[Category:Style and Navigation|{{PAGENAME}}]]</noinclude>
Example:
----
next page:
{{{nextPage}}}
previous page:
{{{prevPage}}}

TitleExplanation

Description: TitleExplanation is to be used for creating a list of links with some infos.
Use: Place {{TitleExplanation}} TitleExplanation icludes two parameters: title and explanation. Fill in both with the values you need.
For example:
{{TitleExplanation| title=[[VectorScript Main]]| explanation=Main page about VectorScript}}
Code:
{| style="width: 100%"

|- | style="width: 20%; text-align: left; vertical-align: top; font-weight: bold" |{{{title}}} | style="border-left: 1px dotted #8888aa; padding-left: 10px; vertical-align: top;" | {{{explanation}}}

|}<noinclude>[[Category:Style and Navigation|{{PAGENAME}}]]</noinclude>
Example:
{{{title}}} {{{explanation}}}

NNAcredits

Description: NNAcredits displays Nemetschek North America credits.
Use: Place {{NNAcredits}} anywhere copyright problems as to content related to NNA arouse.
Code:
<div class="center" style="background-color: #eeeeff; color: #003366; border: 1px solid #aaa">'''VectorScript, VectorWorks are registered trademarks of Nemetschek North America.''' :'''Please go to the official [http://www.nemetschek.net Nemetschek] home page for more information.'''</div><noinclude>[[Category:Style and Navigation|{{PAGENAME}}]]</noinclude>
Example:
VectorScript, VectorWorks are registered trademarks of Nemetschek North America.
Please go to the official Nemetschek home page for more information.