Template:Module documentation: Difference between revisions
From Space Station 14 Wiki
(Created page with "<includeonly> {| style="float: left;" ! <div style="width:100%; padding:3px 0px; text-align:center; font-size: large;">Module documentation</div> |- | <!-- # if a custom link is not provided, then use the /doc page link, unless we are on a page that ends with /doc - in that case, use the current page link. # this prevents docs link on a /doc page of a module pointing to further /doc subpage, instead appearing in bold since it's linking to itself. -->{{#vardefine: page_li...") |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{| style="float: left;" | {| style="float: left; border: 2px solid var(--border-color); padding: 0.4rem; background-color: color-mix(in srgb, var(--action-color-dark-x2) 5%, transparent); border-radius: .2rem;" | ||
! <div style="width:100%; padding:3px 0px; text-align:center; font-size: large;">Module documentation</div> | ! <div style="width:100%; padding:3px 0px; text-align:center; font-size: large;">Module documentation</div> | ||
|- | |- | ||
Line 6: | Line 6: | ||
# this prevents docs link on a /doc page of a module pointing to further /doc subpage, instead appearing in bold since it's linking to itself. | # this prevents docs link on a /doc page of a module pointing to further /doc subpage, instead appearing in bold since it's linking to itself. | ||
-->{{#vardefine: page_link|{{{1|{{#ifeq: {{#invoke:String|endswith|{{FULLPAGENAME}}|/doc}}|yes|{{FULLPAGENAME}}|{{FULLPAGENAME}}/doc}} }}}}}<!-- | -->{{#vardefine: page_link|{{{1|{{#ifeq: {{#invoke:String|endswith|{{FULLPAGENAME}}|/doc}}|yes|{{FULLPAGENAME}}|{{FULLPAGENAME}}/doc}} }}}}}<!-- | ||
-->View or edit [[{{#var:page_link}}|this documentation]] {{ | -->View or edit [[{{#var:page_link}}|this documentation]] {{colored text|gray|•}} ([[Template:Module documentation|about module documentation]]) | ||
|}<!-- | |}<!-- | ||
Revision as of 12:33, 15 August 2024
Has an alias
This template has an alternative name:
Usage
{{Module documentation
| link to page with docs
| below banner = content to insert below the documentation "banner", before the actual documentation.
| bb = alias for "below banner"
}}
| link to page with docs
| below banner = content to insert below the documentation "banner", before the actual documentation.
| bb = alias for "below banner"
}}
See also
- {{documentation}}
This template is used to insert descriptions on template pages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Link override | 1 | Override for the documentation link.
| Page name | optional |
Content below banner | below banner bb | Content to insert below banner and above documentation. | Content | optional |