User:Azera/Template:StationpediaDescription: Difference between revisions
From Stationeers Community Wiki
More actions
Adjust template to only render if passed a parameter. This will be important if the template is ever auto-included in a page that doesn't have a Stationpedia quote |
Swap to use includeonly with an if statement to only render template if parameter passed. Include documentation in non-rendering block |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if: {{{1|}}}|<div style="overflow:hidden; background-color: #3C3C46; background: linear-gradient(135deg, #3C3C46, #1F1F25); letter-spacing: 1.5px; color: #FFFFFF; padding: 0 15px 0 15px; border-radius: 8px; box-shadow: 0 0 0 2px #5F5F66, 0 0 0 4px #1E1E23;"><p style="text-align: center; margin: 5px 0 5px 0">[[File:Stationpedia.png|35px]]Stationpedia</p><div style="margin: 0 0 15px 0">{{{1}}}</div></div>}}</includeonly> | <includeonly>{{#if: {{{1|}}}|<div style="overflow:hidden; background-color: #3C3C46; background: linear-gradient(135deg, #3C3C46, #1F1F25); letter-spacing: 1.5px; color: #FFFFFF; padding: 0 15px 0 15px; border-radius: 8px; box-shadow: 0 0 0 2px #5F5F66, 0 0 0 4px #1E1E23; margin-top: 15px; margin-bottom: 15px;"><p style="text-align: center; margin: 5px 0 5px 0">[[File:Stationpedia.png|35px]][[Stationpedia|<span style="color: white; text-decoration: none;">Stationpedia</span>]]</p><div style="margin: 0 0 15px 0">{{{1}}}</div></div>}}</includeonly><noinclude>{{Documentation}}</noinclude> | ||
Revision as of 23:33, 6 April 2026
Usage
Use this template to display in-game quotes from the Stationpedia.
Example
{{User:Azera/Template:StationpediaDescription|This is a test
With line breaks
You can link to articles like [[Oxygen]]
}}
| The above documentation is transcluded from User:Azera/Template:StationpediaDescription/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this page. |