From SemanticOrganization
Jump to: navigation, search
Line 24: Line 24:


The page details and all other content can be put into tabs with <code><nowiki>{{#semorg-tabs:<feature>}}</nowiki></code>. You can either specify the content with <code><nowiki>|?id=content</nowiki></code> or link to a template by only using <code><nowiki>|?id</nowiki></code>. The naming convention for the template used is <code>semorg-<feature>-<id>-tab</code>.
The page details and all other content can be put into tabs with <code><nowiki>{{#semorg-tabs:<feature>}}</nowiki></code>. You can either specify the content with <code><nowiki>|?id=content</nowiki></code> or link to a template by only using <code><nowiki>|?id</nowiki></code>. The naming convention for the template used is <code>semorg-<feature>-<id>-tab</code>.
The name of


Example:
Example:
Line 32: Line 34:
|-
|-
| <pre>{{#semorg-tabs:group
| <pre>{{#semorg-tabs:group
   |tab1=content of first tab
   |?tab1=content of first tab
   |tab2=content of second tab
   |?tab2=content of second tab
}}</pre>
}}</pre>
|{{#semorg-tabs:group
|{{#semorg-tabs:group
   |tab1=content of first tab
   |?tab1=content of first tab
   |tab2=content of second tab
   |?tab2=content of second tab
}}
}}
|}
|}

Revision as of 12:17, 16 May 2019

These pages are controlled via the main template of a feature.

Building blocks

Header

The parser function {{#semorg-detail:<feature>}} creates a nicely formatted heading (and hides the standard page heading), sets the display title and provides a backlink to the overview page.

Markup Result
{{#semorg-detail:person-user
  |heading=Detail pages
}}
USER
Detail pages

Details

Tabs

The page details and all other content can be put into tabs with {{#semorg-tabs:<feature>}}. You can either specify the content with |?id=content or link to a template by only using |?id. The naming convention for the template used is semorg-<feature>-<id>-tab.

The name of

Example:

Markup Result
{{#semorg-tabs:group
  |?tab1=content of first tab
  |?tab2=content of second tab
}}
content of first tab
content of second tab